{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:dalibo:postgresql_anonymizer:*:*:*:*:*:postgresql:*:*",
            "extracted_events": [
              {
                "introduced": "1"
              },
              {
                "fixed": "3.1.1"
              },
              {
                "introduced": "0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "c79d5b610629a197f1eb4c868168c8cba9db4868"
            },
            {
              "fixed": "93c55744e9e5bdf4a18e88082dbfa0ad0ff22f10"
            }
          ],
          "repo": "https://gitlab.com/dalibo/postgresql_anonymizer",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PostgreSQL",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/11xxx/CVE-2026-11945.json"
  },
  "details": "PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a JSON document and placing malicious code inside a particular key-value pair. If a superuser calls the import_database_rules() or import_roles_rules() functions, the malicious code is executed with superuser privileges. The problem is resolved in PostgreSQL Anonymizer 3.1.1 and further versions",
  "id": "CVE-2026-11945",
  "modified": "2026-07-08T05:36:17.014394710Z",
  "published": "2026-06-11T15:53:24.223Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/11xxx/CVE-2026-11945.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-11945"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/643"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "PostgreSQL Anonymizer: SQL injection in the rules import functions"
}