CVE-2026-16240: 
PostgreSQL vulnerability analysis and mitigation

Overview

CVE-2026-16240 is a use of externally-controlled format string vulnerability (CWE-134) in PostgreSQL's pg_basebackup utility that enables limited memory disclosure via maliciously crafted backup manifest bytes. It affects PostgreSQL versions before 14.25, 15.20, 16.16, 17.12, and 18.7. The vulnerability was published on November 12, 2026, with patches released the same day. It carries a CVSS v3.1 base score of 3.7 (Low) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is improper handling of format strings derived from external input (CWE-134) within the pg_basebackup tool when processing backup manifest content. An attacker who has already compromised a PostgreSQL server can craft a malicious backup manifest containing format string specifiers that, when processed by pg_basebackup, cause it to read from unintended memory locations. Exploitation requires prior server compromise as a precondition, and the vulnerability's impact is further constrained because the applicable formatter does not support %n (ruling out write primitives), and the improperly-read bytes are not directly returned to the attacker's server — a separate exfiltration mechanism would be required (GitHub Advisory, Red Hat Bugzilla).

Impact

Successful exploitation results in limited confidentiality impact through partial disclosure of pg_basebackup process memory contents. There is no integrity or availability impact, as the format string handler does not support write-capable specifiers like %n. Because the improperly-read bytes are not automatically returned to the attacker's server, a full data exfiltration attack would require additional implementation-specific mechanisms beyond this vulnerability alone (GitHub Advisory, Feedly).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of publication (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.269% (19th percentile), indicating a low probability of exploitation in the near term. Exploitation is further constrained by the requirement for prior server compromise and the high attack complexity rating.

Mitigation and workarounds

PostgreSQL has released patched versions addressing this vulnerability: 18.7, 17.12, 16.16, 15.20, and 14.25. Administrators should upgrade to the appropriate patched version for their branch as the primary remediation. As additional hardening measures, restrict network access to pg_basebackup and backup infrastructure, monitor for anomalous backup manifest activity, and implement network segmentation to limit lateral movement from any compromised server (GitHub Advisory, PostgreSQL Release).

Community reactions

The vulnerability was part of a broader PostgreSQL security release in November 2026 that addressed multiple CVEs, described by some community sources as one of PostgreSQL's largest security updates. Coverage from pganalyze and HeroDevs noted the release in the context of the broader November 2026 security batch (pganalyze, HeroDevs). Red Hat tracked the issue as low severity and assigned it to their Product Security team (Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

postgresql-15: 15.20-0+deb12u1

Fixed

sid

postgresql-18: 18.7-1

Fixed

trixie

postgresql-17: 17.12-0+deb13u1

Fixed

Ubuntu

Unknown

bionic (esm-infra)

postgresql-10

Unknown

devel

postgresql-18

Unknown

focal (esm-infra)

postgresql-12

Unknown

jammy

postgresql-14

Unknown

noble

postgresql-16

Unknown

resolute

postgresql-18

Unknown

trusty (esm-infra-legacy)

postgresql-9.3

Deferred

xenial (esm-infra-legacy)

postgresql-9.5

Unknown

RHEL / CentOS

Affected

RHEL 8

postgresql:12/postgresql.src

Affected

RHEL 9

postgresql.src

Affected

RHEL 10

postgresql16.src

Affected

Alpine

Fixed

edge

postgresql16: 16.16-r0

Fixed

v3.21

postgresql15: 15.20-r0

Fixed

v3.22

postgresql15: 15.20-r0

Fixed

v3.23

postgresql16: 16.16-r0

Fixed

Source: This report was generated using AI

Related PostgreSQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-6460HIGH8.8
  • PostgreSQL logoPostgreSQL
  • postgresql18-pltcl
NoYesNov 12, 2026
CVE-2026-18447HIGH8.8
  • PostgreSQL logoPostgreSQL
  • postgresql15-test
NoYesNov 12, 2026
CVE-2026-6467HIGH7.2
  • PostgreSQL logoPostgreSQL
  • postgresql15-client
NoYesNov 12, 2026
CVE-2026-16237MEDIUM5.4
  • PostgreSQL logoPostgreSQL
  • postgresql16-llvmjit-debuginfo
NoYesNov 12, 2026
CVE-2026-16240LOW3.7
  • PostgreSQL logoPostgreSQL
  • postgresql15-private-libs
NoYesNov 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management