SEVERITY NOT PROVIDED EPSS 0.6% · 42th percentile

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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
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.

References

Source records: RUSTSEC-2026-0544 (OSV.dev) · EPSS by FIRST, 2026-11-26.