Skip to main content
Public proof of conceptFix availableAwaiting NVD analysis

CVE-2026-85091

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

A public proof of concept exists; no exploitation attested.

  • Published2026-09-03
  • Fixed in1.1.33
  • WeaknessCWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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

dates in UTC
  1. 2026-09-0301:04CVE publishedCNA

Versions per branch

OSV
libz-sys
BranchAffectedFixed in
1.1≥ 1.1.25, < 1.1.331.1.33

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As VulnCheck, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • zlibother versions: not affected
    Affected
    • ≥ 1.2.11, ≤ 1.3.2no fix statedcustom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-13

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • gitoxideopenSUSE:Tumbleweedall versions · fixed in 0.62.0-1.1
  • klibcUbuntu:Pro:20.04:LTSall versions · no fixed version listedand 1 other package
  • klibcUbuntu:Pro:18.04:LTSall versions · no fixed version listedand 1 other package
  • klibcUbuntu:Pro:16.04:LTSall versions · no fixed version listedand 1 other package
  • klibcUbuntu:26.10all versions · no fixed version listedand 1 other package
  • mysqlAzure Linux:3all versions · no fixed version listedand 3 other packages
  • rustupCleanStartall versions · fixed in 1.28.2-r7
  • trivyopenSUSE:Tumbleweedall versions · fixed in 0.76.0-1.1

28 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-85091 Red Hat Product Security

    zlib: zlib: Heap buffer overflow in gz_vacate() allows arbitrary code execution

Full record on NVD

Fix

  1. Update libz-sys to 1.1.33

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
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/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
Published
2026-09-03
Last modified
2026-11-13
NVD status
Awaiting Analysis
GitHub advisory
GHSA-g5fp-32jq-cfw2

Frequently asked questions

What is CVE-2026-85091?

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.

Is CVE-2026-85091 actively exploited?

A proof-of-concept exploit exists for CVE-2026-85091, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-85091?

CVE-2026-85091 has a CVSS v3 base score of 7.4 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H.

Running zlib? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record