Description
PostgreSQL Anonymizer contains a SQL injection vulnerability in two import functions. A user can create a malicious JSON document containing specially crafted object names. If a superuser subsequently calls anon.import_database_rules() or anon.import_roles_rules(), the malicious code is executed with superuser privileges. The issue is fixed in PostgreSQL Anonymizer 3.1.4 and later
Published: 2026-09-06
Score: 6.4 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

PostgreSQL Anonymizer has a SQL injection flaw in the import functions. An attacker who can supply a crafted JSON document with malicious object names can cause the functions anon.import_database_rules() or anon.import_roles_rules() to execute arbitrary SQL when later run by a superuser. This leads to full code execution with superuser privileges, compromising database confidentiality, integrity, and availability.

Affected Systems

The flaw affects the DALIBO PostgreSQL Anonymizer extension. All versions prior to 3.1.4 are vulnerable; versions 3.1.4 and above include the fix.

Risk and Exploitability

The CVSS score of 6.4 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker to insert a malicious JSON file and later have a superuser execute one of the two import functions. Therefore the attack vector is internal or requires privileged user action, and the overall risk is moderate but significant for environments where the functions are used.

Generated by OpenCVE AI on September 6, 2026 at 16:20 UTC.

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 to PostgreSQL Anonymizer 3.1.4 or newer, which contains the fix for the SQL injection issue.
  • As a temporary safeguard, remove or disable the user‑facing functions anon.import_database_rules() and anon.import_roles_rules() according to the vendor workaround.
  • Validate that no other import functionality accepts untrusted JSON and enforce strict privilege checks on any remaining import routines.
  • Monitor system logs for anomalous superuser activity involving these import functions and promptly investigate suspicious events.

Generated by OpenCVE AI on September 6, 2026 at 16:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 06 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Dalibo
Dalibo postgresql Anonymizer
Vendors & Products Dalibo
Dalibo postgresql Anonymizer

Sun, 06 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Description PostgreSQL Anonymizer contains a SQL injection vulnerability in two import functions. A user can create a malicious JSON document containing specially crafted object names. If a superuser subsequently calls anon.import_database_rules() or anon.import_roles_rules(), the malicious code is executed with superuser privileges. The issue is fixed in PostgreSQL Anonymizer 3.1.4 and later
Title PostgreSQL Anonymizer: SQL injection in import_database_rules() and import_roles_rules() via crafted object names / JSON
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'}


Subscriptions

Dalibo Postgresql Anonymizer
cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-09-06T15:25:36.947Z

Reserved: 2026-08-12T16:09:10.091Z

Link: CVE-2026-19634

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-06T16:16:50.603

Modified: 2026-09-06T16:16:50.603

Link: CVE-2026-19634

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-06T17:30:09Z

Weaknesses
  • CWE-89

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