{"id":"CVE-2026-85091","published":"2026-09-03T01:04:44Z","modified":"2026-11-13T14:15:55Z","title":"zlib 1.2.11 through 1.3.2 Heap Buffer Overflow via Stale gzwrite Pointer After Failed Write","vendor":"zlib","product":"zlib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00592,"percentile":0.42295,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490","tags":["technical-description","exploit"]},{"url":"https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148","tags":["patch"]},{"url":"https://github.com/madler/zlib/blob/v1.3.2/gzwrite.c#L393","tags":["technical-description"]},{"url":"https://github.com/madler/zlib","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/zlib-1.3.1.2-through-1.3.2-heap-buffer-overflow-via-gz-vacate","tags":["third-party-advisory"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":8.46},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"zlib","affectedVersions":[{"vendor":"zlib","product":"zlib","versions":[">= 1.2.11, <= 1.3.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-03T13:21:12.950523Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"libz-sys","vulnerableRanges":[">=1.1.25, <1.1.33"],"patched":["1.1.33"],"from":["RUSTSEC-2026-0544"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-70301","exploited":false,"provenance":"source"},"exploitRefs":["https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490"]}