ZeroHour

CVE-2026-19633

niche

Masked-user privilege escalation via SQL expression injection in PostgreSQL Anonymizer

CVSS 3.1
8.8 high
EPSS
<1%p30
Published
()
Modified
AI analysis

PostgreSQL Anonymizer, a masking extension for PostgreSQL databases, contains a flaw (CWE-89, SQL injection) in which unprivileged masked users can execute arbitrary code by abusing operators, domain casts, or view subqueries that carry untrusted expressions. The flaw is triggered when these objects are evaluated inside the extension's masking mechanisms, where the embedded expressions run with elevated privileges rather than the masked user's own permissions. A masked user who can influence or supply such an expression therefore gains code execution with elevated privileges on the database server, potentially reading or altering masked (sensitive) data and running commands beyond their intended rights. Any PostgreSQL deployment with the Anonymizer extension installed at versions before 3.1.4 is affected, particularly those using dynamic masking of unprivileged users. No public proof-of-concept or in-the-wild exploitation is currently known, and CISA has not added the issue to its KEV catalog.

What to do: Upgrade PostgreSQL Anonymizer to version 3.1.4 or later on every PostgreSQL instance where the extension is installed. Until patched, review masking policies for operators, domain casts, and view subqueries that embed untrusted expressions, and restrict masked roles from influencing or defining such objects. No in-the-wild exploitation is known, so patching proactively before a public exploit appears is the priority.

Affected
Dalibo (PostgreSQL Anonymizer project) PostgreSQL Anonymizerall versions prior to 3.1.4 (fixed in 3.1.4 and later)
Estimated exposure
nichelikely on the order of thousands of PostgreSQL deployments at most (estimate; no public install-count or scan data) — No public active-install or internet-exposure metrics exist for this specialized privacy/masking extension, so the scale is judged from its niche GDPR/PII-masking use case rather than measured counts.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

PostgreSQL Anonymizer contains a vulnerability that allows unprivileged masked users to execute arbitrary code by abusing operators, domain casts, or view subqueries that carry untrusted expressions. When these objects are evaluated in the context of the extension’s masking mechanisms, the malicious code can run with elevated privileges. The issue is fixed in PostgreSQL Anonymizer 3.1.4 and later versions

Weakness
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.