Skip to main content

PostgreSQL CVE-2026-116313

| EUVDEUVD-2026-124493 HIGH
Untrusted Search Path (CWE-426)
2026-11-12 PostgreSQL GHSA-64m9-jq4j-66v4
7.2
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as a database owner
  2. Delivery
    Create shadowing operators in search path
  3. Exploit
    Privileged admin runs vacuumdb --missing-stats-only
  4. Execution
    Attacker SQL executes as vacuumdb-running user
  5. Impact
    Full database compromise / privilege escalation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
Exploitation Conditions

Exploitation requires two preconditions that together limit realistic risk: (1) the attacker must hold database-owner privileges on a target database so they can create operators that shadow those used in vacuumdb's --missing-stats-only catalog query, and (2) a higher-privileged user must execute that specific vacuumdb invocation - a path the pg_upgrade documentation actively recommends, which raises exposure during major-version upgrades. It is bounded to PostgreSQL 18.0-18.6 (18.7 is fixed; pre-18 is not affected). Limiting factors: it needs authenticated database ownership (not anonymous/remote access) and an out-of-band privileged vacuumdb run that the attacker does not directly control, so despite the AV:N label it is not remote unauthenticated exploitation against a default configuration.

Impact

Severity signals are mixed and point to a credible but conditional insider/privilege-escalation issue rather than a mass-exploitable remote bug. NVD rates it CVSS 7.2 with CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, and the vuln.today decision label is 'this_week', indicating elevated but not emergency urgency. There is no CISA KEV listing, no EPSS score supplied, and no SSVC decision data in the input, so automatability and widespread-exploitation signals are simply absent - not low, just unprovided. Critically, AV:N conflicts with the real mechanism: the description makes clear that exploitation requires the attacker to already hold database-owner privileges AND for a higher-privileged user to run a specific vacuumdb invocation, so this behaves more like an authenticated local privilege-escalation than an internet-reachable remote flaw - verify the attack-vector interpretation against the mechanism. Note also a privilege mismatch worth flagging to defenders: NVD encodes PR:H, yet owning a database in PostgreSQL is a relatively modest, commonly-granted privilege, which arguably understates how reachable the precondition is. Overall this is a genuine priority for environments that grant database ownership to untrusted or semi-trusted users and that run pg_upgrade/vacuumdb as a superuser, and lower priority where database owners are fully trusted.

Exploit ScenarioDerived

A user who owns a database (a low-to-moderate privilege in PostgreSQL) creates operators that shadow those referenced by vacuumdb's --missing-stats-only catalog query within their schema search path. When an administrator later runs that vacuumdb invocation as a superuser - exactly as the pg_upgrade documentation recommends - the attacker's shadowing operators execute attacker-controlled SQL with the superuser's privileges, achieving privilege escalation. No public exploit code was identified at 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

Arbitrary SQL execution in PostgreSQL 18.0 through 18.6 occurs when vacuumdb --missing-stats-only resolves operators that a database owner has shadowed, allowing that owner to run SQL with the privileges of the database user executing vacuumdb. Exploitation is authenticated and conditional: the attacker needs database-owner rights, and a higher-privileged user must run the affected vacuumdb invocation-a step the pg_upgrade documentation recommends, increasing exposure during major-version upgrades. No public exploit was identified at time of analysis, and the issue is not remote unauthenticated exploitation against a default configuration.

RemediationAI

Vendor-released patch: PostgreSQL 18.7. Upgrade all PostgreSQL 18.x installations to 18.7 or later; PostgreSQL releases before 18 do not need this fix. Because the pg_upgrade documentation recommends an affected vacuumdb invocation, update any major-version upgrade runbooks to use 18.7 before executing vacuumdb --missing-stats-only. If immediate upgrade is not possible, restrict execution of vacuumdb --missing-stats-only to trusted database users and review database-owner-created operators that could shadow those used by the catalog query, noting that updating to 18.7 is the complete fix. The vuln.today priority is this_week, so schedule the 18.7 upgrade within the current weekly remediation cycle. Vendor advisory: https://www.postgresql.org/support/security/CVE-2026-116313/.

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

CVE-2026-116313 is an untrusted search path (CWE-426) issue in the PostgreSQL vacuumdb client tool, specifically in the catalog query used by --missing-stats-only. PostgreSQL resolves operators through the search path; a database owner can create an operator that shadows the operator expected by vacuumdb's query, so when a higher-privileged user runs that invocation, the query executes attacker-supplied SQL under that user's database privileges. The authoritative assessed vector is CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H: network reachability is labeled, but exploitation requires an authenticated database owner (PR:L) plus a separate higher-privileged vacuumdb run, which is why attack complexity is high and the issue is not unauthenticated remote exploitation. The flaw is bounded to PostgreSQL 18.0-18.6; 18.7 is fixed, and releases before 18 are unaffected. Because pg_upgrade documentation recommends an affected vacuumdb invocation, major-version upgrade workflows are the main exposure path.

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 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Database ownership is a modest, commonly-granted privilege (PR:L), but success depends on a privileged user running the specific vacuumdb query, which is outside attacker control (AC:H); arbitrary SQL as that user yields full C/I/A impact.

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
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 7.2

DescriptionCVE.org

Untrusted search path in PostgreSQL vacuumdb allows a database owner to execute arbitrary SQL as the database user running vacuumdb, via shadowing operators used in the --missing-stats-only catalog query. The pg_upgrade documentation recommends an affected vacuumdb invocation. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Executive ViewAI

Why It Matters

CVE-2026-116313 is a high-severity flaw in PostgreSQL 18.0-18.6 that lets a database owner escalate privileges by exploiting the vacuumdb utility when run by a higher-privileged user, a scenario explicitly recommended during major version upgrades. Because this intersects with routine pg_upgrade operations, organizations planning or performing upgrades to PostgreSQL 18 face elevated risk of unauthorized SQL execution with elevated privileges, potentially compromising data integrity and confidentiality. Leadership should prioritize this during upgrade windows and enforce least-privilege principles for database roles.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: avoid running vacuumdb --missing-stats-only as a high-privilege user; restrict database-owner roles to trusted accounts; run vacuumdb under a dedicated low-privilege OS user; monitor for anomalous SQL execution during upgrades; apply least-privilege principles to all database roles.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
High
PostgreSQL widely deployed, but only the recent major-version-18 branch is affected
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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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