Live threats

All CVEs / Raw-cpuid Project

CVE-2021-26307Raw-cpuid Project Raw-cpuid

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.3%
probability of exploitation in 30 days · percentile 30
Auth required
Yes
Published
Jan 29, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

An issue was discovered in the raw-cpuid crate before 9.0.0 for Rust. It allows __cpuid_count() calls even if the processor does not support the CPUID instruction, which is unsound and causes a deterministic crash.

Original NVD text.

What to do

  1. Apply the vendor's security update for Raw-cpuid.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io raw-cpuid < 9.0.0 9.0.0 cargo update -p raw-cpuid --precise 9.0.0
crates.io raw-cpuid < 9.0.0 9.0.0 cargo update -p raw-cpuid --precise 9.0.0
crates.io raw-cpuid ≥ 0.0.0-0 < 9.0.0 9.0.0 cargo update -p raw-cpuid --precise 9.0.0

Per OSV / GitHub Advisories (GHSA-hvqc-pc78-x9wh, GHSA-jrf8-cmgg-gv2m, RUSTSEC-2021-0013). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
raw-cpuid_projectraw-cpuid< 9.0.0

Official sources

References

Links published by the sources. Open them with care.