Deserialization of Untrusted Data in rust-cpuidGHSA-w428-f65r-h4q2
CRITICALGHSA-w428-f65r-h4q2 is a critical-severity (CVSS 9.8) Improper Input Validation vulnerability in raw-cpuid. A fix is available for raw-cpuid — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
raw-cpuidReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
An issue was discovered in the raw-cpuid crate before 9.1.1 for Rust. If the serialize feature is used (which is not the the default), a Deserialize operation may lack sufficient validation, leading to memory corruption or a panic.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | raw-cpuid | ≥ 3.1.0&&< 9.1.1 | 9.1.1cargo update -p raw-cpuid --precise 9.1.1 |
Affected Products
raw-cpuidraw-cpuid_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for raw-cpuid, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update raw-cpuid to 9.1.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-w428-f65r-h4q2 is resolved across your whole dependency graph.
Workarounds
Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process.
Frequently Asked Questions
Is GHSA-w428-f65r-h4q2 in your dependencies?
Find it across crates.io, including transitive dependencies.