# CVE-2021-45687: Optional `Deserialize` implementations lacking validation

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 68% of CVEs (2026-12-01)
- Published: 2021-01-20T12:00:00.000Z
- Modified: 2026-06-17T04:13:56.937Z
- Also known as: GHSA-jf5h-cf95-w759, GHSA-w428-f65r-h4q2, RUSTSEC-2021-0089
- Weaknesses: CWE-20, CWE-502
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- raw-cpuid (crates.io): from 3.1.0 before 9.1.1; from 3.1.1-0 before 9.1.1
- raw-cpuid_project raw-cpuid: before 9.1.1

## Every score

- GitHub: rating Medium
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0089.html> (advisory, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/raw-cpuid/RUSTSEC-2021-0089.md> (third-party-advisory, web)
- <https://github.com/gz/rust-cpuid/issues/43> (report, web)
- <https://github.com/gz/rust-cpuid> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45687> (advisory)
- <https://crates.io/crates/raw-cpuid> (package)

## Sources

- CVE List: [CVE-2021-45687](https://www.cve.org/CVERecord?id=CVE-2021-45687), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-jf5h-cf95-w759](https://github.com/advisories/GHSA-jf5h-cf95-w759), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-w428-f65r-h4q2](https://github.com/advisories/GHSA-w428-f65r-h4q2), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0089](https://rustsec.org/advisories/RUSTSEC-2021-0089.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-45687](https://nvd.nist.gov/vuln/detail/CVE-2021-45687), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45687 · Whole record: https://cve.day/CVE-2021-45687.json · Rebuilt by cve.day 2026-11-25T22:58:06.262Z
