Critical, CVSS 9.8crates.ioPublished
Deserializing an array can free uninitialized memory in byte_struct
CVE-2021-28033 · GHSA-8fgg-5v78-6g76
- Affected
- crates.io byte_struct < 0.6.1
- Fixed in
- 0.6.1· Vendor fix available
- Issue
- Bytestruct stack and unpack structure as raw bytes with packed or bit field layout. An issue was discovered in the bytestruct crate before 0.6.1 for Rust. There can be a drop of uninitialized memory if a certain deserialization method panics.
Recommended action: Upgrade to 0.6.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.