Skip to content

Get the evidence behind this dependency. Browse imported advisories below, or check an exact version against OSV now. View source coverage.

Check the version you ship.

Get a fresh OSV lookup for an exact release. We send the package name and version to OSV without storing a report.

Advisories & recorded fixes

unknown
RUSTSEC-2026-0406No CVE assignedPackage fixes recorded

Use-after-free when changing a multithreaded context with an unfinished frame

When a multithreaded frame (zstdmt feature, CParameter::NbWorkers) is left unfinished, its jobs may still be running on the worker threads: the C library only waits for them when the next frame starts, or when the context is freed. A session reset makes the context accept changes again in the meantime, so:

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 0.0.0-0 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0406

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.0.0-0"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0405No CVE assignedPackage fixes recorded

Out-of-bounds read with an out-of-range InBuffer::pos

InBuffer's fields are public, so safe code can set pos past the end of src. The position was passed to the C library unchecked, and ZSTD_seekable_compressStream, unlike the other streaming functions, does not validate it: it read past the end of the input slice, by up to the frame size, and compressed that memory into the output.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 7.2.2 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0405

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "7.2.2"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0404No CVE assignedPackage fixes recorded

Double free in DCtx::try_clone

DCtx::try_clone (experimental feature, deprecated) is a plain copy of the C context. A context owning a dictionary (from load_dictionary, ref_prefix or init_using_dict) or a dictionary table (ref_ddict with RefMultipleDDicts) ended up with both copies freeing it. A context cloned mid-frame resumed on uninitialized stream state. The clone also silently lost the WindowLogMax limit.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 4.1.4 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0404

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "4.1.4"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0403No CVE assignedPackage fixes recorded

Uninitialized memory exposed when streaming decompression of a legacy frame fails

When decompression fails inside a legacy (zstd v0.4 to v0.7) frame, the bundled zstd library reports the output buffer as fully written although nothing was written. DCtx::decompress_stream committed that position even on error, and for a Vec<u8> destination this extended the vector's length over uninitialized memory.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 4.0.0 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0403

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "4.0.0"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0402No CVE assignedPackage fixes recorded

Heap buffer overflow in CCtx::try_clone on a multithreaded context

CCtx::try_clone (experimental feature, deprecated) copies tables sized from the context's applied parameters. Starting a multithreaded frame (zstdmt feature) replaces those parameters with the workers' without resizing the context's own tables, so after an abandoned single-threaded frame, the copy wrote up to 512 KiB past a heap allocation, or read past one. This became reachable with the bundled zstd 1.5.6.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 4.1.4 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0402

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "4.1.4"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0401No CVE assignedPackage fixes recorded

Out-of-bounds read in train_from_buffer when sample sizes overflow

ZDICT_trainFromBuffer is never told the length of the samples buffer, so train_from_buffer checked that the sample sizes add up to it. With overflow checks off, as in release builds, that sum wrapped around: sizes totalling 2^64 plus the buffer length passed the check, and the trainer read past the end of the buffer. zstd::dict::from_continuous relies on this check from zstd 0.4.10; older versions of zstd had their own, covered by a separate advisory.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 0.0.0-0 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0401

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.0.0-0"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0400No CVE assignedPackage fixes recorded

Use-after-free of a dictionary after a one-shot call on a context with an open stream

The one-shot DCtx and CCtx methods assumed the C library resets the context, but it leaves an open stream as it is. When a stream was left unfinished on a context, a one-shot call such as decompress_using_dict could leave the context pointing at the dictionary borrowed for that call, and the next streaming call resumed the stream against it after it was freed: decompressed output then contained freed heap memory. On the compression side, the stream resumed against the one-shot call's buffers.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 3.0.1 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0400

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "3.0.1"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0399No CVE assignedPackage fixes recorded

Use-after-free through init_using_cdict and init_using_ddict

CCtx::init_using_cdict and DCtx::init_using_ddict (experimental feature, deprecated) took the dictionary as &CDict<'b> and &DDict<'b> with only 'b: 'a, so the dictionary itself could be dropped while the context still pointed at it. The same mistake in other constructors was fixed earlier (https://github.com/gyscos/zstd-rs/issues/365).

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 3.0.0 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0399

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "3.0.0"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0398No CVE assignedPackage fixes recorded

Seekable::decompress sets a Vec length beyond its capacity for offsets past the end

ZSTD_seekable_decompress shortens the requested length to the end of the data without checking that the offset is before it. For an offset past the end, it returns a wrapped-around length without writing anything, and Seekable::decompress passed that length to Vec::set_len.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 7.2.2 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0398

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "7.2.2"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0397No CVE assignedPackage fixes recorded

OutBuffer::around_pos exposes uninitialized memory

OutBuffer::around_pos accepted a position past the initialized length of a Vec<u8>. The next streaming call then marked everything before the position as initialized, so safe code could read stale heap memory between the vector's previous length and that position.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 4.0.0 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0397

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "4.0.0"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0396No CVE assignedPackage fixes recorded

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

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.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 7.2.2 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0396

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "7.2.2"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
RUSTSEC-2026-0395No CVE assignedPackage fixes recorded

Use-after-free with CParameter::StableInBuffer

With CParameter::StableInBuffer(true) (experimental feature), the C library keeps a pointer to the input of one streaming call and reads from it in later calls, including flush_stream and end_stream, which take no input. An InBuffer only borrows its slice for one call, so safe code could free it in between, and freed memory was compressed into the frame. The C library behaves this way since zstd 1.5.4, whether bundled or linked from the system.

Recorded fixes — zstd-safe: 7.4.0 or 8.2.0. Check your release branch.

Exploitation not established

zstd-safe crates.io
Affected range Recorded fix
From 4.1.0 before 7.4.0Semantic versions7.4.0
From 8.0.0-0 before 8.2.0Semantic versions8.2.0

Version evidence: OSV · RUSTSEC-2026-0395

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "4.1.0"
        },
        {
          "fixed": "7.4.0"
        },
        {
          "introduced": "8.0.0-0"
        },
        {
          "fixed": "8.2.0"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}