Type Confusion Vulnerability in PostgreSQL Database Software
CVE-2026-6460
8.8HIGH
What is CVE-2026-6460?
A type confusion vulnerability in PostgreSQL allows an attacker to execute arbitrary code as the operating system user running the database. This can be exploited through actions like ALTER ... SET DATA TYPE and other DDL commands, which can manipulate typed values inadequately tracked by the system. This flaw results in stale values appearing across various components of PostgreSQL, including the data dictionary and PL/pgSQL variables, thereby posing significant security risks to database integrity.
Affected Version(s)
PostgreSQL 18 < 18.7
PostgreSQL 17 < 17.12
PostgreSQL 16 < 16.16
References
CVSS V3.1
Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged
Timeline
Vulnerability published
Vulnerability Reserved
Credit
The PostgreSQL project thanks Andrew Gierth, Alexander Lakhin, Francesco Verardi, Hcamael, Tomer Fichman, OpenAI Security Research Team, Mehmet Ince @mdisec, Bryan Green, Sumedh Pathak, Nicholas Carlini, Sergey Shinderuk, Yuxiao Guo, Nikhil Sontakke, Stephan Lipp, and Daniel Bakker for reporting this problem.