CVE-2026-16240: PostgreSQL pg_basebackup - Format String Vulnerability
- Cve: CVE-2026-16240
- Name: PostgreSQL pg_basebackup - Format String Vulnerability
- 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.
- Impact: Attackers with a compromised server can disclose pg_basebackup memory contents, potentially leaking sensitive information.
- Remediation: Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25 or later.
- Vulnerability impact: information_disclosure
- Requirements: Attacker must have already compromised a server
- Labels source: securitycontext
- Severity: low
- Cvss score: 3.7
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- Epss score: 0.00256
- Epss percentile: 0.17378
- Assignee: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
- Published at: 2026-11-12T15:17:50Z
- Age in days: 12
- Modified at: 2026-11-12T22:19:21Z
- References total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-16240
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-134 | Use of Externally-Controlled Format String |
References
| Url | Source | Tags |
|---|---|---|
| https://www.postgresql.org/support/security/CVE-2026-16240/ | nvd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts