xxhash-rust: Safe xxh3 custom-secret API accepts too-short secret in release
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
I have a minimized safe Rust witness for xxhash-rust 0.8.15. Safe public route: xxhash_rust::xxh3::xxh3_64_with_secret(&[0x41], &[]) The caller-side harness contains no unsafe code. Under release execution, the internal minimum custom-secret length predicate is enforced only by debug_assert!. Release-Miri reports construction of a fixed-width reference beyond the empty secret allocation. Observed diagnostic: Undefined Behavior: constructing invalid value of type &[u8; 4]: encountered a dangling reference Local repair evidence: handling custom-secret slices shorter than the internal minimum before fixed-width secret reads makes the same safe short-secret harness pass under Linux release-Miri. Local artifacts: - vulnerable log: artifacts/logs/W-4332_xxhash_rust_short_secret_miri_release_linux_001.log - repair log: artifacts/logs/differentials/W-4332_xxhash_rust_local_repair_miri_release_linux_001.log - report: artifacts/reports/W-4332_xxhash_rust_short_secret_report.md
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | xxhash-rust (crates.io) | before 0.8.16 | 0.8.16 | Patch available | GHSA-6g2r-675j-hx59 |
- xxhash-rust (crates.io) Vendor— Affected before 0.8.16 Fixed in 0.8.16 Patch available GHSA-6g2r-675j-hx59
Remediation
- Fix · GHSA-6g2r-675j-hx59 xxhash-rust (crates.io) Fixed in 0.8.16 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-6g2r-675j-hx59
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences