RUSTSEC-2026-0396

published 16 Oct 2026 · updated 2 Nov 2026

`Seekable` reads a NULL or out-of-bounds seek table

5.0Medium

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

`Seekable` did not record whether it was initialized. On a fresh `Seekable`, or one whose `init_buff()` failed, `decompress`, `offset_to_frame_index` and `frame_decompressed_size` made the C library read a NULL seek table. After a failed re-initialization, `decompress` returned data from the refused buffer using the previous seek table. Separately, `frame_decompressed_size(num_frames())`, on `Seekable` and `SeekTable`, read one entry past the end of the seek table. The flaw was corrected by refusing to use a `Seekable` until an initialization succeeded, and by checking the frame index.

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-0396 severity on Zeptric[![RUSTSEC-2026-0396](https://zeptric.io/badge/cve/RUSTSEC-2026-0396.svg)](https://zeptric.io/cve/RUSTSEC-2026-0396)