CVE-2026-116314
Received Received - Intake

Arbitrary Code Execution in PostgreSQL pg_restore

Vulnerability report for CVE-2026-116314, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-12

Last updated on: 2026-11-12

Assigner: PostgreSQL

Description

Improper input validation in PostgreSQL pg_restore allows a non-plain archive provider to execute arbitrary code as the operating system user running pg_restore, via a crafted archive. Note a contrast: crafted archive data may legitimately cause arbitrary SQL to execute at the restore destination, but it does not legitimately confer arbitrary code execution in the pg_restore OS process. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-12
Last Modified
2026-11-12
Generated
2026-11-12
AI Q&A
2026-11-12
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
postgresql pg_restore to 18.7|end_excluding=17.12|end_excluding=16.16|end_excluding=15.20|end_excluding=14.25 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves improper input validation in PostgreSQL's pg_restore utility. It allows a non-plain archive provider to execute arbitrary code as the operating system user running pg_restore through a crafted archive. This differs from legitimate SQL execution during restoration, as it enables full OS-level code execution in the pg_restore process itself.

Detection Guidance

Check PostgreSQL version with 'pg_restore --version' to see if it is below 18.7, 17.12, 16.16, 15.20, or 14.25. Monitor for unexpected system commands executed during pg_restore operations.

Impact Analysis

An attacker could exploit this to run malicious code on your system with the same privileges as the user running pg_restore. This could lead to data theft, system compromise, or further network infiltration. The high CVSS score of 8.8 indicates significant risk to confidentiality, integrity, and availability.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's integrity and confidentiality requirements or HIPAA's safeguards for protected health information. Organizations using affected PostgreSQL versions may face compliance violations if exploited.

Mitigation Strategies

Update PostgreSQL to version 18.7, 17.12, 16.16, 15.20, or 14.25 or later. Avoid using untrusted archive files with pg_restore until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-116314. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...