CVE-2024-2338
published high CVSS 3.1 · 8.0SQL Injection 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: unaffected | Affected | Not stated | CISA-ADP |
Description
PostgreSQL Anonymizer v1.2 contains a SQL injection vulnerability that allows a user who owns a table to elevate to superuser when dynamic masking is enabled. PostgreSQL Anonymizer enables users to set security labels on tables to mask specified columns. There is a flaw that allows complex expressions to be provided as a value. This expression is then later used as it to create the masked views leading to SQL Injection. If dynamic masking is enabled, this will lead to privilege escalation to superuser after the label is created. 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: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
1Provider assertions
3PostgreSQL · cna
SQL Injection 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
- 46f71b235d2f62b857be5ef14cd421b19579b2e7fdf83a2e6239b3aa760ce508
- Ingested
- 23 Sep 2026, 08:21:43 UTC
- Source record
- Official CVE record