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

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/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): 1.28%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-01-20T12:00:00.000Z
- Modified: 2026-06-17T03:43:04.887Z
- Also known as: GHSA-hvqc-pc78-x9wh, GHSA-jrf8-cmgg-gv2m, RUSTSEC-2021-0013
- Related: CVE-2021-26307
- 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 has unsound transmute calls within as_string() methods.

(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 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0013.html> (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-26306](https://www.cve.org/CVERecord?id=CVE-2021-26306), 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-26306](https://nvd.nist.gov/vuln/detail/CVE-2021-26306), Public domain, modified 2026-06-17

---

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