Skip to main content
← All vulnerabilities
CVE-2026-76844GHSA-G84C-RXFJ-3J2C

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.3.0, 7.4.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • zlib zlib

    From 1.2.11 · through 1.3.2

  • webpack-dev-middlewarenpm

    From 8.0.0 · fixed in 8.3.0

  • webpack-dev-middlewarenpm

    fixed in 7.4.6

References 5

gist.github.com

GitHub · madler/zlib

vulncheck.com