CVE-2026-2361Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create…
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
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | postgresql-18 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | postgresql-17 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | postgresql-16 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | postgresql-14 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | postgresql-9.3 | Fix pending | UBUNTU-CVE-2026-2361 |
What the vendor says
As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- DALIBO PostgreSQL Anonymizer: affected: 1 to before 3.0.1; fixed in
3.0.1
Workaround: Drop the anon.get_tablesample_ratio function. It is obsolete.
References
- https://gitlab.com/dalibo/postgresql_anonymizer/-/blob/latest/NEWS.md
- https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/617
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.