Skip to content- Sources: primary
- Summary: RUSTSEC-2026-0544, issued 2026-11-17, covers a heap buffer overflow in zlib's gz_vacate() when non-blocking gzwrite() operations hold stale external buffer pointers. Calling gzprintf() or gzvprintf() after a write stall makes an unchecked memmove() write past the internal input buffer. libz-sys versions from 1.1.25 up to but not including 1.1.33 are affected, and 1.1.33 is patched.
- Why it matters: Run cargo audit or check Cargo.lock for libz-sys between 1.1.25 and 1.1.32 and bump it, since many compression and Git crates pull it in.
- Background: libz-sys is the Rust -sys crate that links the system zlib or builds a vendored copy of the C library. Higher-level crates such as flate2 can use it as their zlib backend. The flaw sits in zlib's gz* file API, which wraps a file handle with buffered gzip compression, not in the raw deflate stream functions.