Type Confusion Vulnerability in PostgreSQL Affecting Multiple Versions
CVE-2026-120141
8.8HIGH
What is CVE-2026-120141?
A type confusion vulnerability exists in PostgreSQL's materialized set-returning functions, potentially allowing an attacker to execute arbitrary code with the privileges of the database's operating system user. This vulnerability arises from returning rows with incompatible dynamic RECORD return types, particularly affecting the json_populate_recordset() function. Users of PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25 are urged to upgrade their installations to mitigate this risk.
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 Peter Geoghegan for reporting this problem.