BIT-postgresql-2026-16240: PostgreSQL pg_basebackup can use backup manifest content as a format string
Use of externally-controlled format string in PostgreSQL pgbasebackup allows an attacker having already compromised a server to achieve disclosure from pgbasebackup 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 14.25.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 15.20.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 16.16.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 17.12.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 18.7.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 18.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 17.12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 16.16 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 15.20 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.25
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems running affected PostgreSQL versions and using pg_basebackup are exposed only after an attacker has already compromised a server and can control backup manifest bytes. The issue is a memory-disclosure risk, not an initial server-compromise vector.
What additional conditions are needed for an attacker to obtain useful data?
Although controlled manifest content can cause pg_basebackup to read memory through a format-string flaw, the improperly read bytes are not returned to the attacker's server. A successful disclosure would require separate, implementation-specific secrets or another way to obtain those bytes.
Is integrity impact expected?
Integrity impact is unlikely because the applicable formatter does not support the %n format specifier. The reported impact is limited to potential confidentiality disclosure.
Which PostgreSQL versions should be updated?
Update to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, or a later release in the applicable branch. Versions before those releases are affected.