Vulnerability
Published 2026-11-12
Verified 2026-11-14

PostgreSQL CVE-2026-6460: type confusion after ALTER ... SET DATA TYPE lets an object creator run arbitrary code as the database OS user; fixed in 18.7, 17.12, 16.16, 15.20 and 14.25

The PostgreSQL project says type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system user running the database, primarily via ALTER ... SET DATA TYPE, and that other DDL attack routes exist, such as "ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN".

It says the system had inadequate tracking of typed values, so stale values could appear in data dictionary entries, PL/pgSQL variables and many other parts of the system. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20 and 14.25 are affected; the fixes were published on 12 November 2026. The project rates it CVSS 3.0 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). (source: PostgreSQL security advisory)

Product
PostgreSQL core server
Versions
PostgreSQL 14, 15, 16, 17 and 18 before 14.25, 15.20, 16.16, 17.12 and 18.7 (as stated by PostgreSQL, 13 Nov 2026)
CVSS
8.8 (CVSS 3.0, PostgreSQL)
Exploited in Australia?
unknown
Patch to
PostgreSQL 18.7, 17.12, 16.16, 15.20 or 14.25

vulnerabilities cloud