Skip to main content
Mallory
HighVulnerability

CVE-2026-120153: SQL Injection in PostgreSQL Extension-Script Substitutions

Published Nov 12, 2026 · Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days27 mentions · peak 8 in a dayToday
CVSS7.2High · v3.1
EPSS0.44%30th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-120153CWE-89 · Improper Neutralization of Special…

CVE-2026-120153 is a SQL injection vulnerability in PostgreSQL extension-script substitutions. Insufficient validation of schema and owner names allows newlines, carriage returns, comment delimiters, or substitution tokens to alter SQL interpretation when inserted into a vulnerable extension script. Existing rejection of quotes, backslashes, and dollar signs does not prevent these injection patterns. An attacker with database-level CREATE privilege can exploit a non-bundled extension with a vulnerable script pattern to execute arbitrary code as the PostgreSQL bootstrap superuser. The vulnerability is similar to CVE-2023-39417. Affected releases are PostgreSQL 14.x before 14.25, 15.x before 15.20, 16.x before 16.16, 17.x before 17.12, and 18.x before 18.7.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation escalates an attacker from database-level CREATE privilege to arbitrary code execution as the PostgreSQL bootstrap superuser. This compromises database authorization boundaries and can permit unrestricted access to or modification of database data and disruption of database operations. The bootstrap superuser is a PostgreSQL role, not an operating-system root account.

Mitigation

If you can’t patch tonight, do this now.

Until updates can be applied, restrict database-level CREATE privilege to trusted roles and avoid executing non-bundled extension scripts with vulnerable substitution patterns. These measures reduce exposure by removing exploitation prerequisites; no vulnerability-specific vendor workaround is documented.

Remediation

Patch, then assume compromise.

Upgrade to PostgreSQL 14.25, 15.20, 16.16, 17.12, or 18.7, or a later release in the applicable branch. The fix rejects additional unsafe schema and owner names used in extension-script substitutions. Distribution-maintained installations should apply the corresponding vendor security packages; Debian 12 identifies PostgreSQL 15 package version 15.20-0+deb12u1 as fixed.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2026-120153 exploited in the wild?
As of Nov 26, 2026, Mallory has no reports of CVE-2026-120153 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-120153?
As of Nov 26, 2026, Mallory has found no public exploit for CVE-2026-120153.
Is there a patch for CVE-2026-120153?
Upgrade to PostgreSQL 14.25, 15.20, 16.16, 17.12, or 18.7, or a later release in the applicable branch. The fix rejects additional unsafe schema and owner names used in extension-script substitutions.
How severe is CVE-2026-120153?
CVE-2026-120153 has a CVSS v3.1 score of 7.2 (High) and an EPSS score of 0.44% (30th percentile) as of Nov 26, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.