CVE-2026-11945: Dalibo PostgreSQL Anonymizer SQL injection in rule import functions

CVE-2026-11945 · Severity: medium · CVSS 6.4 · Published 2026-06-11

PostgreSQL Anonymizer is a tool used to mask sensitive data in databases for privacy compliance. A security flaw allows a user to hide malicious commands inside a specially crafted JSON configuration file. If a database administrator or an automated high-privilege process imports this file, the hidden commands will execute with full administrative (superuser) privileges, potentially leading to a total takeover of the database server.

Technologies: Dalibo PostgreSQL Anonymizer. Vendors: Dalibo.

Quick answers

Is CVE-2026-11945 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-11945 being exploited in the wild.
How severe is CVE-2026-11945?
Medium severity, with a CVSS score of 6.4, published 11 June 2026.
Which products and versions are affected?
Dalibo PostgreSQL Anonymizer versions prior to 3.1.1.
Is there a fix for CVE-2026-11945?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-11945 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-11945?
Check whether you run Dalibo PostgreSQL Anonymizer at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A SQL injection vulnerability (CWE-89) exists in the 'anon.import_database_rules' and 'anon.import_roles_rules' functions of the PostgreSQL Anonymizer extension. The root cause is the improper interpolation of untrusted strings from JSON input into dollar-quoted SQL literals when building 'SECURITY LABEL' statements. An attacker can craft a JSON document that closes the dollar-quoted string and appends arbitrary SQL commands. While the functions are 'SECURITY INVOKER', the vulnerability results in privilege escalation if a superuser or a privileged automation script processes the malicious JSON. The issue is fixed in version 3.1.1.

Affected products

  • Dalibo PostgreSQL Anonymizer versions prior to 3.1.1

Timeline

  • 2026-06-11: disclosed
  • 2026-06-11: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.