{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1"
              },
              {
                "fixed": "2.2.1"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "c79d5b610629a197f1eb4c868168c8cba9db4868"
            },
            {
              "fixed": "cd28788d0dfb48615fc680dd36c021235b8c1c76"
            }
          ],
          "repo": "https://gitlab.com/dalibo/postgresql_anonymizer",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PostgreSQL",
    "cwe_ids": [
      "CWE-200"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5690.json"
  },
  "details": "PostgreSQL Anonymizer v2.0 and v2.1 contain a vulnerability that allows a masked user to bypass the masking rules defined on a table and read the original data using a database cursor or the --insert option of pg_dump. This problem occurs only when dynamic masking is enabled, which is not the default setting. The problem is resolved in version 2.2.1",
  "id": "CVE-2025-5690",
  "modified": "2026-07-15T01:49:05.465119759Z",
  "published": "2025-06-04T21:34:47.358Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5690.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-5690"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/531"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Cursor allows PostgreSQL Anonymizer masked user to gain unauthorized access to authentic data"
}