CVE-2026-6460
PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code
- Severity
- high CVSS 8.8 (v3.1)
- Affects
- PostgreSQL · n/a
- Weakness
- CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
- Published
- 12 November 2026 by PostgreSQL
- First seen on our lists
- 12 November 2026
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.
Our coverage
On the lists
- Re: [PATCH v1] Fix for Bug#19724 - ALTER TYPE ... ALTER ATTRIBUTE triggers internal error for base type of domain with check
- Re: Dropping a composite attribute causes data integrity violations
- [oss-security] PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25, and 19 RC 2 Released, fixes 52 security vulnerabilities