{"id":"JLSEC-2026-1997","summary":"zlib 1.2.11 through 1.3.2 gzip-writing heap buffer overflow","details":"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.\n\nzlib 1.4 includes the fix.","modified":"2026-12-02T19:43:30.791794023Z","published":"2026-12-02T19:14:06.115Z","upstream":["CVE-2026-85091","EUVD-2026-70301","GHSA-g5fp-32jq-cfw2"],"database_specific":{"license":"CC-BY-4.0","sources":[{"id":"CVE-2026-85091","imported":"2026-12-01T23:08:37.019Z","modified":"2026-11-13T15:17:56.490Z","published":"2026-09-03T13:06:20.573Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-85091","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85091","database_specific":{"status":"Awaiting Analysis"}},{"published":"2026-09-03T15:32:17Z","url":"https://api.github.com/advisories/GHSA-g5fp-32jq-cfw2","html_url":"https://github.com/advisories/GHSA-g5fp-32jq-cfw2","id":"GHSA-g5fp-32jq-cfw2","imported":"2026-12-01T23:09:28.738Z","modified":"2026-11-13T15:32:26Z"},{"url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-70301","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-70301","affected":{"zlib:zlib":["1.2.11 ≤1.3.2"]},"id":"EUVD-2026-70301","imported":"2026-12-01T23:06:30.298Z","modified":"2026-11-13T14:15:55Z","published":"2026-09-03T01:04:44Z"}]},"references":[{"type":"WEB","url":"https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490"},{"type":"WEB","url":"https://github.com/advisories/GHSA-g5fp-32jq-cfw2"},{"type":"WEB","url":"https://github.com/madler/zlib"},{"type":"WEB","url":"https://github.com/madler/zlib/blob/v1.3.2/gzwrite.c#L393"},{"type":"WEB","url":"https://github.com/madler/zlib/blob/v1.4/ChangeLog"},{"type":"WEB","url":"https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85091"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-85091"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/zlib-1.3.1.2-through-1.3.2-heap-buffer-overflow-via-gz-vacate"}],"affected":[{"package":{"name":"GCCBootstrap_jll","ecosystem":"Julia","purl":"pkg:julia/GCCBootstrap_jll?uuid=7627cfbf-f290-59f7-b5e8-595c7b62b918"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1997.json"}},{"package":{"name":"Zlib_jll","ecosystem":"Julia","purl":"pkg:julia/Zlib_jll?uuid=83775a58-1f1d-513f-b197-d71354ab007a"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1997.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","source":"CNA"},{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"CNA"}]}