{"schemaVersion":4,"id":"CVE-2026-16240","aliases":["DEBIAN-CVE-2026-16240","ALPINE-CVE-2026-16240","UBUNTU-CVE-2026-16240"],"status":"published","duplicateOf":null,"title":"PostgreSQL pg_basebackup can use backup manifest content as a format string","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.","dates":{"published":"2026-11-12T14:15:31.280Z","modified":"2026-11-12T21:41:47.325Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.7,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":5.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":5.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":5.6,"impact":2.3,"computed":true}]},"epss":{"probability":0.00256,"percentile":0.1837,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-13T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00256,"percentile":0.1837}],"last30":[{"date":"2026-11-13T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00269,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00256,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00256,"percentile":0.1837}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-134","name":"Use of Externally-Controlled Format String","description":"The product uses a function that accepts a format string as an argument, but the format string originates from an external source.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/134.html"}],"affected":[{"vendor":"alpine","product":"postgresql15","name":"postgresql15","label":"postgresql15","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql15","purlType":"apk","versions":[{"text":"< 15.20-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"15.20-r0","endInclusive":false}}],"versionsText":"< 15.20-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql16","name":"postgresql16","label":"postgresql16","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql16","purlType":"apk","versions":[{"text":"< 16.16-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"16.16-r0","endInclusive":false}}],"versionsText":"< 16.16-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql17","name":"postgresql17","label":"postgresql17","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql17","purlType":"apk","versions":[{"text":"< 17.12-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"17.12-r0","endInclusive":false}}],"versionsText":"< 17.12-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql18","name":"postgresql18","label":"postgresql18","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql18","purlType":"apk","versions":[{"text":"< 18.7-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"18.7-r0","endInclusive":false}}],"versionsText":"< 18.7-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-15","name":"postgresql-15","label":"postgresql-15","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-15","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 15.20-0+deb12u1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"15.20-0+deb12u1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 15.20-0+deb12u1","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-17","name":"postgresql-17","label":"postgresql-17","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-17","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 17.12-0+deb13u1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"17.12-0+deb13u1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 17.12-0+deb13u1","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-18","name":"postgresql-18","label":"postgresql-18","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-18","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 18.7-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"18.7-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 18.7-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-10","name":"postgresql-10","label":"postgresql-10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-10","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-12","name":"postgresql-12","label":"postgresql-12","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-12","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-14","name":"postgresql-14","label":"postgresql-14","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-14","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-16","name":"postgresql-16","label":"postgresql-16","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-16","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-18","name":"postgresql-18","label":"postgresql-18","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-18","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.3","name":"postgresql-9.3","label":"postgresql-9.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.5","name":"postgresql-9.5","label":"postgresql-9.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.5","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-16240/","label":"www.postgresql.org/support/security/CVE-2026-16240/","hostname":"www.postgresql.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-16240","label":"security-tracker.debian.org/tracker/CVE-2026-16240","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-16240","label":"security.alpinelinux.org/vuln/CVE-2026-16240","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-16240","label":"ubuntu.com/security/CVE-2026-16240","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-16240","label":"www.cve.org/CVERecord?id=CVE-2026-16240","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/","label":"www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/","hostname":"www.postgresql.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["DLA-4905-1","DSA-6625-1","MGASA-2026-0633","OPENSUSE-SU-2026:12550-1","OPENSUSE-SU-2026:12551-1","OPENSUSE-SU-2026:12552-1","OPENSUSE-SU-2026:12553-1","OPENSUSE-SU-2026:12654-1","OPENSUSE-SU-2026:12655-1","RHSA-2026:100114","RHSA-2026:100123","RHSA-2026:99821"],"duplicates":[],"related":["OPENSUSE-SU-2026:12550-1","OPENSUSE-SU-2026:12551-1","OPENSUSE-SU-2026:12552-1","OPENSUSE-SU-2026:12553-1","OPENSUSE-SU-2026:12654-1","OPENSUSE-SU-2026:12655-1"]},"timeline":[{"kind":"published","date":"2026-11-12T14:15:31.280Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-12T21:41:47.325Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,37],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00256,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-12T21:41:47.325Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-12T21:41:47.325Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-11-12T21:41:47.325Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_alpine","date":"2026-11-12T21:41:47.325Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-12T21:41:47.325Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-12T21:10:07.723Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00256,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:11:48.373Z","stale":false,"partial":false}}