Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise dump-origin server
-
DeliveryCraft malicious tar-format pg_dump archive
-
ExploitInject predictable restriction key into restore.sql
-
ExecutionVictim runs psql to restore dump
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
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
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
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
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-124509
GHSA-3cj4-r426-m55g
NVD
CVE.org
EPSS
VulDB
Exploit-DB