SQL injection in PostgreSQL - CVE-2026-120153

 

SQL injection in PostgreSQL - CVE-2026-120153

Published: November 12, 2026


Vulnerability identifier: #VU166088
CSH Severity: Low
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-120153
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote privileged user to execute arbitrary code as the bootstrap superuser.

The vulnerability exists due to improper neutralization of SQL syntax in PostgreSQL extension-script substitutions when incorporating schema or owner names into extension scripts. A remote privileged user can use database-level CREATE privilege to supply a schema or owner name containing newlines or other special substrings to inject SQL and execute arbitrary code as the bootstrap superuser.

Exploitation requires a non-bundled extension with a vulnerable script pattern.


Affected software

PostgreSQL

How to mitigate CVE-2026-120153

Install security update from vendor's website.

PostgreSQL - addressed in versions 14.25, 15.20, 16.16, 17.12, 18.7

External References

Related Security Bulletins