ADVISORIES

RustSec Advisory Database

RUSTSEC-2026-0544

libs-sys: heap buffer overflow

Details

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 packages

EcosystemPackageAffected versions
crates.iolibz-sys
From 1.1.25 before 1.1.33 (fixed in 1.1.33)

References