CVE-2026-120153: PostgreSQL extension-script substitutions allow SQL injection through object names
- Is it exploited?
Not on CISA's list. CISA has not added it to the Known Exploited Vulnerabilities catalog as of . If CISA adds it, this page shows it as known exploited.
- How likely is exploitation in the next 30 days?
Not yet scored. FIRST's EPSS model has no score for this record as of .
- How severe?
- 7.2 High
CVSS v3.1 base score, given by the CNA
- What should I do?
CISA has set no required action, because the vulnerability is not in KEV.
No patch or vendor advisory is listed in the CVE record. Check PostgreSQL's advisories.
- Which versions are affected?
Affected
- from 18 to before 18.7
- from 17 to before 17.12
- from 16 to before 16.16
- from 15 to before 15.20
- before 14.25
Source: CISA KEV 2026.11.10, as of ; FIRST EPSS, as of ; CVE List, as of . About the data.
Description
PostgreSQL extension-script substitutions allow SQL injection through object names
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.
Source: CVE List, as of . About the data.
What to do
Advisories and patches
No patch, vendor advisory or mitigation is listed in the CVE record. Check PostgreSQL's own security advisories for a fix, and compare your version with the affected versions below.
This summary is based on the CVE record as of . Check the vendor's advisory before you act: affected versions and fixes can change.
Affected products and versions
Versions by product, as listed in the CVE record (1 product)
| Status | Versions |
|---|---|
| Affected | from 18 to before 18.7 |
| Affected | from 17 to before 17.12 |
| Affected | from 16 to before 16.16 |
| Affected | from 15 to before 15.20 |
| Affected | before 14.25 |
Versions not listed are: unaffected.
Source: CVE List, as of . About the data.
Weakness
CWE-89
CWE and CAPEC are maintained by MITRE; the entries are those named in the CVE record.
Timeline
| Date | Event |
|---|---|
| CVE record published |