{"id":"CVE-2026-85091","aliases":["CVE-2026-85091","RUSTSEC-2026-0544"],"related":[],"kind":"vulnerability","state":"published","title":"zlib 1.2.11 through 1.3.2 Heap Buffer Overflow via Stale gzwrite Pointer After Failed Write","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"rustsec"}],"published":"2026-09-03T01:04:44.460Z","modified":"2026-11-17T10:15:02.362Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.3,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"1.2.11","lastAffected":"1.3.2","status":"affected"}],"vendor":"zlib","product":"zlib","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.1.25","status":"affected","fixed":"1.1.33"}],"ecosystem":"crates.io","package":"libz-sys","purl":"pkg:cargo/libz-sys","source":"rustsec"}],"references":[{"url":"https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490","tags":["exploit","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148","tags":["patch","web"],"sources":["cvelist","rustsec","nvd"]},{"url":"https://github.com/madler/zlib/blob/v1.3.2/gzwrite.c#L393","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/madler/zlib","tags":["product"],"sources":["cvelist","nvd"]},{"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"],"sources":["cvelist","nvd"]},{"url":"https://crates.io/crates/libz-sys","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0544.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/madler/zlib/issues/1310","tags":["report"],"sources":["rustsec"]},{"url":"https://github.com/rust-lang/libz-sys/commit/b161d77050c00c6eeb7dd4b66ea14d4524d73dc4","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/rust-lang/libz-sys/commit/8827cadbe2b560233909212527c291827fb34512","tags":["web"],"sources":["rustsec"]}],"credits":["Ali Firas (thesmartshadow)","Michael Mullins"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-09-03T13:21:12.950Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-85091","url":"https://www.cve.org/CVERecord?id=CVE-2026-85091","licence":"CVE Terms of Use","modified":"2026-11-13T14:15:55.362Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0544","url":"https://rustsec.org/advisories/RUSTSEC-2026-0544.html","licence":"CC0-1.0","modified":"2026-11-17T10:15:02.362Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-85091","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85091","licence":"Public domain","modified":"2026-11-13T15:17:56.490Z"}],"updatedAt":"2026-11-25T22:59:36.173Z","epss":{"score":0.00495,"percentile":0.44065,"date":"2026-12-01T12:00:22.000Z"}}