Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. xxhash-rust
  4. ›
  5. GHSA-6g2r-675j-hx59

GHSA-6g2r-675j-hx59: xxhash-rust: Safe xxh3 custom-secret API accepts too-short secret in release

October 2, 2026

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

References

  • github.com/DoumanAsh/xxhash-rust/commit/200cadb1a442c7f6cd9747e7d4297379b6b74200
  • github.com/DoumanAsh/xxhash-rust/security/advisories/GHSA-6g2r-675j-hx59
  • github.com/advisories/GHSA-6g2r-675j-hx59

Code Behaviors & Features

Detect and mitigate GHSA-6g2r-675j-hx59 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.16

Fixed versions

  • 0.8.16

Solution

Upgrade to version 0.8.16 or above.

Impact 2.3 LOW

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

cargo/xxhash-rust/GHSA-6g2r-675j-hx59.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 03 Oct 2026 12:18:10 +0000.