RUSTSEC-2026-0544: libs-sys: heap buffer overflow
- Source:
- OSV.dev
- Published:
- Fetched:
- Updated:
- Affects:
- libz-sys
https://osv.dev/vulnerability/RUSTSEC-2026-0544 ↗
libs-sys: heap buffer overflow 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: crates.io:libz-sys Fixed in: 1.1.33 References: https://crates.io/crates/libz-sys https://rustsec.org/advisories/RUSTSEC-2026-0544.html https://github.com/madler/zlib/issues/1310 https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148 https://github.com/rust-lang/libz-sys/commit/b161d77050c00c6eeb7dd4b66ea14d4524d73dc4 https://github.com/rust-lang/libz-sys/commit/8827cadbe2b560233909212527c291827fb34512