CVE-2026-2361: Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create privilege to gain superuser privileges
PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a temporary view based on a function containing malicious code. When the anon.gettablesampleratio function is then called, the malicious code is executed with superuser privileges. This privilege elevation can be exploited by users having the CREATE privilege in PostgreSQL 15 and later. The risk is higher with PostgreSQL 14 or with instances upgraded from PostgreSQL 14 or a prior version because the creation permission on the public schema is granted by default. The problem is resolved in PostgreSQL Anonymizer 3.0.1 and further versions
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-2361?
CVE-2026-2361 is considered a high severity vulnerability due to its potential to grant superuser privileges to unauthorized users.
How do I fix CVE-2026-2361?
To fix CVE-2026-2361, you should upgrade PostgreSQL Anonymizer to a version that addresses this vulnerability.
Who is affected by CVE-2026-2361?
CVE-2026-2361 affects users of PostgreSQL Anonymizer version 2.5 and earlier versions of PostgreSQL up to 15.
What are the implications of CVE-2026-2361?
The implications of CVE-2026-2361 include unauthorized access to superuser privileges, which can lead to significant security breaches.
Can CVE-2026-2361 be exploited without being a superuser?
Yes, any user with create privilege can exploit CVE-2026-2361 to gain superuser privileges through creating a temporary view.