{"id":"GHSA-hvqc-pc78-x9wh","summary":"Soundness issue in raw-cpuid","details":"VendorInfo::as_string(), SoCVendorBrand::as_string(), and ExtendedFunctionInfo::processor_brand_string() construct byte slices using std::slice::from_raw_parts(), with data coming from #[repr(Rust)] structs. This is always undefined behavior.\nThis flaw has been fixed in v9.0.0, by making the relevant structs #[repr(C)].","aliases":["CVE-2021-26306","CVE-2021-26307","GHSA-jrf8-cmgg-gv2m","RUSTSEC-2021-0013"],"modified":"2023-11-08T04:05:20.849093Z","published":"2021-08-25T20:53:10Z","database_specific":{"nvd_published_at":"2021-01-29T03:15:00Z","cwe_ids":["CWE-198","CWE-400"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-08-19T18:02:19Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26306"},{"type":"WEB","url":"https://github.com/gz/rust-cpuid/issues/40"},{"type":"WEB","url":"https://github.com/RustSec/advisory-db/pull/614"},{"type":"PACKAGE","url":"https://github.com/gz/rust-cpuid"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0013.html"}],"affected":[{"package":{"name":"raw-cpuid","ecosystem":"crates.io","purl":"pkg:cargo/raw-cpuid"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-hvqc-pc78-x9wh/GHSA-hvqc-pc78-x9wh.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}