# RUSTSEC-2026-0396: `Seekable` reads a NULL or out-of-bounds seek table

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-10-16T12:00:00.000Z
- Modified: 2026-11-02T09:30:03.400Z

## Description

`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.

(As written by RustSec Advisory Database.)

## Affected

- zstd-safe (crates.io): from 7.2.2 before 7.4.0; from 8.0.0-0 before 8.2.0

## References

- <https://crates.io/crates/zstd-safe> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0396.html> (advisory)
- <https://github.com/gyscos/zstd-rs/commit/a9626069d6f2e90b782b8f627f57a361cfe8ef85> (web)
- <https://github.com/gyscos/zstd-rs/pull/384> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0396](https://rustsec.org/advisories/RUSTSEC-2026-0396.html), CC0-1.0, modified 2026-11-02

---

Page: https://cve.day/RUSTSEC-2026-0396 · Whole record: https://cve.day/RUSTSEC-2026-0396.json · Rebuilt by cve.day 2026-11-25T22:56:43.450Z
