Debian Rust Security Tracker 🩺🦀

RUSTSEC-2026-0344: Decompression bomb in `ruzstd`: a tiny input can exhaust memory (OOM)

high 10 affected
Crate
ruzstd
Patched Versions
>=0.9.1
Debian Version
0.8.3-2
Debian Bugs
—
Issued
2026-10-11
Aliases
—
Patched:Affected

A crafted .zst input under 128 KB can force ruzstd to allocate several gigabytes at once, crashing the process with an out-of-memory condition. Since ruzstd is a decoder for untrusted input, a single small file is enough to take down anything decoding it.

The compressed size of a block was capped at 128 KB, but a compressed block's decompressed size was never checked against Block_Maximum_Size = min(Window_Size, 128 KiB) (RFC 8878). In execute_sequences the output was built with no running bound and no flush between blocks, so one block could expand to gigabytes — bypassing both the configured window-size limit and the block-by-block streaming that would otherwise release memory. (A related u32 counter overflow on such a block caused an additional panic.)

This is a denial of service only; memory access stays in bounds (no corruption, no RCE).

ruzstd is also built as a dependency of the Rust standard library via rustc-dep-of-std; in the toolchain it is used only to load zstd-compressed debug symbols, so the toolchain-side impact is limited.

Fixed in 0.9.1 (commit d3907c9), which enforces the per-block output bound. Upgrade to ruzstd >= 0.9.1.

Affected Packages

ruzstd 0.8.3 czkawka-cli 12.0.2-2
ruzstd 0.8.3 czkawka-gui 12.0.2-1
ruzstd 0.8.3 dwarf2sources 0.2.6-1+b2
ruzstd 0.8.3 elfx86exts 0.6.2-5
ruzstd 0.8.3 feluda 1.17.0-1
affected ⚠️ librust-ruzstd-dev 0.8.3-2
ruzstd 0.8.3 repro-env 0.4.4+dfsg-3+b3
ruzstd 0.8.3 samply 0.13.1-1+b2
ruzstd 0.8.3 sccache 0.17.0+ds-3+b2
ruzstd 0.8.3 xh 0.26.2-1+b2