CVE-2026-19633
Description
A flaw was found in PostgreSQL Anonymizer. This vulnerability allows unprivileged masked users to execute arbitrary code. By manipulating operators, domain casts, or view subqueries that contain untrusted expressions, an attacker can cause malicious code to run with elevated privileges within the extension's masking mechanisms. This could lead to a complete compromise of the affected system.
Statement
This vulnerability is evaluated as an Important severity risk because an authenticated attacker with restricted database permissions can elevate privileges and execute arbitrary commands in the database context, compromising confidentiality, integrity, and availability. In Red Hat environments, this optional extension is not included in standard Red Hat Enterprise Linux distributions and is only packaged in Fedora and EPEL. The risk is limited exclusively to deployments where PostgreSQL Anonymizer has been explicitly installed and configured for dynamic masking of low-privileged user accounts.
Mitigation
If the PostgreSQL Anonymizer extension is not actively used, consider removing the associated package to eliminate the vulnerability. Removing the extension will prevent unprivileged masked users from exploiting this flaw. If the extension is required, ensure that only trusted expressions are processed and restrict access for unprivileged masked users as much as possible. Consult PostgreSQL documentation for proper extension management and security best practices.
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Application Data
An attacker could insert an expression that references private data, which is then included in the output.
Integrity
Technical Impact: Execute Unauthorized Code or Commands
An attacker could execute arbitrary expressions.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.