Type Confusion Vulnerability in PostgreSQL Database Management System
CVE-2026-116331
8.8HIGH
What is CVE-2026-116331?
A type confusion issue in PostgreSQL's min/max aggregate optimization feature can allow an attacker to execute arbitrary code as the operating system user running the database. This occurs when a user-defined aggregate's SORTOP option leads the planner to incorrectly treat the input and result types as identical, even when they differ. This vulnerability affects multiple versions of PostgreSQL prior to the specified updates. It's essential for users and administrators to apply the necessary patches to mitigate the risk of potential exploitation.
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 Zheng Yu for reporting this problem.