Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise upstream PostgreSQL server
-
DeliveryServe crafted backup manifest bytes
-
ExploitTrigger format string in pg_basebackup
-
ExecutionRead pg_basebackup process memory
-
ImpactLimited local information disclosure
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Format string safety
|
| Exploitation Conditions | Exploitation requires that the attacker has ALREADY compromised the PostgreSQL server from which a backup is taken; the attacker then supplies externally-controlled format-string content inside the backup manifest bytes that pg_basebackup parses, causing pg_basebackup to read its own process memory. Two explicit limiting factors sharply reduce realistic risk: (1) the improperly-read bytes are NOT returned to the attacker's server, so successful disclosure additionally requires separate implementation-specific secrets to recover the data; and (2) integrity impact is unlikely because the applicable formatter does not support %n, preventing format-string writes. Thus the flaw is only reachable in deployments where a trusted pg_basebackup client connects to a server an attacker already controls, and only yields limited local memory disclosure within the pg_basebackup process. |
| Impact | This is a low-priority issue despite being a format-string flaw (CWE-134). The signals converge rather than conflict: CVSS base score is 3.7 (Low) with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N, the vuln.today decision label is 'monitor', there is no CISA KEV listing, no EPSS value was supplied, and no public exploit is referenced (the only reference is the vendor's own advisory). The most important mitigating signal is in the description itself: exploitation presupposes the attacker has ALREADY compromised the server that pg_basebackup connects to, and even then the improperly-read bytes are NOT returned to the attacker - a real attack would additionally require separate implementation-specific secrets to turn the in-process memory read into usable disclosure. Confidentiality impact is only Low (C:L), integrity is None because the formatter does not support %n, and availability is unaffected. Net: a high-privilege precondition (already-compromised server) plus a non-trivial exploitation path (AC:H, no exfiltration channel) make this a genuinely low real-world risk rather than a high-CVSS-but-overrated item - the CVSS score and all other signals agree. EPSS is missing, so no independent probability estimate is available, but KEV=NO and label=monitor both argue against urgency. |
| Exploit ScenarioDerived | An attacker who has already compromised a PostgreSQL server waits for (or induces) a pg_basebackup client to connect and take a backup. The malicious server returns crafted backup manifest bytes containing format-string specifiers, which pg_basebackup processes, causing it to read from its own process memory. No public exploit is identified at time of analysis, and because the read bytes are never sent back to the attacker's server, the attacker would additionally need separate implementation-specific secrets to make the disclosure useful. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
A use of externally-controlled format string (CWE-134) in PostgreSQL's pg_basebackup client lets an attacker who has already compromised a PostgreSQL server feed crafted backup manifest bytes to a connecting pg_basebackup process, causing that client to read from its own process memory. The flaw is rated low severity (CVSS 3.7, AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N) because the improperly-read bytes are not sent back to the attacker's server - recovering them requires separate implementation-specific secrets - and integrity impact is unlikely since the applicable formatter does not support %n. All PostgreSQL branches before 18.7, 17.12, 16.16, 15.20, and 14.25 are affected; vendor patches are available, no public exploit code or CISA KEV entry was identified at time of analysis, and the priority assessment is monitor.
RemediationAI
Vendor-released patch: upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20 or 14.25 (or later) on the matching branch, per the advisory at https://www.postgresql.org/support/security/CVE-2026-16240/. Because the vulnerability is only reachable by a pg_basebackup client that connects to a server an attacker already controls, the practical exposure is limited to backup workflows against untrusted or already-compromised clusters; operators who cannot upgrade immediately can reduce risk by running pg_basebackup only against servers they fully control and by taking backups with a client binary from a patched minor release, since the fix is client-side and mixing a patched pg_basebackup with an older server is the usual interim arrangement. Note that upgrading the client is a complete fix for the parsing flaw itself; there is no configuration toggle documented in the available sources that disables manifest parsing in pg_basebackup, so no claim of a feature-level workaround can be made beyond restricting which servers the client is pointed at.
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
pg_basebackup is the PostgreSQL client utility used to take a physical base backup of a running cluster, and it consumes a backup manifest (a set of JSON-formatted files listing backup contents and checksums) produced by the server. CWE-134 describes the case where attacker-influenced data is passed as the format argument to a printf-family routine rather than as a data argument, so the formatter interprets bytes from the string as conversion specifications and consumes values from the stack/register save area. Here the externally controlled content is the backup manifest bytes parsed by pg_basebackup, and the consequence is disclosure of pg_basebackup's own process memory rather than anything on the server side. Two properties bound the impact: the misread bytes are not returned to the attacker's server, so the attacker needs separate implementation-specific secrets to make use of them, and the formatter in question does not support %n, so format-string writes and integrity corruption are not practical. The attacker prerequisite is significant - the PostgreSQL server being backed up must already be under attacker control - which is why the CVSS vector carries AC:H despite AV:N and PR:N. CPE data identifies the affected platform as PostgreSQL (cpe:2.3:a:*:postgresql), and ENISA EUVD lists the affected ranges as 14 < 14.25, 15 < 15.20, 16 < 16.16, 17 < 17.12 and 18 < 18.7.
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:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Network-facing malicious server (AV:N, PR:N on attacker side), AC:H because read bytes are not returned and need separate secrets; only limited memory disclosure so C:L, and no %n means I:N/A:N.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
Use of externally-controlled format string in PostgreSQL pg_basebackup allows an attacker having already compromised a server to achieve disclosure from pg_basebackup memory, via backup manifest bytes. The vulnerability does not return the improperly-read bytes back to the attacker's server, so a successful attack would need separate implementation-specific secrets for that. Integrity impact is unlikely; in particular, the applicable formatter does not support %n. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
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-124431
GHSA-qrq9-3fx6-36f2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB