Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with object-creation privilege
-
DeliveryDefine domain over composite type
-
ExploitTrigger repeated domain checks
-
ExecutionReuse dangling memory-context pointer
-
ImpactExecute arbitrary code as database OS user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated database role that can create objects - specifically the ability to define a domain over a composite type (per CVSS PR:L, this is an authenticated 'object creator', not an anonymous remote attacker). The trigger is repeated domain checks over that composite-type domain, which cause reuse of a dangling memory-context pointer. LIMITING FACTORS: the attacker must already possess object-creation (DDL) privileges on the instance, so single-tenant databases where only trusted administrators can create objects face materially lower risk than multi-tenant or shared instances exposing CREATE rights to lower-trust users; no user interaction is required (UI:N) and no special non-default configuration is noted in the advisory. Fixed in PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 - the advisory presents updating as the remedy. |
| Impact | This is a genuine but access-gated priority rather than a drive-by internet threat. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) scores 8.8 High, but PR:L is the decisive signal: exploitation requires an authenticated database role with the privilege to create objects (specifically a domain over a composite type), so the attacker must already be a legitimate 'object creator' on the target instance. The high C/I/A impact is justified because success yields arbitrary code execution as the operating-system user running the database - a full escape from the SQL sandbox to OS-level control. Signals are otherwise thin and consistent rather than conflicting: no CISA KEV listing, no confirmed public exploit code (the only reference is the PostgreSQL vendor advisory), and no EPSS score was provided in the input, so real-world exploitation probability cannot be quantified here. The vendor-assigned priority is 'this_week', which aligns with a serious server-side RCE that nonetheless needs prior authenticated access rather than emergency/act_now treatment. Net: treat as an important patch for any multi-tenant or lower-trust database environment where untrusted users can create objects, while recognizing it is not a remote-unauthenticated mass-exploitation scenario. |
| Exploit ScenarioDerived | An attacker who holds a database role permitted to create objects (for example a tenant in a shared PostgreSQL instance, or a compromised application account with DDL rights) defines a domain over a composite type and triggers repeated domain checks that cause a dangling memory-context pointer to be reused. By controlling the freed-then-reused memory, they achieve arbitrary code execution as the OS account running PostgreSQL. No public exploit code is identified at time of analysis, and the attack requires authenticated object-creation privileges rather than anonymous network access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
A use-after-free in PostgreSQL's expanded-record domain checks lets an authenticated object creator execute arbitrary code as the operating system user running the database server. Every branch before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 is affected, but the flaw is access-gated: the attacker must already hold DDL privileges sufficient to define a domain over a composite type and then repeatedly trigger checks on it, which makes multi-tenant or shared instances that expose CREATE rights to lower-trust roles materially more exposed than single-tenant databases where only trusted administrators create objects. No public exploit code was identified at time of analysis, and the advisory presents updating as the remedy.
RemediationAI
Update to the fixed release for your branch: PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, as listed in the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-120150/; the advisory presents updating as the remedy, and because the flaw is memory-safety in the backend, there is no configuration switch that removes the vulnerable code path. Until the upgrade can be scheduled, reduce exposure in line with the assessed prerequisite by auditing and revoking object-creation rights (CREATE on schemas and databases) from roles that do not genuinely need to define types: this shrinks the set of principals who can reach the flawed expanded-record domain-check path, but it is a partial risk reduction only and will break legitimate DDL workflows for any role you restrict, so it should be paired with the upgrade rather than substituted for it. Prioritise multi-tenant and shared instances where CREATE has been granted broadly, and treat single-tenant systems with strictly administrative DDL access as lower urgency while still planning 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 defect is a classic CWE-416 use-after-free rooted in PostgreSQL's memory-context lifecycle management. PostgreSQL allocates working memory for query and type-processing operations inside memory contexts that are created, reset, and destroyed on well-defined boundaries; when a domain constraint is evaluated over an expanded (deconstructed) composite-type record, the code path retains a pointer into a memory context that has already been released, and subsequent evaluations dereference that dangling pointer. Because the corrupted memory lives in the backend process address space, and PostgreSQL backends run as the operating system account that owns the data directory, successful manipulation of the freed allocation escalates from database-level object manipulation to arbitrary code execution at the OS level, with the confidentiality, integrity, and availability impact all rated high (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). The relevant privilege boundary is object creation rather than ordinary data access: the vector's PR:L reflects an authenticated role able to define the domain and drive repeated checks, not an anonymous remote attacker. Per the CPE mapping (cpe:2.3:a:n/a:postgresql), all supported upstream branches are in scope. The specific allocation sizes, timing, and heap state required to turn the dangling pointer into controlled code execution are not 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
Network-reachable database protocol (AV:N) but requires an authenticated object-creation role (PR:L); successful use-after-free yields OS-level code execution, giving full C/I/A impact.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
Use after free in PostgreSQL expanded-record domain checks allows an object creator to execute arbitrary code as the operating system user running the database, via repeated checks of a domain over a composite type that cause reuse of a dangling memory-context pointer. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Articles & Coverage 1
Executive ViewAI
CVE-2026-120150 is a high-severity privilege escalation vulnerability in PostgreSQL that allows an authenticated user with object-creation privileges to execute arbitrary code as the database OS user. This puts multi-tenant or shared PostgreSQL environments with broad CREATE rights at significant risk, potentially compromising sensitive data and system integrity. Leadership should prioritize patching and tighten database permissions to reduce exposure.
Restrict DDL privileges to trusted roles; revoke CREATE on schemas and databases from untrusted users; limit the ability to create domains over composite types; monitor database activity for repeated domain checks; apply vendor patch when available.
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
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-124424
GHSA-vwp2-2ffq-7j23
NVD
CVE.org
EPSS
VulDB
Exploit-DB