mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-02-14 23:24:51 +01:00
697 B
697 B
[advisory]
id = "RUSTSEC-2021-0089"
package = "raw-cpuid"
date = "2021-01-20"
url = "https://github.com/gz/rust-cpuid/issues/43"
categories = ["memory-corruption", "denial-of-service"]
[versions]
patched = [">= 9.1.1"]
unaffected = ["<= 3.1.0"]
Optional Deserialize implementations lacking validation
When activating the non-default feature serialize, most structs implement
serde::Deserialize without sufficient validation. This allows breaking
invariants in safe code, leading to:
- Undefined behavior in
as_string()methods (which usestd::str::from_utf8_unchecked()internally). - Panics due to failed assertions.