GHSA-jf5h-cf95-w759 Optional `Deserialize` implementations lacking validation
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
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 use
std::str::from_utf8_unchecked()internally). - Panics due to failed assertions.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io raw-cpuid(crates.io) | >= 3.1.0, < 9.1.1 | 9.1.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io raw-cpuid(crates.io) | >= 3.1.0, < 9.1.1 | 9.1.1 |