PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code
- CVE-2026-6460
- GHSA-7m3p-q8w8-4qgh
- EUVD-2026-124433
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.
Text from the CVE.org record.
Recommendation
Cvelo has no version information for this record. Check the vendor advisory.
Affected
No source names an affected product or package.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.