{"id":"GHSA-jf5h-cf95-w759","summary":"Optional `Deserialize` implementations lacking validation","details":"When activating the non-default feature `serialize`, most structs implement\n`serde::Deserialize` without sufficient validation. This allows breaking\ninvariants in safe code, leading to:\n\n* Undefined behavior in `as_string()` methods (which use\n  `std::str::from_utf8_unchecked()` internally).\n* Panics due to failed assertions.\n\nSee https://github.com/gz/rust-cpuid/issues/43.\n","aliases":["CVE-2021-45687","GHSA-w428-f65r-h4q2","RUSTSEC-2021-0089"],"modified":"2023-11-08T04:07:21.872047Z","published":"2022-06-17T00:16:24Z","database_specific":{"nvd_published_at":null,"cwe_ids":[],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-06-17T00:16:24Z"},"references":[{"type":"WEB","url":"https://github.com/gz/rust-cpuid/issues/43"},{"type":"PACKAGE","url":"https://github.com/gz/rust-cpuid"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0089.html"}],"affected":[{"package":{"name":"raw-cpuid","ecosystem":"crates.io","purl":"pkg:cargo/raw-cpuid"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.1.0"},{"fixed":"9.1.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-jf5h-cf95-w759/GHSA-jf5h-cf95-w759.json"}}],"schema_version":"1.9.0"}