# zstd-safe (crates.io)

Safe low-level bindings for the zstd compression library.

- Latest: 8.4.0 (2026-11-24)
- Licence: BSD-3-Clause
- Downloads: 148688638 last 90 days
- Advisories on the latest version: 0

- RUSTSEC-2026-0395 : Use-after-free with `CParameter::StableInBuffer` Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0396 : `Seekable` reads a NULL or out-of-bounds seek table Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0397 : `OutBuffer::around_pos` exposes uninitialized memory Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0398 : `Seekable::decompress` sets a `Vec` length beyond its capacity for offsets past the end Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0399 : Use-after-free through `init_using_cdict` and `init_using_ddict` Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0400 : Use-after-free of a dictionary after a one-shot call on a context with an open stream Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0401 : Out-of-bounds read in `train_from_buffer` when sample sizes overflow Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0402 : Heap buffer overflow in `CCtx::try_clone` on a multithreaded context Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0403 : Uninitialized memory exposed when streaming decompression of a legacy frame fails Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0404 : Double free in `DCtx::try_clone` Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0405 : Out-of-bounds read with an out-of-range `InBuffer::pos` Fixed in 7.4.0, 8.2.0.
- RUSTSEC-2026-0406 : Use-after-free when changing a multithreaded context with an unfinished frame Fixed in 7.4.0, 8.2.0.

Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
