GHSA-6g2r-675j-hx59: xxhash-rust Safe Xxh3 Custom-secret API Accepts Vulnerability
LOWGHSA-6g2r-675j-hx59 is a LOW (CVSS 2.3) safe xxh3 custom-secret api accepts vulnerability (CWE-125: Out-of-bounds Read) affecting xxhash-rust libraries in the crates.io ecosystem. The issue involves safe xxh3 custom-secret api accepts too-short secret in release. Remediation is available by upgrading affected packages to version 0.8.16.
GHSA-6g2r-675j-hx59 at a Glance
Security Impact
CVSS: 2.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N).
How to Fix GHSA-6g2r-675j-hx59
To remediate this vulnerability, upgrade all affected xxhash-rust dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade xxhash-rust to 0.8.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for xxhash-rust
How to Check if You Are Affected
To determine whether your application is affected by GHSA-6g2r-675j-hx59, inspect your project dependencies for xxhash-rust:
inspect dependencies for xxhash-rust
Analyze the terminal output to locate any version of xxhash-rust in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.16), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In xxhash-rust, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-6g2r-675j-hx59 Affected xxhash-rust Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
xxhash-rust
|
crates.io |
< 0.8.16
|
0.8.16
|
References
Frequently Asked Questions
What is GHSA-6g2r-675j-hx59?
Which xxhash-rust versions are affected?
What version fixes GHSA-6g2r-675j-hx59?
Is xxhash-rust affected?
What is the CVSS score of GHSA-6g2r-675j-hx59?
What CWE is associated with GHSA-6g2r-675j-hx59?
How can I check crates.io dependencies for GHSA-6g2r-675j-hx59?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6g2r-675j-hx59",
"modified" : "2026-10-02T18:29:13Z",
"published" : "2026-10-02T18:29:13Z",
"aliases" : [ ],
"summary" : "xxhash-rust: Safe xxh3 custom-secret API accepts too-short secret in release",
"details" : "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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "xxhash-rust"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.8.16"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/DoumanAsh/xxhash-rust/security/advisories/GHSA-6g2r-675j-hx59"
}, {
"type" : "WEB",
"url" : "https://github.com/DoumanAsh/xxhash-rust/commit/200cadb1a442c7f6cd9747e7d4297379b6b74200"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DoumanAsh/xxhash-rust"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-02T18:29:13Z",
"nvd_published_at" : null
}
}