PublishedRUSTSEC-2026-0405·
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.
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| cargo: zstd-safe | >=8.0.0-0 <8.2.0 | 8.2.0 |
Every event on this vulnerability
Other vulnerabilities in zstd-safe (Cargo), strongest first
A live severity badge for an advisory, README or ticket