(PoC Exploit for CVE-2026-6460) Remote Code Execution via composite type confusion in PostgreSQL (all versions prior to 14.25 / 15.20 / 16.16 / 17.12 / 18.7)
Vulnerability
CVE-2026-6460
PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code
Vulnerability details
- Score
- 8.8
- Severity
- high
CVSS 3.1 · PostgreSQL
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDescription
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.
CVE ProgramExploit source choices
3 sourceschor4o/cve-2026-6460-poc source repository
slabbdev/postgresql-type-confusion-cve-2026-6460 source repository