Skip to content
OpenAdvisories
High · 8.0 CVE-2026-2361 EUVD-2026-5940GHSA-xcpc-ffvj-qvhw

Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create privilege to gain superuser privileges

Published Feb 11, 2026 · Updated Feb 11, 2026 · Assigned by PostgreSQL

Description

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.get_tablesample_ratio 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 products

VendorProductAffectedFixed
DALIBO PostgreSQL Anonymizer 1 – < 3.0.1 3.0.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS postgresql-9.3 No fix yet —

References