CVE-2026-85091

RUSTSEC-2026-0544 · published 3 Sep 2026 · updated 17 Nov 2026

zlib 1.2.11 through 1.3.2 Heap Buffer Overflow via Stale gzwrite Pointer After Failed Write

8.4HighCVSS 7.4EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in libz-sys 1.1.33.

zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gz_write() returns without resetting strm.next_in, leaving it pointed at the caller's buffer. A later gz* write call then derives a position from the stale pointer and writes past a heap allocation; any write() failure reaches it, including EPIPE on a blocking descriptor, and in versions before 1.3.1.2 the failed write must be followed by a gzclearerr() call.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
zlib>=1.2.11 <=1.3.2
cargo: libz-sys>=1.1.25 <1.1.331.1.33

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-85091 severity on Zeptric[![CVE-2026-85091](https://zeptric.io/badge/cve/CVE-2026-85091.svg)](https://zeptric.io/cve/CVE-2026-85091)