# CVE-2026-85091: libs-sys: heap buffer overflow

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.59% (percentile 42, 2026-11-28)
- **Aliases:** RUSTSEC-2026-0544
- **Published:** 2026-11-11T12:00:00.000Z
- **Modified:** 2026-11-17T10:15:02.362Z

## Who should check

- Projects that depend on crates.io package libz-sys (\>= 1.1.25, \< 1.1.33)

## Description

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.

## Affected and fixed versions

- crates.io `libz-sys`: affected \>= 1.1.25, \< 1.1.33; fixed 1.1.33 (osv)

## Technologies

Rust crates

## Mitigation

- Upgrade libz-sys to 1.1.33 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-85091. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-85091.md
Affected: libz-sys >= 1.1.25, < 1.1.33
Fixed in: 1.1.33

Steps:
1. Search this machine and project for libz-sys (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-85091 being exploited?

There is no confirmed exploitation: CVE-2026-85091 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-85091?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-85091?

libz-sys \>= 1.1.25, \< 1.1.33.

### Is there a fix for CVE-2026-85091?

Yes. Fixed in 1.1.33. Upgrade libz-sys to 1.1.33 or later.

### How do I check if I'm affected by CVE-2026-85091?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0544.html>
- patch: <https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148>
- patch: <https://github.com/rust-lang/libz-sys/commit/b161d77050c00c6eeb7dd4b66ea14d4524d73dc4>
- patch: <https://github.com/rust-lang/libz-sys/commit/8827cadbe2b560233909212527c291827fb34512>
- other: <https://crates.io/crates/libz-sys>
- other: <https://github.com/madler/zlib/issues/1310>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0544> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-85091> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-85091>
