CVE Catalog

CVE-2026-76844

HighCVSS 7.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.59%

47th percentile - higher than 47% of all known CVEs

Summary

zlib versions 1.2.11 through 1.3.2 contain 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.

Risk Assessment

This can lead to application crashes or potential code execution, posing a serious risk to systems using zlib.

Recommendation

Upgrade zlib to version 1.3.1.2 or later if possible, or apply a workaround by avoiding situations where write() can fail.

Other vulnerabilities in zlib

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS