Skip to main content

PostgreSQL Anonymizer CVE-2026-11945

| EUVDEUVD-2026-36266 HIGH
SQL Injection (CWE-89)
2026-06-11 PostgreSQL GHSA-g5vm-7gwv-45rj
7.5
CVSS 3.1 · NVD
Share

Severity by source

Vendor (PostgreSQL) PRIMARY
MEDIUM
qualitative
NVD
7.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
8.0 HIGH

Authenticated user (PR:L) plants payload over the network (AV:N); a superuser must later run the importer (UI:R, AC:H), and execution crosses the role boundary into the superuser security context (S:C) with total impact.

3.1 AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (PostgreSQL).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Analysis Updated
Jun 16, 2026 - 14:28 vuln.today
v3 (cvss_changed)
Analysis Updated
Jun 16, 2026 - 14:27 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jun 16, 2026 - 14:22 vuln.today
cvss_changed
Severity Changed
Jun 16, 2026 - 14:22 NVD
MEDIUM HIGH
CVSS changed
Jun 16, 2026 - 14:22 NVD
6.4 (MEDIUM) 7.5 (HIGH)
Patch available
Jun 11, 2026 - 18:01 EUVD
Analysis Generated
Jun 11, 2026 - 17:16 vuln.today

DescriptionNVD

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

AnalysisAI

Privilege escalation in PostgreSQL Anonymizer versions prior to 3.1.1 allows a low-privileged database user to achieve superuser execution by embedding malicious code in a crafted JSON key-value pair that is later processed by the import_database_rules() or import_roles_rules() functions when invoked by a superuser. The attack is a stored payload that requires a superuser to trigger import of attacker-controlled rules, and no public exploit identified at time of analysis. SSVC marks exploitation as none and not automatable, but technical impact is total once the trigger condition is met.

Technical ContextAI

PostgreSQL Anonymizer (by Dalibo) is a PostgreSQL extension that masks personal data via declarative masking rules; the import_database_rules() and import_roles_rules() helper functions ingest JSON documents describing masking and role-rule configurations. The root cause class is CWE-89 (SQL Injection): values supplied inside particular JSON keys are concatenated or otherwise interpolated into SQL executed in the importer's session, so an attacker-controlled string becomes executable SQL. Because the import routines are typically invoked by a superuser performing administrative restoration, the injected SQL inherits SECURITY DEFINER-equivalent superuser context. The affected CPE is cpe:2.3:a:dalibo:postgresql_anonymizer:*:*:*:*:*:*:*:* across all versions up to but not including 3.1.1.

RemediationAI

Vendor-released patch: PostgreSQL Anonymizer 3.1.1 - upgrade the extension to 3.1.1 or later on every PostgreSQL instance where the extension is installed, per the upstream issue at https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/643 and the NVD record at https://nvd.nist.gov/vuln/detail/CVE-2026-11945. If patching must be deferred, do not call import_database_rules() or import_roles_rules() as a superuser against any JSON document whose contents could have been influenced by non-superusers; instead, review the JSON manually and import it through a least-privileged role that cannot escalate (side effect: import may fail where the rules legitimately require elevated privileges). Additionally, revoke EXECUTE on these two functions from PUBLIC and grant only to a dedicated administrative role, and treat the rules JSON as untrusted input by storing it outside of database-writable locations.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Share

CVE-2026-11945 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy