Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain object-creation privilege in target DB
-
DeliveryCreate table with quoted-name child NOT-NULL constraint
-
ExploitAdmin runs pg_dump and restores dump
-
ExecutionInjected SQL executes as restoring user
-
ImpactPrivilege escalation / arbitrary SQL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to be an authenticated object creator in the target database who can define a table containing an inherited column with a child-local NOT NULL constraint whose name requires quoting (the injection vector), and the target must run an affected release (PostgreSQL 18.0-18.6; versions before 18 are entirely unaffected and 18.7 fixes it). The payload only executes when a separate, higher-privileged user performs pg_dump followed by a restore of that database, so the key limiting factors are: the attacker needs CREATE privilege, a victim must actually carry out the dump/restore operation, and the impact is bounded by the restoring user's privileges - meaningful escalation requires the restorer to be more privileged (e.g., superuser) than the attacker. |
| Impact | This is a credible, verifiable issue but not a drop-everything emergency. The input CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) overstates reachability in one respect: the flaw is a restore-time SQL injection in pg_dump, so it cannot fire until a privileged user actually dumps and then restores a database - a human administrative action that is effectively user interaction the vendor vector scores as UI:N. PR:L is correct: the attacker must already be an authenticated object creator in the target database. EPSS is not provided, there is no CISA KEV listing, and no SSVC decision block or POC/exploit reference is supplied; the only decision signal is the vuln.today priority label 'this_week', which aligns with a serious privilege-escalation bug that is not under active exploitation. The realistic threat model is an insider or lower-privileged tenant who can create objects, waiting for a superuser to run a dump/restore - a targeted, multi-party scenario rather than mass remote exploitation. Net: treat as a real patch-this-week priority for multi-user PostgreSQL 18 deployments (shared/hosted databases, logical-replication and migration workflows), but lower urgency for single-tenant instances where only trusted superusers create and restore objects. Missing signal: no EPSS, KEV, SSVC, or POC data to confirm or refute exploitation likelihood. |
| Exploit ScenarioDerived | A low-privileged but object-creating user (e.g., a tenant or developer on a shared PostgreSQL 18 cluster) defines a table with an inherited column carrying a child-local NOT NULL constraint whose name requires quoting, embedding SQL in that name. When an administrator later runs pg_dump and restores the dump as a higher-privileged user, the malicious identifier is emitted unsafely and the attacker's SQL executes with the restorer's privileges. No public exploit identified at time of analysis; exploitation hinges on a privileged dump/restore being performed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
An authenticated database user who can create objects can abuse pg_dump in PostgreSQL 18.0 through 18.6 to embed arbitrary SQL in the emitted dump script, which then runs with the privileges of whoever restores that dump. The injection path is an inherited column carrying a child-local NOT NULL constraint whose name requires quoting; versions before PostgreSQL 18 are entirely unaffected and 18.7 closes the hole. Exploitation is not automatic: the attacker needs CREATE privilege, a more privileged user must actually run pg_dump and restore the resulting file, and the impact is capped by that restoring user's rights - which is why this rates high (CVSS 8.8, with the restore step counted as user interaction) but is a this-week priority rather than an emergency. No public exploit code or active exploitation has been identified at time of analysis.
RemediationAI
Upgrade to PostgreSQL 18.7, which is the vendor-released fix for this issue (see https://www.postgresql.org/support/security/CVE-2026-116318/); minor-version upgrades within major 18 do not require a dump/restore and can be applied in place, so there is no reason to defer. No workaround is documented in the available sources. Where an immediate upgrade is not possible, exposure can be narrowed by treating the CREATE privilege as the attack prerequisite: audit and revoke CREATE on application databases from roles that do not strictly need it, since an object creator is the party who can plant the malformed inherited column and constraint, and be aware that this breaks legitimate schema-management workflows. Equally, treat restore targets as privilege boundaries - restoring a dump produced from an untrusted or lower-trust database into a superuser session is exactly the escalation path described, so perform restores as a role with only the privileges the restored schema requires, and prefer restoring into an isolated instance when the dump source is not fully trusted.
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 is the standard PostgreSQL logical backup utility: it reads catalog metadata and emits a SQL script (or archive) of DDL and data that is replayed on restore. Reconstructing schema objects means pg_dump must render identifiers - table, column and constraint names - into SQL text, applying quoting rules where a name is not a safe unquoted identifier. The flaw (CWE-89, SQL injection) arises in that rendering path for a specific catalog configuration: a column that is inherited from a parent table while the NOT NULL constraint on the child is child-local, and where the constraint name is one that requires quoting. In that case the constraint name is not neutralised correctly, so attacker-controlled text lands in the dump script as executable SQL rather than as a quoted identifier. Because the dump script is executed by the restoring session, the injected statement inherits the restorer's privileges. The affected population is narrow by major version - only PostgreSQL 18.x before 18.7 is vulnerable; all earlier major versions do not contain the affected code path per the description. Note the CVSS disagreement between the published 8.8 vector (UI:N) and the assessed vector (UI:R): the assessed view treats the victim's dump-and-restore action as required user interaction, which is consistent with the described attack chain, and the trigger beyond these conditions is not further described in the available sources.
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:L/UI:N/S:U/C:H/I:H/A:H
Attacker needs object-creation rights (PR:L) and the payload only fires when an admin performs a dump/restore (UI:R); impact runs as the restorer, so C/I/A:H if that user is privileged.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
SQL injection in PostgreSQL pg_dump allows an object creator to execute arbitrary SQL as the user restoring the dump, via an inherited column having a child-local not-null constraint whose name requires quoting. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.
Articles & Coverage 1
Executive ViewAI
PostgreSQL 18.0 through 18.6 contain a high-severity flaw (CVE-2026-116318) that lets an authenticated database user with object creation rights embed malicious SQL in a pg_dump output, which then executes with the privileges of the restoring user. This could allow a low-privileged user to escalate privileges to administrator level if a DBA or backup process restores the compromised dump. While no public exploit code or active exploitation has been identified, the potential for significant data breach or system compromise makes this a priority for organizations running affected PostgreSQL versions.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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-124498
GHSA-6vgg-f58c-3v5x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB