Vulnerability DatabaseRUSTSEC-2021-0013

RUSTSEC-2021-0013
Rust vulnerability analysis and mitigation

Overview

The raw-cpuid crate before version 9.0.0 for Rust contained multiple soundness issues. The vulnerability was identified with RUSTSEC-2021-0013 and CVE-2021-26306/CVE-2021-26307, discovered and disclosed in January 2021. The affected component is the raw-cpuid crate, which is used for CPU identification in Rust applications (NVD CVE-2021-26306, NVD CVE-2021-26307).

Technical details

The vulnerability encompasses two main technical issues: First, there are unsound transmute calls within as_string() methods. Second, the crate allows __cpuid_count() calls even when the processor doesn't support the CPUID instruction, leading to deterministic crashes. The CVSS v3.1 base score for these issues ranges from 5.5 to 7.5, indicating medium to high severity (NVD CVE-2021-26306, NVD CVE-2021-26307).

Impact

The vulnerability can lead to program crashes and potential memory safety violations. The unsound transmute calls could result in undefined behavior, while the improper CPUID instruction handling causes deterministic crashes on unsupported processors (NVD CVE-2021-26306).

Mitigation and workarounds

The issues have been fixed in raw-cpuid version 9.0.0. Users are advised to upgrade to this version or later to resolve the vulnerabilities (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0236HIGH7.5
  • Rust logoRust
  • viperjs
NoYesAug 06, 2026
RUSTSEC-2026-0232HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0231HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0230HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
CVE-2026-68930MEDIUM6.5
  • Rust logoRust
  • russh
NoYesAug 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management