# CVE-2026-2361: Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create privilege to gain superuser privileges

- Severity: High 8.0 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-02-11T17:48:03.805Z
- Modified: 2026-06-17T10:30:50.440Z
- Weaknesses: CWE-427
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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

(As written by CVE List.)

## Affected

- DALIBO PostgreSQL Anonymizer: from 1 before 3.0.1

## References

- <https://gitlab.com/dalibo/postgresql_anonymizer/-/blob/latest/NEWS.md>
- <https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/617>

## Sources

- CVE List: [CVE-2026-2361](https://www.cve.org/CVERecord?id=CVE-2026-2361), CVE Terms of Use, modified 2026-02-11
- NVD: [CVE-2026-2361](https://nvd.nist.gov/vuln/detail/CVE-2026-2361), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-2361 · Whole record: https://cve.day/CVE-2026-2361.json · Rebuilt by cve.day 2026-11-25T22:59:13.777Z
