Skip to main content

PostgreSQL EUVDEUVD-2026-124496

| CVE-2026-116316 HIGH
Improper Protection of Alternate Path (CWE-424)
2026-11-12 PostgreSQL GHSA-vhhp-qrj9-rf8m
8.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as low-privileged DB role
  2. Delivery
    Create malicious type in pg_temp
  3. Exploit
    Victim runs unqualified type name
  4. Execution
    Attacker SQL executes as caller
  5. Impact
    Escalate to caller's privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Alternate path protection
Exploitation Conditions

Requires an authenticated database role with permission to create objects (domain, enum, or range types) in the pg_temp schema - i.e. an ordinary logged-in user, matching CVSS PR:L. The decisive limiting factor is that the victim session must later execute a query containing an UNQUALIFIED type name (e.g. "SELECT '1'::bigint") inside a security-restricted operation; the description explicitly notes that autovacuum and other common security-restricted-operation users do NOT do this and are therefore unaffected, so impact is concentrated on security-restricted operations run by roles that do reference unqualified types. Highest-risk deployments are shared or multi-tenant clusters where untrusted users hold login roles; single-tenant clusters with no untrusted authenticated users are far less exposed.

Impact

This is a genuinely serious, high-quality finding from the PostgreSQL project itself (CVSS 8.8), but it is not a drop-everything emergency. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) indicates a network-reachable, low-complexity flaw requiring only low privileges - i.e. any authenticated database role able to create temporary objects - with full confidentiality, integrity and availability impact because the attacker ultimately runs arbitrary SQL as the victim (the caller of a security-restricted operation), which can be a highly privileged role. No EPSS score, KEV listing, or PoC was provided in the input, so there is no public evidence of active exploitation - the vuln.today Decision label is 'this_week', consistent with a credible but not actively-exploited authenticated flaw. The one important tension to flag: CVSS rates this AC:L, yet the description states the attack only fires when the victim session later runs a query with an unqualified type name (e.g. "SELECT '1'::bigint") - a precondition not fully under the attacker's control, which somewhat reduces real-world reliability even though unqualified type references are extremely common. Net: prioritize patching this week, especially on shared/multi-tenant clusters where untrusted users hold ordinary login roles, rather than treating it as a remote-unauthenticated internet emergency.

Exploit ScenarioDerived

On a shared PostgreSQL cluster, a low-privileged but authenticated user creates a malicious domain, enum, or range type inside the pg_temp schema. When a more privileged victim session subsequently runs a security-restricted operation containing an unqualified type name (such as "SELECT '1'::bigint"), PostgreSQL resolves the type through pg_temp and executes the attacker's embedded SQL with the victim's privileges, enabling privilege escalation. No public exploit code was identified in the provided sources, and the attack depends on the victim issuing an unqualified-type query.

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 as the calling user is possible in PostgreSQL when a low-privileged object creator plants a domain, enum, or range type in the pg_temp schema and a later security-restricted operation resolves an unqualified type name (for example "SELECT '1'::bigint"), causing the attacker's type to be picked up and its code to run with the victim operation's privileges. Affected releases are PostgreSQL 18.x before 18.7, 17.x before 17.12, 16.x before 16.16, 15.x before 15.20, and 14.x before 14.25; the CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) rates this 8.8 because a merely authenticated role is enough. Autovacuum and other common security-restricted-operation users do not reference unqualified type names and are therefore unaffected, so real exposure is concentrated in shared or multi-tenant clusters where untrusted users hold login roles and security-restricted operations run for them; no public exploit code was identified at time of analysis.

RemediationAI

Upgrade to a fixed release on the branch you run: PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, as documented in the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-116316/. Because the whole attack chain depends on an attacker-created type in pg_temp being reachable from a security-restricted operation that resolves unqualified type names, interim reduction of exposure in shared or multi-tenant clusters means limiting which roles may create objects in pg_temp and auditing security-restricted operations that reference unqualified type names, converting those references to schema-qualified names so the temp-schema entry cannot be selected - the trade-off being that qualification and stricter object-creation grants must be applied consistently across application and extension code, and any missed path remains reachable until the upgrade is installed, which is the only complete fix. Review roles with login and object-creation privileges and confirm whether the security-restricted operations in your workload use unqualified type names before deciding how urgently to schedule the update.

Affected VersionsENISA

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

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

The flaw is an instance of CWE-424, Improper Protection of Alternate Path: PostgreSQL's type-name resolution honours the session search_path, and pg_temp is implicitly searched ahead of the normal schemas unless it is explicitly listed. A user permitted to create objects can therefore define a type named like a built-in (e.g. a domain over bigint named bigint) inside pg_temp, and because the temp schema is consulted first for unqualified names, the attacker-supplied type shadows the intended catalog entry. Security-restricted operations run with a deliberately constrained search_path precisely to prevent this class of substitution; the reported gap means the temp schema was not adequately excluded during type resolution in those contexts. When the victim operation later parses a statement with an unqualified type name, the attacker's type's input/output or constraint expressions execute as the operation's caller, yielding arbitrary SQL under those privileges - high confidentiality and integrity impact with no scope change. The trigger requires the specific combination of an attacker-writable pg_temp, a victim security-restricted operation, and an unqualified type reference; the description states plainly that autovacuum and other common security-restricted-operation users do not issue such queries, so they are not exploitable paths. CPE coverage is recorded generically as cpe:2.3:a:n/a:postgresql for the affected release trains, and per the CVSS vector the attacker must be authenticated (PR:L) but needs no user interaction (UI:N).

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.8 HIGH

Any authenticated role can create pg_temp types (PR:L); arbitrary SQL runs as the caller giving full C/I/A; AC:L since unqualified type references are near-universal, though it depends on victim behavior.

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

Improper protection of alternate path in PostgreSQL security-restricted operations allows an object creator to execute arbitrary SQL as the operation's caller, via a domain, enum, or range type created in pg_temp. The victim session must later run a query containing an unqualified type name, e.g. "SELECT '1'::bigint"; autovacuum and other common security-restricted operation users do not do so, so they are unaffected. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Executive ViewAI

Why It Matters

A high-severity vulnerability in PostgreSQL allows any authenticated user to execute arbitrary SQL with the privileges of security-restricted operations, potentially leading to data compromise or privilege escalation. This affects organizations with shared or multi-tenant database clusters where untrusted users have login access, putting sensitive data and critical functions at risk. Leadership should prioritize remediation because exploitation requires only a low-privileged account, and the flaw has a CVSS score of 8.8.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restrict CREATE privilege on the public schema and pg_temp schema to trusted users only; avoid running security-restricted operations for untrusted users; implement database activity monitoring to detect anomalous type creation; and isolate multi-tenant clusters from untrusted networks.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
High
PostgreSQL is a top-tier, very widely deployed enterprise and cloud database
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.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

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