Skip to main content

PostgreSQL EUVDEUVD-2026-124498

| CVE-2026-116318 HIGH
SQL Injection (CWE-89)
2026-11-12 PostgreSQL GHSA-6vgg-f58c-3v5x
8.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Obtain object-creation privilege in target DB
  2. Delivery
    Create table with quoted-name child NOT-NULL constraint
  3. Exploit
    Admin runs pg_dump and restores dump
  4. Execution
    Injected SQL executes as restoring user
  5. Impact
    Privilege 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.

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

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

PostgreSQL 18 <18.7

Affected Packages

euvd postgresql fix: 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 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

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

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/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
Low
User Interaction
None
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

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 62% exploitable
Prevalence
High
PostgreSQL is a top-tier enterprise/cloud database, though only v18 is affected
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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

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

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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