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.
zlib 1.4 includes the fix.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Awaiting Analysis"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85091",
"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://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",
"published": "2026-09-03T15:32:17Z",
"url": "https://api.github.com/advisories/GHSA-g5fp-32jq-cfw2"
},
{
"affected": {
"zlib:zlib": [
"1.2.11 ≤1.3.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-70301",
"id": "EUVD-2026-70301",
"imported": "2026-12-01T23:06:30.298Z",
"modified": "2026-11-13T14:15:55Z",
"published": "2026-09-03T01:04:44Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-70301"
}
]
}