Skip to content
CVE PROGRAM SOURCE RECORD7.2 High

CVE-2026-120153

PostgreSQL extension-script substitutions allow SQL injection through object names

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

n/a PostgreSQL

Default version status: unaffected

  • 18 to < 18.7affected
  • 17 to < 17.12affected
  • 16 to < 16.16affected
  • 15 to < 15.20affected
  • 0 to < 14.25affected

References