Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. raw-cpuid
  4. ›
  5. CVE-2021-45687

CVE-2021-45687: Deserialization of Untrusted Data in rust-cpuid

January 6, 2022 (updated January 7, 2022)

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.

References

  • github.com/advisories/GHSA-w428-f65r-h4q2
  • github.com/gz/rust-cpuid
  • github.com/gz/rust-cpuid/issues/43
  • nvd.nist.gov/vuln/detail/CVE-2021-45687
  • raw.githubusercontent.com/rustsec/advisory-db/main/crates/raw-cpuid/RUSTSEC-2021-0089.md
  • rustsec.org/advisories/RUSTSEC-2021-0089.html

Code Behaviors & Features

Detect and mitigate CVE-2021-45687 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.1.0 before 9.1.1

Fixed versions

  • 9.1.1

Solution

Upgrade to version 9.1.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

cargo/raw-cpuid/CVE-2021-45687.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:35 +0000.