CVE-2026-6460: Authenticated Code Execution in PostgreSQL Composite-Type Handling
CVE-2026-6460 is a type-confusion vulnerability in PostgreSQL caused by inadequate tracking of retained values when composite-type definitions change. Existing binary values can subsequently be interpreted using incompatible, updated type metadata. Stale values can persist in prepared statements, data dictionary entries, PL/pgSQL variables, and other internal structures. The primary trigger is ALTER ... SET DATA TYPE, although other DDL sequences involving column addition and transaction rollback can also expose the flaw. A demonstrated path causes record_out() to select an incompatible output handler, allowing retained bytes to be interpreted as an expanded-object representation. This can cause backend crashes or redirect native callbacks for arbitrary code execution. Affected supported branches are PostgreSQL 14 before 14.25, 15 before 15.20, 16 before 16.16, 17 before 17.12, and 18 before 18.7; older branches are also affected.
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.
An authenticated database object creator can execute arbitrary native code with the privileges of the operating-system account running PostgreSQL. This crosses the boundary between ordinary database privileges and database-service operating-system access, potentially compromising database confidentiality, integrity, and availability. Successful exploitation can expose or modify information accessible to that account and disrupt database service. Demonstrated malformed-value handling also causes backend crashes, while related uses of the type-confusion primitive disclose memory addresses useful for bypassing ASLR. Operating-system root privileges are not inherently granted.
Mitigation
If you can’t patch tonight, do this now.
No complete operational workaround is documented for unpatched servers. Restrict database access to trusted principals and remove unnecessary object-creation privileges to reduce exposure, without treating those measures as a substitute for patching. Some downstream packages provide partial hardening that blocks shape-changing ALTER operations while plans or portals retain affected row-type values and rejects stale PL/pgSQL records and held cursors. This hardening is explicitly incomplete and can introduce deadlocks with concurrent ALTER operations. Verify managed-service patch coverage rather than assuming provider mitigations constitute full remediation.
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, or install a vendor-confirmed equivalent security backport. The upstream fix adds composite-attribute versioning, value-version checks, additional locking, and stricter type-alteration dependency checks. Full protection also requires rebuilding installed C-language extensions against the patched server; some extensions require source changes. Coordinate extension rebuilds with the server update because the fix changes the internal ABI, and restart the database service to activate the updated binaries. Keep the composite_type_mismatch security checks enabled. Migrate obsolete branches to a supported release; PostgreSQL 14.25 is the final PostgreSQL 14 release.
Exploits
3 exploits validated by Mallory's analysis.
Frequently asked questions
- Is CVE-2026-6460 exploited in the wild?
- As of Nov 21, 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, or install a vendor-confirmed equivalent security backport. The upstream fix adds composite-attribute versioning, value-version checks, additional locking, and stricter type-alteration 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% (51st percentile) as of Nov 21, 2026.
Recent activity
145 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.