CVE-2021-45687
CRITICAL 9.8CVSS 3.1Optional `Deserialize` implementations lacking validation
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.
- Published
- 27 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20CWE-502
- Also known as
- GHSA-jf5h-cf95-w759GHSA-w428-f65r-h4q2RUSTSEC-2021-0089
- Sources
- NVDJSONOSV GHSA-jf5h-cf95-w759JSONOSV GHSA-w428-f65r-h4q2JSONOSV RUSTSEC-2021-0089JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | raw-cpuid_project | raw-cpuidcpe:2.3:a:raw-cpuid_project:raw-cpuid:*:*:*:*:*:rust:*:* |
< 9.1.1 | 9.1.1 |
| OSV | crates.io | raw-cpuid | >= 3.1.0, < 9.1.1 | 9.1.1 |
| OSV | crates.io | raw-cpuid | >= 3.1.1-0, < 9.1.1 | 9.1.1 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/raw-cpuid/RUSTSEC-2021-0089.md · Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0089.html · Third Party Advisory, WEB, ADVISORY
- https://github.com/gz/rust-cpuid/issues/43 · WEB, REPORT
- https://github.com/gz/rust-cpuid · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-45687 · ADVISORY
- https://crates.io/crates/raw-cpuid · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Dec 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Jan 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jun 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)