CVE Catalog

CVE-2026-6467

HighCVSS 7.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.53%

47th percentile - higher than 47% of all known CVEs

Summary

Uncontrolled search path element in PostgreSQL CREATE EXTENSION allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser. The attack vector includes ALTER SCHEMA ... RENAME or CREATE EXTENSION ... SCHEMA "$user"; ALTER EXTENSION was also affected. A trusted-extension script located the wrong object and executed arbitrary SQL of the attacker's choice.

Risk Assessment

An attacker with CREATE privilege can gain full control over the database and server by executing code as the bootstrap superuser. This poses a serious risk to confidentiality, integrity, and availability of data.

Recommendation

Update PostgreSQL to version 18.7, 17.12, 16.16, 15.20, or 14.25 (or later). Restrict CREATE privilege to trusted users and review extension scripts for unsafe patterns.

Other vulnerabilities in PostgreSQL

See all
Original NVD description (English source)

Uncontrolled search path element in PostgreSQL CREATE EXTENSION allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via ALTER SCHEMA ... RENAME or CREATE EXTENSION ... SCHEMA "$user". ALTER EXTENSION was also affected. A trusted-extension script located the wrong object and executed arbitrary SQL of the attacker's choice. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS