Improper Input Validation in PostgreSQL Affects Execution of Arbitrary Code
CVE-2026-116314
8.8HIGH
What is CVE-2026-116314?
A vulnerability in PostgreSQL's pg_restore can lead to arbitrary code execution by allowing a non-plain archive provider to exploit improper input validation. When handling a crafted archive, malicious users could execute arbitrary code as the operating system user running pg_restore. While legitimate archive data may execute SQL code at the restore destination, it does not authorize arbitrary execution within the pg_restore process itself. This issue affects several PostgreSQL versions, emphasizing the importance of updating to mitigate security risks.
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:
None
User Interaction:
Required
Scope:
Unchanged
Timeline
Vulnerability published
Vulnerability Reserved
Credit
The PostgreSQL project thanks Dilip Kumar, Yonghwa Lee, OpenSec, and Ben Dixon for reporting this problem.