RUSTSEC-2026-0344
Decompression bomb in `ruzstd`: a tiny input can exhaust memory (OOM)
Mitigation
- Upgrade ruzstd to 0.9.1 or later.
Who should check
- Projects that depend on crates.io package ruzstd (>= 0.0.0-0, < 0.9.1)
Vulnerability facts
- Affected
- ruzstd >= 0.0.0-0, < 0.9.1
- Fixed in
- 0.9.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io ruzstd | >= 0.0.0-0, < 0.9.1 | 0.9.1 | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by RUSTSEC-2026-0344. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/RUSTSEC-2026-0344.md Affected: ruzstd >= 0.0.0-0, < 0.9.1 Fixed in: 0.9.1 Steps: 1. Search this machine and project for ruzstd (crates.io): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is RUSTSEC-2026-0344 being exploited?
There is no confirmed exploitation: RUSTSEC-2026-0344 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is RUSTSEC-2026-0344?
It has no CVSS score yet. Unknown.
Which versions are affected by RUSTSEC-2026-0344?
ruzstd >= 0.0.0-0, < 0.9.1.
Is there a fix for RUSTSEC-2026-0344?
Yes. Fixed in 0.9.1. Upgrade ruzstd to 0.9.1 or later.
How do I check if I'm affected by RUSTSEC-2026-0344?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.