Skip to content
Heist/ feed
LowFix available

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

Type: advisorySource: OSV1 source record

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

Announced Source revision 1
Original source ↗

GHSA-6g2r-675j-hx59

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-6g2r-675j-hx59

xxhash-rust

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
0.8.16

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.8.16"
          }
        ]
      }
    ],
    "package": {
      "name": "xxhash-rust",
      "purl": "pkg:cargo/xxhash-rust",
      "ecosystem": "crates.io"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6g2r-675j-hx59/GHSA-6g2r-675j-hx59.json"
    }
  }
]

Publisher severity

low

Source reference: /database_specific/severity

Event
#71341 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement