CVE-2026-85091: libs-sys: heap buffer overflow
Published 2026-11-11 · Updated 2026-11-17 · Also known as RUSTSEC-2026-0544
Summary
A heap buffer overflow exists in the libs-sys crate due to flawed memory management within the gz_vacate function during non-blocking write operations. Developers using libz-sys versions 1.1.25 through 1.1.32 should update to version 1.1.33 or later immediately.
Who is affected
The vulnerability affects applications utilizing libz-sys for gzwrite operations, specifically under conditions involving non-blocking writes and stale external buffer pointers. Triggering the flaw via gzprintf or gzvprintf following a write stall can result in an out-of-bounds memmove, leading to heap corruption. Successful exploitation requires specific timing and interaction with the library's internal input buffer.
Exploitability
The exploitability is characterized by an EPSS score of 0.005, indicating a relatively low probability of widespread exploitation. There is no official CVSS vector provided, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade libz-sys crate dependency to version 1.1.33 or higher.
- Rebuild affected applications to incorporate the patched library version.
How to check your project
- Check Cargo.lock for the presence of libz-sys versions between 1.1.25 and 1.1.32.
- Run 'cargo tree -p libz-sys' to identify dependencies pulling in the affected versions.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | libz-sys |
>= 1.1.25, < 1.1.33 | 1.1.33 | cargo update -p libz-sys --precise 1.1.33 |
FAQ
Is there active exploitation of this vulnerability?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
What is the primary cause of the overflow?
The overflow occurs because of an unchecked memmove operation in the gz_vacate function when dealing with stale buffer pointers during a write stall.
Are older versions of libz-sys vulnerable?
Based on the provided records, only versions 1.1.25 through 1.1.32 are identified as affected.
Original advisory description
References
- PACKAGE https://crates.io/crates/libz-sys
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0544.html
- REPORT https://github.com/madler/zlib/issues/1310
- WEB https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148
- WEB https://github.com/rust-lang/libz-sys/commit/b161d77050c00c6eeb7dd4b66ea14d4524d73dc4
- WEB https://github.com/rust-lang/libz-sys/commit/8827cadbe2b560233909212527c291827fb34512
Source records: RUSTSEC-2026-0544 (OSV.dev) · EPSS by FIRST, 2026-11-26.