Skip to content
Fencer Vulns
critical 9.8

CVE-2021-45687 json

Deserialization of Untrusted Data in rust-cpuid

published 2021-01-20 5 y ago modified 2026-06-17 4 mo ago also GHSA-jf5h-cf95-w759 , GHSA-w428-f65r-h4q2 , RUSTSEC-2021-0089 , EUVD-2022-0714

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 67%
public exploits
0
none known

Summary

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.

Patch / fix

  • crates.io raw-cpuid 9.1.1
  • raw-cpuid_project raw-cpuid 9.1.1

Exploit prediction

1.16% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
crates.io raw-cpuid
>=3.1.0, <9.1.1
>=3.1.1-0, <9.1.1
9.1.1

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-502 Deserialization of Untrusted Data

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.