CVE-2026-16240: PostgreSQL pg_basebackup can use backup manifest content as a format string

CVE-2026-16240 affects 244 listed versions of PostgreSQL in the Dawnsentry catalogue.

3.7CVSS low
None knownexploitation
under 1%EPSS (next 30 days)
12 November 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PostgreSQL

244 of 250 listed versions are affected. Fixed in 18.7, 17.12, 16.16, 15.20, 14.25. The newest release, 19.0, is not affected.

18.6 18.5 18.4 18.3 18.2 18.1 18.0 17.11 17.10 17.9 17.8 17.7 17.6 17.5 17.4 17.3 17.2 17.1 17.0 17.0-rc1 16.15 16.14 16.13 16.12 16.11 16.10 16.9 16.8 16.7 16.6 16.5 16.4 16.3 16.2 16.1 16.0 15.19 15.18 15.17 15.16 15.15 15.14 15.13 15.12 15.11 15.10 15.9 15.8 15.7 15.6 15.5 15.4 15.3 15.2 15.1 15.0 14.24 14.23 14.22 14.21 and 184 more

What it is

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:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N (PostgreSQL)

Published by PostgreSQL on 12 November 2026. Last changed 12 November 2026.

Sources

Check one version you run: look CVE-2026-16240 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.