{"id":"CVE-2021-45687","aliases":["GHSA-w428-f65r-h4q2","RUSTSEC-2021-0089"],"url":"https://o3.security/vulnerability/CVE-2021-45687","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","published":"2022-06-17T00:16:24Z","modified":"2023-11-08T04:07:21.872047Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"raw-cpuid","fixedVersion":"9.1.1"}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:07:21.872047Z"}}