What happened
A proof of concept was released for CVE-2026-6460, a type confusion flaw in PostgreSQL. It allows anyone who creates objects in the database to run arbitrary code as the operating system user running PostgreSQL.
Why it matters
Anyone allowed to create tables or alter types can escape the database and run commands on the server, reaching the operating system. Databases where regular users create objects, including shared and hosted environments, are exposed.
What to do
Update PostgreSQL to 18.7, 17.12, 16.16, 15.20, or 14.25, matching your major version. In the meantime, restrict who can create or alter objects in databases.
For the technical team
- CVE
- CVE-2026-6460
- Affected
- PostgreSQL · PostgreSQL before 18.7, 17.12, 16.16, 15.20, and 14.25.
- Exploitation
- PoC/exploit discovered, per a dbugs post via @ptdbugs (PT ID: PT-2026-141543).
- Fix
- Update to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25 per your major version; the source lists only versions before these as affected.
- Vector
- Type confusion in PostgreSQL. The system had inadequate tracking of typed values and values were not self-identifying; stale values could appear in data dictionary entries, PL/pgSQL variables, and other parts of the system. Exploitable by an object creator, primarily via ALTER ... SET DATA TYPE; another cited DDL route is "ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN".
- More details
- Beyond ALTER ... SET DATA TYPE, other DDL sequences work as a route. Cited root cause: inadequate tracking of typed values and values that were not self-identifying, with stale values in many parts of the system. Disclosed via dbugs (PT ID: PT-2026-141543).
Timeline
PoC released for CVE-2026-6460, a type confusion flaw giving code execution to object creators.
Sources 1 source
- @ptdbugs @ptdbugs


