PostgreSQL Anonymizer v1.2 Vulnerability: Elevated Privileges for Malicious Users

Check todayFull system takeover over the network by a logged-in user.
8.8HIGH

CVE-2024-2339

Key Information:

Vendor

Dalibo

Status
Postgresql Anonymizer
CVE ID
CVE ID:
CVE-2024-2339
Vendor
CVE Published:
8 March 2024
Fixed in
Fixed in:
1.3.0

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Update to a fixed version
PostgreSQL Anonymizer 1 to below 1.3.0 is vulnerable
Install PostgreSQL Anonymizer 1.3.0 or later
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach PostgreSQL Anonymizer. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • Its CVSS severity is high (8.8).

What is CVE-2024-2339?

PostgreSQL Anonymizer version 1.2 is susceptible to a vulnerability that allows a user with ownership of a table to achieve superuser privileges. This is accomplished by defining a masking function that contains malicious code. When this function is executed by a privileged user applying the masking rules, the embedded malicious code runs, potentially compromising the database's security. Although the software includes a protective feature called 'restrict_to_trusted_schemas', this measure fails to fully mitigate the risk. Notably, users without ownership of a table, particularly those who are masked, are unable to exploit this vulnerability. The issue is addressed in version 1.3 of the product.

References

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

The PostgreSQL Anonymizer project thanks Pedro Gallegos for reporting this problem.
.