Affected versions
Rust / Cargolibz-sys
- Affected versions
- >=1.1.25 <1.1.33
- Fixed version
- 1.1.33
Exploitation
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.
Links
- https://crates.io/crates/libz-sys
- https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148
- https://github.com/madler/zlib/issues/1310
- https://github.com/rust-lang/libz-sys/commit/8827cadbe2b560233909212527c291827fb34512
- https://github.com/rust-lang/libz-sys/commit/b161d77050c00c6eeb7dd4b66ea14d4524d73dc4
- https://rustsec.org/advisories/RUSTSEC-2026-0544.html

