CVE-2026-85091
JSON

8.3high

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

Severity
8.3high CVSS:4.0 by VulnCheck
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
RUSTSEC-2026-0544

Description

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

Product or packageVersionsReported by
zlib zlibfrom 1.2.11 up to 1.3.2CVE List
libz-sys (crates.io)from 1.1.25 before 1.1.33RustSec Advisory Database

All scores

VulnCheck8.3high CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

RustSec Advisory Database

zlib versions 1.3.1.2 through 1.3.2 contain a heap buffer overflow vulnerability in the gz_vacate() function when processing non-blocking gzwrite() operations with stale external buffer pointers. Attackers can trigger the overflow by calling gzprintf() or gzvprintf() after a write stall, causing an unchecked memmove() to write beyond the internal input buffer boundary.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-85091 changed 2026-11-13CVE Terms of Use
RustSec Advisory DatabaseRUSTSEC-2026-0544 changed 2026-11-17CC0-1.0
NVDCVE-2026-85091 changed 2026-11-13Public domain