Skip to main content

PostgreSQL pg_restore EUVDEUVD-2026-124494

| CVE-2026-116314 HIGH
Improper Input Validation (CWE-20)
2026-11-12 PostgreSQL GHSA-mhqh-c375-96c6
8.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious non-plain archive
  2. Delivery
    Deliver archive to victim operator
  3. Exploit
    Operator runs pg_restore on archive
  4. Execution
    Improper input validation mishandles provider
  5. Impact
    Arbitrary code executes as OS user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires (1) the use of a non-plain archive format - i.e. a custom, directory, or tar archive processed by a non-plain archive provider, not a plain SQL dump; and (2) a victim operator actually invoking pg_restore against the attacker-crafted archive (CVSS UI:R). The attacker needs no PostgreSQL authentication (PR:N), but the entire chain is gated on someone choosing to restore an untrusted archive. The principal limiting factors are therefore the required user action and the trust context: environments that only ever restore internally-generated, trusted archives are not realistically exposed, while providers/pipelines that accept third-party dumps are. Code runs with the privileges of the OS user executing pg_restore, so impact scales with that account's rights. The vendor advisory presents upgrading to the fixed versions as the remedy; no configuration-only workaround is stated in the available source.

Impact

This is a credible operational priority but not an active-exploitation emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 8.8) reflects full OS-level code execution as the account running pg_restore, with high impact across confidentiality, integrity and availability. The vuln.today decision label is 'this_week', consistent with a serious-but-not-immediate posture. Critically, UI:R is the dominant limiting signal: exploitation requires a human operator to actually run pg_restore against an attacker-supplied archive - this is NOT a server-side remote-trigger flaw despite AV:N/PR:N. The PR:N merely means the attacker needs no PostgreSQL credentials; it does not mean no victim action. No EPSS score, no CISA KEV listing, and no public exploit were provided in the input, so there is no evidence of in-the-wild exploitation. The description itself draws a precise boundary: crafted archive data legitimately causing arbitrary SQL at the restore destination is expected/by-design, but arbitrary code execution in the pg_restore OS process is the actual defect - so analyses that conflate 'malicious archive runs SQL' with this CVE would overstate it. Net: treat as a high-severity patch-this-week item for any workflow that restores untrusted/third-party archives; lower practical urgency where only trusted internal archives are ever restored.

Exploit ScenarioDerived

An attacker crafts a malicious non-plain-format PostgreSQL archive (custom, directory, or tar) and delivers it to a victim - for example a hosting provider, DBA, or CI pipeline that accepts customer-supplied dumps. When an operator runs pg_restore on that archive, improper input validation causes attacker-controlled code to execute as the operating-system user running pg_restore, not merely SQL at the destination. No public exploit code was identified in the provided intelligence at the time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

Improper input validation in PostgreSQL pg_restore before 18.7, 17.12, 16.16, 15.20, and 14.25 allows a crafted non-plain archive to execute arbitrary code as the OS user running pg_restore when an operator restores that archive. The attacker does not need PostgreSQL credentials, but the chain requires user action against an untrusted custom, directory, or tar archive; no public exploit identified at time of analysis. This is a credible operational priority but not an active-exploitation emergency, with exposure concentrated in environments that restore third-party dumps rather than only trusted archives.

RemediationAI

Vendor-released patch: upgrade PostgreSQL to 18.7, 17.12, 16.16, 15.20, or 14.25 (or later in the applicable branch); the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-116314/ presents upgrading as the remedy and states no configuration-only workaround. Until upgraded, restrict pg_restore to internally generated, trusted archives and avoid restoring third-party custom, directory, or tar archives; where third-party dumps must be processed, run pg_restore under a low-privilege OS account with no unnecessary access to limit the impact of code execution, recognizing that this reduces but does not eliminate exposure because the code runs as that account.

Affected VersionsENISA

PostgreSQL 0 <14.25
PostgreSQL 15 <15.20
PostgreSQL 17 <17.12
PostgreSQL 18 <18.7
PostgreSQL 16 <16.16

Affected Packages

euvd postgresql fix: 14.25, 15.20, 16.16, 17.12, 18.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PostgreSQL pg_restore processes archives produced by pg_dump, distinguishing plain SQL dumps from custom, directory, and tar archives handled by non-plain archive providers. CVE-2026-116314 is classified as CWE-20 improper input validation: crafted archive data is not adequately validated before use by such a provider, allowing arbitrary code execution in the pg_restore OS process rather than merely causing SQL to run at the restore destination. The supplied sources do not describe the specific parser field or validation failure that triggers the flaw. The CVSS vector is AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, so no PostgreSQL authentication is needed, but exploitation requires an operator to invoke pg_restore on the crafted non-plain archive; the resulting code runs with the privileges of that operating-system account. CPE cpe:2.3:a:n/a:postgresql:*:*:*:*:*:*:*:* identifies PostgreSQL as the affected product family.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Archive is attacker-delivered (AV:N) and needs no DB credentials (PR:N), but a victim must run pg_restore (UI:R); OS-user code execution yields C:H/I:H/A:H with no scope change.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 15:02 EUVD
CVE Published
Nov 12, 2026 - 14:15 cve.org
HIGH 8.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-116314 is a high-severity input validation flaw in PostgreSQL's pg_restore utility affecting versions prior to 18.7, 17.12, 16.16, 15.20, and 14.25. A crafted backup archive, when restored by a database operator, could allow an attacker to execute arbitrary code with the operator's OS privileges, bypassing PostgreSQL authentication entirely. This poses a credible operational risk for teams that regularly restore archives from external or untrusted sources, as it could lead to system compromise and data exposure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Until patched, only restore plain-format archives from trusted sources, validate archive integrity and origin, restrict pg_restore execution to authorized personnel, and consider running restores in isolated environments with minimal privileges.

Threat Intelligence Overview

EPSS Score
0.5%
Top 55% exploitable
Prevalence
High
PostgreSQL is a top-tier open-source RDBMS deployed across enterprise and cloud estates
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy