Skip to main content

PostgreSQL EUVDEUVD-2026-124426

| CVE-2026-120152 MEDIUM
Use After Free (CWE-416)
2026-11-12 PostgreSQL GHSA-3jp2-46gg-vhpr
4.3
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as database user
  2. Delivery
    Invoke pg_show_all_settings() scan
  3. Exploit
    Trigger module load replacing/freeing placeholders
  4. Execution
    Read freed memory via returned settings
  5. Impact
    Disclose adjacent process memory

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

Requires an authenticated database user (PR:L) with the ability to cause a module to be loaded while pg_show_all_settings() is scanning custom-variable (GUC) placeholders; the use-after-free occurs specifically when that module replaces and frees the placeholders during the scan, per the vendor description. Exploitation is further limited to PostgreSQL major versions 16 through 18 at minor versions before 18.7, 17.12, and 16.16 (versions before 16 are not affected), and depends on hitting the timing window between the scan and the free - it is not a pre-authentication or default-no-user-interaction condition. Impact is confined to limited memory-content disclosure; no code execution, data modification, or service-crash impact is indicated in the sources.

Impact

This is a moderate, low-priority issue rather than an emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, base 4.3) shows a network-reachable but authenticated flaw (PR:L - an existing database user) whose only impact is limited confidentiality (C:L): disclosure of small amounts of adjacent process memory via a use-after-free. There is no integrity or availability impact per the vector (I:N/A:N), which is notable because the input Tags claim 'Denial Of Service' - that label is not supported by the A:N metric or the description and should be treated with caution. No EPSS score, KEV listing, or PoC reference is present in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation; the vuln.today decision label is 'this_month', consistent with a routine patch-on-schedule item, not act_now/emergency. The practical risk is bounded by two factors: the attacker must already be an authenticated database user AND must be able to trigger loading of a module during the window in which pg_show_all_settings() scans custom-variable placeholders, which limits reliability and widespread opportunistic exploitation. Overall this is a genuine but low-urgency bug for most deployments; priority rises only where untrusted or low-trust users hold database login and module-loading capability.

Exploit ScenarioDerived

An authenticated low-privilege database user calls pg_show_all_settings() (e.g. via the pg_settings view) and concurrently triggers loading of a module that replaces and frees custom-variable (GUC) placeholders while the function is still scanning them, causing a use-after-free read. The freed memory may contain fragments of server process memory, which are returned to the user as setting values. No public exploit code is identified in the provided data; exploitation requires winning the scan/free timing window described by the vendor.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 12, 2026

PostgreSQL 16 through 18 can disclose limited process memory to an authenticated database user who loads a module that replaces and frees custom-variable (GUC) placeholders while pg_show_all_settings() is scanning them. The use-after-free affects minor releases before 18.7, 17.12, and 16.16, is not present before PostgreSQL 16, and depends on hitting the scan/free timing window. No public exploit was identified at time of analysis, and the read-only confidentiality impact keeps this a moderate, low-priority issue rather than an emergency.

RemediationAI

Vendor-released fixes are PostgreSQL 18.7, 17.12, and 16.16: upgrade 18.x to 18.7 or later, 17.x to 17.12 or later, and 16.x to 16.16 or later; releases before 16 are unaffected. The vendor advisory at https://www.postgresql.org/support/security/CVE-2026-120152/ should be used for release-specific upgrade guidance. The supplied sources do not describe a tested workaround, so interim risk reduction should be limited to restricting module-loading and pg_show_all_settings() access to trusted database roles where operationally feasible, recognizing that this can break legitimate extension and administrative workflows and does not replace upgrading.

Affected VersionsENISA

PostgreSQL 17 <17.12
PostgreSQL 18 <18.7
PostgreSQL 16 <16.16

Affected Packages

euvd postgresql fix: 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 issue is a CWE-416 use-after-free in PostgreSQL's pg_show_all_settings() implementation, which walks configuration settings and custom-variable placeholders. If a module is loaded during that scan and the module replaces and frees the placeholder objects, the ongoing scan can subsequently access freed memory and expose residual contents to the database user. The supplied CPE cpe:2.3:a:n/a:postgresql:*:*:*:*:*:*:*:* identifies PostgreSQL broadly, while the version data narrows the affected branches to 16, 17, and 18 before 18.7, 17.12, and 16.16; releases before 16 are unaffected. Exploitation requires an authenticated database user (CVSS PR:L) able to cause the module load during the scan, and the assessed vector limits impact to confidentiality (C:L) with no integrity or availability effect; the Denial Of Service and Memory Corruption tags should not be read as a confirmed crash impact given the assessed A:N vector and the independent finding of limited memory disclosure.

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

Authenticated database user over a network connection (AV:N/PR:L); only limited adjacent memory is disclosed (C:L) with no integrity or availability impact (I:N/A:N).

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 15:02 EUVD
CVE Published
Nov 12, 2026 - 14:15 cve.org
MEDIUM 4.3

DescriptionCVE.org

Use after free in PostgreSQL pg_show_all_settings() allows a database user to retrieve memory contents, via loading a module while the function is scanning custom-variable placeholders that the module replaces and frees. Within major versions 16-18, minor versions before PostgreSQL 18.7, 17.12, and 16.16 are affected. Versions before PostgreSQL 16 are unaffected.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
PostgreSQL is a top-tier, 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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