RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0544

libs-sys: heap buffer overflow

Reported
Issued
Package
libz-sys (crates.io)
Type
Vulnerability
Categories
Keywords
#zlib #gzwrite #gzprintf #heap-overflow #non-blocking
Aliases
References
Patched
  • >=1.1.33
Unaffected
  • <1.1.25

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.

Advisory available under CC0-1.0 license.