Advisory

RUSTSEC-2026-0396

Also known as: None

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-10-16 12:00 UTC
Modified
2026-11-02 09:30 UTC

Affected packages and fixes

zstd-safe

crates.io · All systems

Affected

  • introduced 7.2.2, fixed 7.4.0, introduced 8.0.0-0, fixed 8.2.0 (semver)

Fixed versions

7.4.0, 8.2.0

Fix

  • Fixed version 7.4.0
    cargo update -p zstd-safe --precise 7.4.0
  • Fixed version 8.2.0
    cargo update -p zstd-safe --precise 8.2.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences