CVE-2026-16240
Received Received - Intake

Format String Vulnerability in PostgreSQL pg_basebackup

Vulnerability report for CVE-2026-16240, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-12

Last updated on: 2026-11-12

Assigner: PostgreSQL

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-12
Last Modified
2026-11-12
Generated
2026-11-12
AI Q&A
2026-11-12
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
postgresql pg_basebackup to 18.7|end_excluding=17.12|end_excluding=16.16|end_excluding=15.20|end_excluding=14.25 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-134 The product uses a function that accepts a format string as an argument, but the format string originates from an external source.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves a format string issue in PostgreSQL's pg_basebackup utility. An attacker who has already compromised a server can use backup manifest bytes as a format string to potentially disclose memory contents from pg_basebackup. The attack requires prior access and does not return read bytes directly to the attacker's server, needing additional secrets for success. Integrity impact is unlikely as the formatter does not support %n.

Detection Guidance

Detecting this vulnerability requires checking the PostgreSQL version in use. Run 'pg_basebackup --version' to verify if your version is below 18.7, 17.12, 16.16, 15.20, or 14.25. If so, the system is vulnerable.

Impact Analysis

If you use an affected PostgreSQL version, an attacker with server access could exploit this to read sensitive memory contents from pg_basebackup. This could lead to unauthorized information disclosure. The impact is limited to confidentiality and requires prior compromise of the server.

Compliance Impact

This vulnerability could lead to unauthorized data disclosure, which may violate GDPR's data protection requirements or HIPAA's confidentiality rules. Organizations using affected PostgreSQL versions should patch to avoid compliance risks related to potential memory leaks.

Mitigation Strategies

Upgrade PostgreSQL to a patched version (18.7, 17.12, 16.16, 15.20, or 14.25 or later). If immediate upgrade is not possible, restrict access to the server to prevent attackers from exploiting the vulnerability.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-16240. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...