CVEfocus › CVE database › CVE-2026-2361

CVE-2026-2361Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create…

CVSS 8.0 HighEPSS 0.5% (higher than 39% of CVEs)Published 2026-02-11Updated 2026-02-11Assigner: PostgreSQL

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

CWE-427

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

1Fix pending
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04postgresql-18Not affected
vulnerable_code_not_present
Ubuntu 25.10postgresql-17Not affected
vulnerable_code_not_present
Ubuntu 24.04postgresql-16Not affected
vulnerable_code_not_present
Ubuntu 22.04postgresql-14Not affected
vulnerable_code_not_present
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-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.

Workaround: Drop the anon.get_tablesample_ratio function. It is obsolete.

References

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.