Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
3.7

CVE-2026-16240: PostgreSQL pg_basebackup may expose internal data

CVE-2026-16240 · published 8 days ago
Summary

Versions of PostgreSQL before 14.25, 15.20, 16.16, 17.12 and 18.7 allow the backup utility to read parts of its own memory and include them in the backup manifest. If an attacker already has control of the server, they could use this to see sensitive information that the database was handling. Upgrade PostgreSQL to the latest release or apply the vendor's patches to close the issue.

What to do
  • Update debian postgresql-17 to version 17.12-0+deb13u1.
  • Update bellsoft postgresql17 to version 17.12-r0.
  • Update debian postgresql-15 to version 15.20-0+deb12u1.
  • Update debian postgresql-18 to version 18.7-1.
  • Update bellsoft postgresql15 to version 15.20-r0.
  • Update bellsoft postgresql18 to version 18.7-r0.
  • Update postgresql to version 18.7 or later.
Affected software
Ecosystem VendorProductAffected versions
– – postgresql < 18.7
Debian:12 debian postgresql-15 < 15.20-0+deb12u1
Fix: upgrade to 15.20-0+deb12u1
Debian:13 debian postgresql-17 < 17.12-0+deb13u1
Fix: upgrade to 17.12-0+deb13u1
Debian:14 debian postgresql-18 < 18.7-1
Fix: upgrade to 18.7-1
Ubuntu:Pro:14.04:LTS canonical postgresql-9.3 All versions
Ubuntu:Pro:16.04:LTS canonical postgresql-9.5 All versions
Ubuntu:Pro:18.04:LTS canonical postgresql-10 All versions
Ubuntu:20.04:LTS canonical postgresql-12 All versions
Ubuntu:22.04:LTS canonical postgresql-14 All versions
Ubuntu:24.04:LTS canonical postgresql-16 All versions
Ubuntu:26.10 canonical postgresql-18 All versions
Alpaquita:25 bellsoft postgresql17 >= 17.5-r0, < 17.12-r0
Fix: upgrade to 17.12-r0
Alpaquita:23 bellsoft postgresql15 >= 15.2-r0, < 15.20-r0
Fix: upgrade to 15.20-r0
Alpaquita:stream bellsoft postgresql18 >= 18.0-r0, < 18.7-r0
Fix: upgrade to 18.7-r0
Original advisory text
BELL-CVE-2026-16240
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
3.7 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-134Use of Externally-Controlled Format String
Timeline
Published13 Nov 2026
Updated22 Nov 2026
First seen12 Nov 2026
Track software like this
Free during beta