RUSTSEC-2026-0405

published 16 Oct 2026 · updated 2 Nov 2026

Out-of-bounds read with an out-of-range `InBuffer::pos`

5.0Medium

No exploitation in the wild has been reported. Fixed in zstd-safe 8.2.0.

`InBuffer`'s fields are public, so safe code can set `pos` past the end of `src`. The position was passed to the C library unchecked, and `ZSTD_seekable_compressStream`, unlike the other streaming functions, does not validate it: it read past the end of the input slice, by up to the frame size, and compressed that memory into the output. The flaw was corrected by checking the position before every call into the C library.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cargo: zstd-safe>=8.0.0-0 <8.2.08.2.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in zstd-safe (Cargo), strongest first

Embed

A live severity badge for an advisory, README or ticket

RUSTSEC-2026-0405 severity on Zeptric[![RUSTSEC-2026-0405](https://zeptric.io/badge/cve/RUSTSEC-2026-0405.svg)](https://zeptric.io/cve/RUSTSEC-2026-0405)