原始 OSV JSON{
"id": "GHSA-hvqc-pc78-x9wh",
"aliases": [
"CVE-2021-26306"
],
"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)].",
"summary": "Soundness issue in raw-cpuid",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0.0"
}
]
}
],
"package": {
"name": "raw-cpuid",
"ecosystem": "crates.io"
}
}
],
"modified": "2023-06-13T20:30:27Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"published": "2021-08-25T20:53:10Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-26306",
"type": "ADVISORY"
},
{
"url": "https://github.com/gz/rust-cpuid/issues/40",
"type": "WEB"
},
{
"url": "https://github.com/RustSec/advisory-db/pull/614",
"type": "WEB"
},
{
"url": "https://github.com/gz/rust-cpuid",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0013.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-198",
"CWE-400"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-01-29T03:15:00Z",
"github_reviewed_at": "2021-08-19T18:02:19Z"
}
}