When activating the non-default feature serialize
, most structs implement
serde::Deserialize
without sufficient validation. This allows breaking
invariants in safe code, leading to:
as_string()
methods (which use
std::str::from_utf8_unchecked()
internally).See https://github.com/gz/rust-cpuid/issues/43.
{ "nvd_published_at": null, "cwe_ids": [], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2022-06-17T00:16:24Z" }