{"id":"RUSTSEC-2026-0396","aliases":["RUSTSEC-2026-0396"],"related":[],"kind":"vulnerability","state":"published","title":"`Seekable` reads a NULL or out-of-bounds seek table","summary":"`Seekable` did not record whether it was initialized. On a fresh `Seekable`,\nor one whose `init_buff()` failed, `decompress`, `offset_to_frame_index` and\n`frame_decompressed_size` made the C library read a NULL seek table. After a\nfailed re-initialization, `decompress` returned data from the refused buffer\nusing the previous seek table.\n\nSeparately, `frame_decompressed_size(num_frames())`, on `Seekable` and\n`SeekTable`, read one entry past the end of the seek table.\n\nThe flaw was corrected by refusing to use a `Seekable` until an\ninitialization succeeded, and by checking the frame index.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`Seekable` did not record whether it was initialized. On a fresh `Seekable`,\nor one whose `init_buff()` failed, `decompress`, `offset_to_frame_index` and\n`frame_decompressed_size` made the C library read a NULL seek table. After a\nfailed re-initialization, `decompress` returned data from the refused buffer\nusing the previous seek table.\n\nSeparately, `frame_decompressed_size(num_frames())`, on `Seekable` and\n`SeekTable`, read one entry past the end of the seek table.\n\nThe flaw was corrected by refusing to use a `Seekable` until an\ninitialization succeeded, and by checking the frame index.","format":"markdown","source":"rustsec"}],"published":"2026-10-16T12:00:00.000Z","modified":"2026-11-02T09:30:03.400Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"7.2.2","status":"affected","fixed":"7.4.0"},{"type":"semver","introduced":"8.0.0-0","status":"affected","fixed":"8.2.0"}],"ecosystem":"crates.io","package":"zstd-safe","purl":"pkg:cargo/zstd-safe","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/zstd-safe","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0396.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/gyscos/zstd-rs/commit/a9626069d6f2e90b782b8f627f57a361cfe8ef85","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/gyscos/zstd-rs/pull/384","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0396","url":"https://rustsec.org/advisories/RUSTSEC-2026-0396.html","licence":"CC0-1.0","modified":"2026-11-02T09:30:03.400Z"}],"updatedAt":"2026-11-25T22:56:43.450Z"}