CVE Catalog

CVE-2026-120153

HighCVSS 7.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.44%

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

Summary

SQL injection in PostgreSQL extension-script substitutions allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via a schema or owner name containing newlines or other special substrings. This is similar to CVE-2023-39417, but it requires a non-bundled extension with a vulnerable script pattern. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

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)

SQL injection in PostgreSQL extension-script substitutions allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via a schema or owner name containing newlines or other special substrings. This is similar to CVE-2023-39417, but it requires a non-bundled extension with a vulnerable script pattern. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

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