This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate grenad

Dependencies

(8 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 bytemuck^1.7.01.25.0up to date
 byteorder^1.3.41.5.0up to date
 flate2^1.01.1.9up to date
 lz4_flex ⚠️^0.9.20.13.0out of date
 rayon^1.7.01.11.0up to date
 snap^1.0.51.1.1up to date
 tempfile^3.2.03.27.0up to date
 zstd^0.10.00.13.3out of date

Dev dependencies

(4 total, 4 outdated)

CrateRequiredLatestStatus
 criterion^0.30.8.2out of date
 grenad^0.4.10.5.0out of date
 quickcheck^0.91.1.0out of date
 rand^0.8.40.10.0out of date

Security Vulnerabilities

lz4_flex: Decompressing invalid data can leak information from uninitialized memory or reused output buffer

RUSTSEC-2026-0041

Decompressing invalid LZ4 data with the block API can leak data from uninitialized memory, or leak content from previous decompression operations when reusing an output buffer.

The LZ4 block format defines a "match copy operation" which duplicates previously written data or data from a user-supplied dict. The position of that data is defined by an offset. lz4_flex did not properly validate offset values, causing it to copy data from outside the initialized portion of the output buffer.

Two scenarios are affected:

  • Decompressing with the unsafe implementation (safe-decode feature flag disabled, which is the default): can leak content of uninitialized memory as part of the decompressed result.
  • Decompressing into a reused, user-supplied output buffer (also affects safe-decode): can leak the previous contents of the output buffer as part of the decompressed result.

Only the block-based APIs are affected. All frame APIs are unaffected.

The flaw was corrected in versions 0.11.6 and 0.12.1 by properly validating offset values during decompression.

If upgrading is not possible, the issue can be mitigated by zeroing the output buffer before each call to the affected functions and enabling the safe-decode feature flag.