Skip to main content
VulnerabilityPublished

xxhash-rust: Safe xxh3 custom-secret API accepts too-short secret in release

Affects xxhash-rustSource GCVE Database

0

CVSS 2.3 Low : upgrade to 0.8.16 when convenient.

Data as of 2 Oct 2026, 20:02 UTC

CVSS 3.1 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade xxhash-rust to 0.8.16.

Affected software

ProductAffectedFixed in
crates.ioxxhash-rustAffected
  • <0.8.16
Fixed in
  • 0.8.16

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.

References

Community reviews

Loading reviews…