CVE-2026-120153

PostgreSQL extension-script substitutions allow SQL injection through object names

  • High 7.2

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.

Key facts

Published
12 Nov 2026
Last changed
13 Nov 2026
Assigned by
PostgreSQL
EPSS
0.552% likely to be exploited in the next 30 days, higher than 46.694% of CVEs (scores for 15 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: no; Technical impact: total

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 7.2CVSS 3.1, Highfrom the CNA (PostgreSQL)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
n/aPostgreSQL
  • Default status: unaffected
  • 18 up to but excluding 18.7 (affected)
  • 17 up to but excluding 17.12 (affected)
  • 16 up to but excluding 16.16 (affected)
  • 15 up to but excluding 15.20 (affected)
  • 0 up to but excluding 14.25 (affected)

Timeline

  1. 12 Nov 2026 Published

Weakness

Practice this bug class

HackZoneLabs has a hands-on lab on SQL injection (CWE-89).

References