Skip to main content

PostgreSQL pg_basebackup CVE-2026-16240

| EUVDEUVD-2026-124431 LOW
Use of Externally-Controlled Format String (CWE-134)
2026-11-12 PostgreSQL GHSA-qrq9-3fx6-36f2
3.7
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Compromise upstream PostgreSQL server
  2. Delivery
    Serve crafted backup manifest bytes
  3. Exploit
    Trigger format string in pg_basebackup
  4. Execution
    Read pg_basebackup process memory
  5. Impact
    Limited 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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

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

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

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

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

Vendor (PostgreSQL) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 3.7 LOW

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.

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
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
LOW 3.7

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

EPSS Score
0.3%
Top 81% exploitable
Prevalence
High
PostgreSQL is a 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 LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy