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

Source: https://junglewise.ai/threats/cve-2026-11945-dalibo-postgresql-anonymizer-sql-injection-in-rule-import  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-11. Updated: 2026-06-11  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/postgresql-anonymizer). Vendors: [Dalibo](https://junglewise.ai/threats/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

- [https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/643](https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/643)

## Related threats

- [PostgreSQL Anonymizer statistics leak in static masking](https://junglewise.ai/threats/cve-2026-110183-postgresql-anonymizer-contains-a-vulnerability-related-to-static)
- [PostgreSQL Anonymizer information disclosure in partial() functions](https://junglewise.ai/threats/cve-2026-110182-postgresql-anonymizer-contains-a-vulnerability-related-to-the)
- [PostgreSQL Anonymizer SQL-standard function body bypass](https://junglewise.ai/threats/cve-2026-110181-postgresql-anonymizer-contains-a-vulnerability-related-to)
- [PostgreSQL Anonymizer data masking bypass in sub-query rules](https://junglewise.ai/threats/cve-2026-105620-postgresql-anonymizer-doesn-t-mask-data-returned-by-a-sub-query)
- [PostgreSQL Anonymizer data masking bypass in security_invoker views](https://junglewise.ai/threats/cve-2026-105619-postgresql-anonymizer-doesn-t-mask-data-accessed-thru-a-security)
