{"id":"GHSA-6g2r-675j-hx59","revision":"8fdb67e5ed43451a8ae3086f282a9196","records":[{"revision":"8fdb67e5ed43451a8ae3086f282a9196","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-6g2r-675j-hx59","aliases":[],"title":"xxhash-rust: Safe xxh3 custom-secret API accepts too-short secret in release","description":"I have a minimized safe Rust witness for xxhash-rust 0.8.15.\n\nSafe public route:\n\nxxhash_rust::xxh3::xxh3_64_with_secret(&[0x41], &[])\n\nThe 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.\n\nObserved diagnostic:\n\nUndefined Behavior: constructing invalid value of type &[u8; 4]: encountered a dangling reference\n\nLocal 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.\n\nLocal artifacts:\n- vulnerable log: artifacts/logs/W-4332_xxhash_rust_short_secret_miri_release_linux_001.log\n- repair log: artifacts/logs/differentials/W-4332_xxhash_rust_local_repair_miri_release_linux_001.log\n- report: artifacts/reports/W-4332_xxhash_rust_short_secret_report.md","state":0,"publishedAt":"2026-10-02T18:29:13+00:00","modifiedAt":"2026-10-02T18:45:04.8811406+00:00","affected":[{"ecosystem":"crates.io","name":"xxhash-rust","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.8.16"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/DoumanAsh/xxhash-rust/security/advisories/GHSA-6g2r-675j-hx59","https://github.com/DoumanAsh/xxhash-rust/commit/200cadb1a442c7f6cd9747e7d4297379b6b74200","https://github.com/DoumanAsh/xxhash-rust"],"sourceUrl":"https://github.com/advisories/GHSA-6g2r-675j-hx59","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6g2r-675j-hx59","identifiers":["GHSA-6g2r-675j-hx59"]},"retained":false,"historicalAffected":[]}],"coverage":[]}