CVE-2021-45687Raw-cpuid Project Raw-cpuid
Critical 9.8 No auth needed
Follow: this CVE · Raw-cpuid Project · Raw-cpuid Project Raw-cpuid We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Dec 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Raw-cpuid.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | raw-cpuid |
≥ 3.1.0 < 9.1.1 |
9.1.1 |
cargo update -p raw-cpuid --precise 9.1.1 |
| crates.io | raw-cpuid |
≥ 3.1.0 < 9.1.1 |
9.1.1 |
cargo update -p raw-cpuid --precise 9.1.1 |
| crates.io | raw-cpuid |
≥ 3.1.1-0 < 9.1.1 |
9.1.1 |
cargo update -p raw-cpuid --precise 9.1.1 |
Per OSV / GitHub Advisories (GHSA-jf5h-cf95-w759, GHSA-w428-f65r-h4q2, RUSTSEC-2021-0089). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| raw-cpuid_project | raw-cpuid | < 9.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Third Party Advisory