CVE-2024-2339
published high CVSS 3.1 · 8.0Improper Input Validation in PostgreSQL Anonymizer 1.2 allows table owner to gain superuser privileges via masking rule
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| DALIBO | — | PostgreSQL Anonymizer1 to < 1.3.0 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| dalibo | — | postgresql_anonymizer1 to < 1.3.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.0 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| DALIBO | PostgreSQL Anonymizer | 1 to < 1.3.0 (affected · rpm)Default: unaffected | PostgreSQL · cna |
| dalibo | postgresql_anonymizer | 1 to < 1.3.0 (affected · rpm)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-20 Improper Input Validation
References
1Provider assertions
3PostgreSQL · cna
Improper Input Validation in PostgreSQL Anonymizer 1.2 allows table owner to gain superuser privileges via masking rule
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ae53405a78503865a3ccc714ab9212dc29403566dd88acf55989b869ca69b8be
- Ingested
- 23 Sep 2026, 08:21:43 UTC
- Source record
- Official CVE record