Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as database user
-
DeliveryInvoke pg_show_all_settings() scan
-
ExploitTrigger module load replacing/freeing placeholders
-
ExecutionRead freed memory via returned settings
-
ImpactDisclose 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
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).
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.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
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.
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-124426
GHSA-3jp2-46gg-vhpr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB