Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged DB role
-
DeliveryCreate malicious type in pg_temp
-
ExploitVictim runs unqualified type name
-
ExecutionAttacker SQL executes as caller
-
ImpactEscalate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-124496
GHSA-vhhp-qrj9-rf8m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB