Skip to main content

PostgreSQL EUVDEUVD-2026-124424

| CVE-2026-120150 HIGH
Use After Free (CWE-416)
2026-11-12 PostgreSQL GHSA-vwp2-2ffq-7j23
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 with object-creation privilege
  2. Delivery
    Define domain over composite type
  3. Exploit
    Trigger repeated domain checks
  4. Execution
    Reuse dangling memory-context pointer
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

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

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 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

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

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.

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

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 52% exploitable
Prevalence
High
PostgreSQL is a widely deployed enterprise and cloud database engine
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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

Priority Score

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

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.

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