CVE-2026-2361
JSON

8.0high

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

Severity
8.0high CVSS:3.1 by PostgreSQL
Exploit likelihood
0.33% (higher than 28% of CVEs; EPSS, by FIRST)
Published
Last changed
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

Product or packageVersionsReported by
DALIBO PostgreSQL Anonymizerfrom 1 before 3.0.1CVE List

Classification

CWE-427

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

NVD (es)

PostgreSQL Anonymizer contiene una vulnerabilidad que permite a un usuario obtener privilegios de superusuario creando una vista temporal basada en una función que contiene código malicioso. Cuando la función anon.get_tablesample_ratio es luego llamada, el código malicioso es ejecutado con privilegios de superusuario. Esta elevación de privilegios puede ser explotada por usuarios que tienen el privilegio CREATE en PostgreSQL 15 y posteriores. El riesgo es mayor con PostgreSQL 14 o con instancias actualizadas desde PostgreSQL 14 o una versión anterior porque el permiso de creación en el esquema público se concede por defecto. El problema está resuelto en PostgreSQL Anonymizer 3.0.1 y versiones posteriores.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-2361 changed 2026-02-11CVE Terms of Use
NVDCVE-2026-2361 changed 2026-06-17Public domain