When activating the non-default feature serialize, most structs implement serde::Deserialize without sufficient validation. This allows breaking invariants in safe code, leading to: Undefined behavior in as_string() methods (which use std::str::from_utf8_unchecked() internally)....
Product
crates.io raw-cpuid vulnerabilities
4 published CVES affecting crates.io raw-cpuid, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 4
- Critical
- 1
- High
- 1
- Medium
- 1
- Low
- 0
- Unscored
- 1
- CISA KEV
- 0
Latest crates.io raw-cpuid CVEs
Newest publication first
-
Unknown
-
CriticalCVSS 9.8 EPSS 1.2%
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.
-
HighCVSS 7.5 EPSS 1.3%
An issue was discovered in the raw-cpuid crate before 9.0.0 for Rust. It has unsound transmute calls within as_string() methods.
-
MediumCVSS 5.5 EPSS 0.35%
An issue was discovered in the raw-cpuid crate before 9.0.0 for Rust. It allows __cpuid_count() calls even if the processor does not support the CPUID instruction, which is unsound and causes a deterministic crash.
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.