CVE-2026-6460 – Type confusion after ALTER … SET DATA TYPE executes arbitrary code

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.


Vulnerability Information

  • Product / Framework: PostgreSQL Core
  • Vendor Domain: www.postgresql.org
  • Vulnerability Type: RCE
  • CVE Details: View Full CVE Details →