{"id":"GHSA-6g2r-675j-hx59","aliases":[],"status":"published","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(\u0026[0x41], \u0026[])\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 \u0026[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","severity":{"version":"3.1","score":2.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","level":"low","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2026-10-02T18:29:13Z","modified":"2026-10-02T18:45:04Z","fixes":[{"ecosystem":"crates.io","package":"xxhash-rust","fixed_in":["0.8.16"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"xxhash-rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.16"}]}]},{"source":"osv","ecosystem":"crates.io","package":"xxhash-rust","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.8.16"}]}]}],"references":[{"url":"https://github.com/DoumanAsh/xxhash-rust/security/advisories/GHSA-6g2r-675j-hx59","tags":["web"]},{"url":"https://github.com/DoumanAsh/xxhash-rust/commit/200cadb1a442c7f6cd9747e7d4297379b6b74200","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6g2r-675j-hx59"},{"url":"https://github.com/DoumanAsh/xxhash-rust","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-6g2r-675j-hx59","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(\u0026[0x41], \u0026[])\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 \u0026[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","status":"published","published":"2026-10-02T18:29:13Z","modified":"2026-10-02T18:29:16Z","cvss":[{"version":"3.1","score":2.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:41:24.739884Z"}],"osv":[{"id":"GHSA-6g2r-675j-hx59","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(\u0026[0x41], \u0026[])\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 \u0026[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","status":"published","published":"2026-10-02T18:29:13Z","modified":"2026-10-02T18:45:04.881140605Z","cvss":[{"version":"3.1","score":2.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:46:39.618611Z"}]}}
