CVE-2026-6460
PostgreSQL remote code execution in type handling during DDL
high · 8.8
Fix listed
PostgreSQL
Published
Description
Type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system user running the database, via ALTER ... SET DATA TYPE primarily. Other DDL attack routes exist, such as "ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN". 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 many other parts of the system. PostgreSQL Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Reported fixed versions
18.7, 17.12, 16.16, 15.20, 14.25
Data from cve.now. Summaries, where shown, are licensed CC BY 4.0.