CVE-2024-2339

Improper Input Validation in PostgreSQL Anonymizer 1.2 allows table owner to gain superuser privileges via masking rule

Description

PostgreSQL Anonymizer v1.2 contains a vulnerability that allows a user who owns a table to elevate to superuser. A user can define a masking function for a column and place malicious code in that function. When a privileged user applies the masking rules using the static masking or the anonymous dump method, the malicious code is executed and can grant escalated privileges to the malicious user. PostgreSQL Anonymizer v1.2 does provide a protection against this risk with the restrict_to_trusted_schemas option, but that protection is incomplete. Users that don't own a table, especially masked users cannot exploit this vulnerability. The problem is resolved in v1.3.

Remediation

Workaround:

  • Revoke the CREATE permission to non-superusers

Category

8.0
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.04%
Affected: DALIBO PostgreSQL Anonymizer
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-2339?
CVE-2024-2339 has been scored as a high severity vulnerability.
How to fix CVE-2024-2339?
As a workaround for remediating CVE-2024-2339: Revoke the CREATE permission to non-superusers
Is CVE-2024-2339 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-2339 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-2339?
CVE-2024-2339 affects DALIBO PostgreSQL Anonymizer.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.