CVE-2026-6460: Remote code execution
Exploitation: Public exploit · CVSS 8.8 High · Authenticated · Published 2026-11-12
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.
Fix
Upgrade to 18.7 or 17.12 or 16.16 or 15.20 or 14.25, whichever matches your release line.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| PostgreSQL | 18 before 18.7 | 18.7 |
| PostgreSQL | 17 before 17.12 | 17.12 |
| PostgreSQL | 16 before 16.16 | 16.16 |
| PostgreSQL | 15 before 15.20 | 15.20 |
| PostgreSQL | 0 before 14.25 | 14.25 |
Seen in 6 sources
- CVE.org
- CIRCL
- Red Hat
- Hacker News (Y Combinator)
- GitHub
- The Hacker News