CVE-2026-6460: Authenticated code execution through PostgreSQL composite-type confusion
CVE-2026-6460 is a type-confusion vulnerability in PostgreSQL's handling of composite types and retained typed values. Inadequate value tracking and the absence of self-identifying type information allow values constructed under an earlier type definition to be interpreted using changed metadata. Stale values can persist in prepared queries, data dictionary entries, PL/pgSQL variables, and other components. The primary trigger involves ALTER ... SET DATA TYPE; other DDL sequences involving column additions and transaction rollback can also expose the flaw. An authenticated object creator can exploit the resulting type confusion to execute arbitrary code as the operating-system account running PostgreSQL. Affected supported branches 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.
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 compromises confidentiality, integrity, and availability within the privileges of the PostgreSQL service account. Arbitrary native code execution can expose or modify database data and other resources accessible to that account, bypass database-level authorization boundaries, and disrupt database service. Type confusion can also crash a backend. The vulnerability does not inherently confer operating-system root privileges.
Mitigation
If you can’t patch tonight, do this now.
No complete operational workaround is documented for unpatched servers. Downstream hardening can partially mitigate exposure by blocking shape-changing ALTER operations while plans or portals retain affected row-type values, including nested types, and rejecting stale PL/pgSQL records and held-cursor values. This hardening is explicitly incomplete and is not a substitute for the upstream fix; transaction-long shape locks can also deadlock with concurrent ALTER operations. Confirm downstream coverage with the package vendor because some legacy-package notices contain inconsistent CVE mappings.
Remediation
Patch, then assume compromise.
Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, or a later fixed release in the applicable branch, and restart the server to activate the update. The fix introduces composite-value version checks, additional locking, and stricter type-dependency checks. Rebuild C-language extensions against the patched release because the fix changes the internal ABI; some extensions also require source changes. Coordinate server and extension updates because extensions built for the patched ABI will not load on unpatched servers. Keep the composite_type_mismatch security checks enabled. Debian trixie provides backported fixes in postgresql-17 version 17.11-0+deb13u1, but complete protection additionally requires the applicable extension rebuilds.
Exploits
3 exploits validated by Mallory's analysis.
Frequently asked questions
- Is CVE-2026-6460 exploited in the wild?
- As of Nov 26, 2026, Mallory has no reports of CVE-2026-6460 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-6460?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2026-6460, the earliest disclosed Nov 13, 2026.
- Is there a patch for CVE-2026-6460?
- Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, or a later fixed release in the applicable branch, and restart the server to activate the update. The fix introduces composite-value version checks, additional locking, and stricter type-dependency checks.
- How severe is CVE-2026-6460?
- CVE-2026-6460 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.64% (45th percentile) as of Nov 26, 2026.
Recent activity
154 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.