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

- Severity: Low 3.7 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-11-12T14:15:31.280Z
- Modified: 2026-11-27T06:45:45.146Z
- Also known as: BIT-POSTGRESQL-2026-16240
- Weaknesses: CWE-134
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 18 before 18.7; from 17 before 17.12; from 16 before 16.16; from 15 before 15.20; before 14.25
- postgresql (Bitnami): before 14.25.0; from 15.0.0 before 15.20.0; from 16.0.0 before 16.16.0; from 17.0.0 before 17.12.0; from 18.0.0 before 18.7.0

## Every score

- PostgreSQL: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://www.postgresql.org/support/security/CVE-2026-16240/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-16240> (web)

## Sources

- CVE List: [CVE-2026-16240](https://www.cve.org/CVERecord?id=CVE-2026-16240), CVE Terms of Use, modified 2026-11-12
- NVD: [CVE-2026-16240](https://nvd.nist.gov/vuln/detail/CVE-2026-16240), Public domain, modified 2026-11-12
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2026-16240](https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-16240), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-16240 · Whole record: https://cve.day/CVE-2026-16240.json · Rebuilt by cve.day 2026-11-27T07:07:31.839Z
