xxhash-rust: Safe xxh3 custom-secret API accepts too-short secret in release
Affects xxhash-rustSource GCVE Database
CVSS 2.3 Low : upgrade to 0.8.16 when convenient.
Data as of 2 Oct 2026, 20:02 UTC
- Patch
- Available – fixed in 0.8.16
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:NWhat to do
Upgrade xxhash-rust to 0.8.16.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| crates.ioxxhash-rust | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available that fixes this issue in xxhash-rust version 0.8.16 and later. Users should upgrade to version 0.8.16 or newer to mitigate this vulnerability. Until patched, avoid passing custom secrets shorter than the required minimum length to the affected API.
Description
A vulnerability in xxhash-rust version prior to 0.8.16 allows a safe API to accept a custom secret that is shorter than the internal minimum length. This leads to undefined behavior due to construction of invalid fixed-width references when running in release mode, as the length check is only enforced by debug assertions. The issue does not require unsafe code from the caller and can cause memory safety violations under certain conditions.