Skip to main content

PostgreSQL pg_dump EUVDEUVD-2026-124509

| CVE-2026-116330 HIGH
Inclusion of Functionality from Untrusted Control Sphere (CWE-829)
2026-11-12 PostgreSQL GHSA-3cj4-r426-m55g
8.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Compromise dump-origin server
  2. Delivery
    Craft malicious tar-format pg_dump archive
  3. Exploit
    Inject predictable restriction key into restore.sql
  4. Execution
    Victim runs psql to restore dump
  5. Impact
    Execute arbitrary code as client OS account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
Exploitation Conditions

Exploitation requires that the victim restore a PostgreSQL pg_dump archive in tar format whose origin (the server/source that produced the dump) is attacker-controlled or compromised; the injection rides in the undocumented restore.sql via a predictable restriction key, and code runs with the privileges of the OS user account that invokes psql. Limiting factors: it is not autonomous - a user must actively initiate the restore (UI:R) of an untrusted dump, the dump must be in tar format, and the attacker must already control the dump source rather than merely have network reach to the victim. It is also specifically an incomplete-fix scenario: environments that only applied the CVE-2025-8714 remediation remain exposed. Only versions before 18.7, 17.12, 16.16, 15.20, and 14.25 are affected; the vendor fix is to update to those versions.

Impact

This is a credible priority rather than a paper-high CVSS issue, but its risk is gated by a required victim action. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 8.8) shows no attacker privileges and low complexity, yielding full confidentiality, integrity and availability loss via arbitrary code execution as the OS account running psql - the impact ceiling is high. The decisive mitigating signal is UI:R: exploitation is not autonomous or wormable; a user must restore a tar-format dump that originates from an attacker-controlled/compromised server. The decision label is 'this_week' (not act_now/emergency), which aligns with a serious-but-not-drop-everything posture. No EPSS score, no CISA KEV entry, and no PoC reference are present in the input, so exploitation status is 'no public exploit identified at time of analysis'; absence of these signals is not evidence of safety but does argue against widespread opportunistic exploitation today. A notable structural concern: the PostgreSQL advisory states this is a gap in the fix for CVE-2025-8714, meaning the earlier remediation was incomplete and the predictable restriction-key weakness in restore.sql persists - teams that believed CVE-2025-8714 was closed should re-verify. One point to confirm with the vendor: the vector is scored S:U (unchanged scope) even though the payload executes in the client OS context outside the database; the scope choice is defensible but worth noting.

Exploit ScenarioDerived

An attacker who controls or has compromised a PostgreSQL dump-origin server crafts a malicious tar-format pg_dump archive exploiting the predictable restriction key in the undocumented restore.sql. When a victim later restores that archive by running psql, the injected content executes arbitrary commands as the operating-system account running psql. The network attack vector and low complexity make the technical trigger easy, but UI:R means an administrator must actually initiate the restore of the untrusted dump; no public exploit code is identified in the available sources.

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

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

Alert me

AnalysisAIv1 – Nov 12, 2026

Arbitrary code execution on the machine running psql occurs when a tar-format pg_dump archive produced by an attacker-controlled or compromised origin server is restored, because untrusted content placed in the undocumented restore.sql file is executed with the privileges of the client operating system account performing the restore. The flaw is a gap in the fix for CVE-2025-8714: the restriction key used to neutralize restore.sql content is predictable and can be reconstructed by the dump source, so environments that applied only the earlier remediation remain exposed. Affected releases are those before PostgreSQL 18.7, 17.12, 16.16, 15.20 and 14.25; the CVSS vector (AV:N/AC:L/PR:N/UI:R) indicates no attacker authentication is needed but a victim must actively initiate the restore, and no public exploit code has been identified at time of analysis.

RemediationAI

Vendor-released patch: update to PostgreSQL 18.7 or later, 17.12 or later, 16.16 or later, 15.20 or later, or 14.25 or later, as documented at https://www.postgresql.org/support/security/CVE-2026-116330/; note that applying the earlier CVE-2025-8714 fix alone does not close this gap, so any branch must be brought to the stated version. Prioritize client installations whose psql restores tar-format dumps obtained from external or semi-trusted servers, since that is the exploitation path described. No workaround, configuration toggle, or alternative mitigation is documented in the available sources; the vendor position reflected in the data is that updating to the listed versions is the fix.

Affected VersionsENISA

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

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

pg_dump can emit archives in a tar format that psql understands; inside such an archive is a restore.sql script that psql runs during restore. That file is undocumented, and the CVE-2025-8714 remediation attempted to prevent attacker-supplied statements in it from executing by gating them behind a restriction key. CVE-2026-116330 shows that the key is predictable, so a server or dump source that the victim does not control can craft a tar-format dump whose restore.sql passes the restriction and executes arbitrary statements on the client host as the OS user running psql. The root cause class is CWE-829, inclusion of functionality from an untrusted control sphere: content from a lower-trust producer is imported into an execution context without adequate provenance enforcement. The trigger is specifically a manual restore of a tar-format archive from a compromised origin; the data provided does not claim that plain-format dumps, directory-format dumps, or non-restore workflows are affected, and no further trigger mechanics are described in the available sources. The relevant CVE-2025-8714 fix is incomplete, so patched-only-for-8714 deployments should be treated as still vulnerable.

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

Dump data arrives over the network (AV:N) with no attacker privileges (PR:N) but requires the victim to run the restore (UI:R); code execution as the OS account gives C/I/A:H.

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:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.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

Untrusted data inclusion in PostgreSQL pg_dump tar-format restore.sql allows a compromised origin server to execute arbitrary code as the client operating system account running psql, via the predictable restriction key in restore.sql. This is a gap in the fix for CVE-2025-8714. restore.sql is undocumented. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Executive ViewAI

Why It Matters

CVE-2026-116330 is a high-severity flaw in PostgreSQL's pg_dump restore process that allows an attacker-controlled server to execute arbitrary code on the machine running psql. This affects any employee or system that restores a tar-format archive from an untrusted source, potentially leading to full compromise of the client workstation. Leadership should care because a single restore action could enable data theft, ransomware, or lateral movement within the network.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
High
PostgreSQL is widely deployed enterprise database software across many environments
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.4%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
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