CVE-2026-6460
PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code
- Published
- Nov 12, 2026
- Updated
- Nov 13, 2026
- First covered
- Nov 14, 2026
- Latest story
- 7 days ago
Summary
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.
CWE-843Access of Resource Using Incompatible Type ('Type Confusion')
Attack profile
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAffected products
- PostgreSQL18 to before 18.717 to before 17.1216 to before 16.1615 to before 15.20