# CVE-2021-26307: Soundness issue in raw-cpuid

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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): 0.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-20T12:00:00.000Z
- Modified: 2026-06-17T03:43:05.003Z
- Also known as: GHSA-hvqc-pc78-x9wh, GHSA-jrf8-cmgg-gv2m, RUSTSEC-2021-0013
- Related: CVE-2021-26306
- Weaknesses: CWE-198, CWE-400, CWE-657
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- raw-cpuid (crates.io): before 9.0.0; from 0.0.0-0 before 9.0.0
- raw-cpuid_project raw-cpuid: before 9.0.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0013.html> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-26306> (advisory)
- <https://github.com/gz/rust-cpuid/issues/40> (web)
- <https://github.com/RustSec/advisory-db/pull/614> (web)
- <https://github.com/gz/rust-cpuid> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-26307> (advisory)
- <https://github.com/gz/rust-cpuid/issues/41> (web)
- <https://github.com/gz/rust-cpuid/commit/91b676eecd01f2163e2984215e2c0ac89e30ce75> (web)
- <https://crates.io/crates/raw-cpuid> (package)

## Sources

- CVE List: [CVE-2021-26307](https://www.cve.org/CVERecord?id=CVE-2021-26307), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-hvqc-pc78-x9wh](https://github.com/advisories/GHSA-hvqc-pc78-x9wh), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-jrf8-cmgg-gv2m](https://github.com/advisories/GHSA-jrf8-cmgg-gv2m), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0013](https://rustsec.org/advisories/RUSTSEC-2021-0013.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-26307](https://nvd.nist.gov/vuln/detail/CVE-2021-26307), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-26307 · Whole record: https://cve.day/CVE-2021-26307.json · Rebuilt by cve.day 2026-11-25T22:57:59.753Z
