CVE-2026-11945

PostgreSQL Anonymizer: SQL injection in the rules import functions

Published Jun 11, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
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

Analysis

AI-generated

Technical impact

A SQL injection flaw exists in PostgreSQL Anonymizer’s import functions, allowing a malicious user to inject code into a JSON rule file. When a superuser executes the functions anon.import_database_rules() or anon.import_roles_rules(), the injected code runs with superuser privileges, effectively granting the attacker full control over the database. This vulnerability is a classic CWE‑89 injection flaw. The attacker can compromise confidentiality, integrity, and availability of the data and the system.

Affected Systems

The flaw affects the Dalibo PostgreSQL Anonymizer extension. Versions older than 3.1.1 are vulnerable, while 3.1.1 and later include a fix.

Risk and Exploitability

The flaw carries a CVSS score of 6.4. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The attack requires a superuser to invoke the import functions, implying that compromise of a superuser account or elevation of a privileged user to superuser level can exploit the flaw. Once executed, the attacker gains full superuser rights within the database environment.

Remediation

Vendor Workaround

Remove the rules import functions named `anon.import_roles_rules()` and `anon.import_database_rules()`. They are user-facing functions with no internal dependencies.


OpenCVE Recommended Actions

  • Upgrade the PostgreSQL Anonymizer extension to version 3.1.1 or later
  • If upgrading is not immediately possible, remove the functions anon.import_roles_rules() and anon.import_database_rules() from the database to prevent exploitation
  • Ensure only trusted superusers have the privilege to assign or execute these functions, and audit any use of import operations for suspicious activity

Generated by OpenCVE AI on June 11, 2026 at 20:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:dalibo:anonymizer:*:*:*:*:*:postgresql:*:* cpe:2.3:a:dalibo:postgresql_anonymizer:*:*:*:*:*:postgresql:*:*
Vendors & Products Dalibo anonymizer
Type Values Removed Values Added
First Time appeared Dalibo anonymizer
CPEs cpe:2.3:a:dalibo:anonymizer:*:*:*:*:*:postgresql:*:*
Vendors & Products Dalibo anonymizer
Type Values Removed Values Added
First Time appeared Dalibo
Dalibo postgresql Anonymizer
Vendors & Products Dalibo
Dalibo postgresql Anonymizer
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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
Title PostgreSQL Anonymizer: SQL injection in the rules import functions
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Jun 12, 2026, 3:55 AM
Reserved
Jun 10, 2026, 9:28 PM
Status
Analyzed
Published
Jun 11, 2026, 5:16 PM
Modified
Oct 26, 2026, 11:10 AM