22-year-old PostgreSQL type-confusion bug weaponized into RCE, fixed in November security release

JeremyCMorgan · x · 2026-11-25

Security researcher Mehmet Ince details how he turned a 22-year-old PostgreSQL flaw (CVE-2026-6460) into a reliable memory-corruption exploit and RCE.

Mechanism: ALTER TYPE on a composite attribute doesn't rewrite values a prepared statement already holds, so EXECUTE reads old bytes as the new type — a type-confusion primitive. Starting from exploiting the pgclickhouse extension, and using an AI agent as a tutor through Postgres internals, he uncovered a whole new class of type-confusion vulnerabilities.

The bug was fixed in the November security release; he urges readers to verify their managed Postgres providers have patched.

Original post →

More from Safety

Safety channel →