GitHub Advisoryadvisory · crates.io
GHSA-8fgg-5v78-6g76 Deserializing an array can free uninitialized memory in byte_struct
CRITICAL
Official page ↗
- Aliases
- CVE-2021-28033
- Ecosystem
- crates.io
- Packages
- byte_struct
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-119, CWE-908
- Reviewed
- 2021-08-19
Affected packages
• crates.io byte_struct: < 0.6.1 → fixed in 0.6.1
Description
Byte_struct stack and unpack structure as raw bytes with packed or bit field layout. An issue was discovered in the byte_struct crate before 0.6.1 for Rust. There can be a drop of uninitialized memory if a certain deserialization method panics.
Related
Alias · CVE (1)
- CVE-2021-28033 An issue was discovered in the byte_struct crate before 0.6.1 for Rust. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-28033 advisory
- https://github.com/wwylele/byte-struct-rs/issues/1 web
- https://github.com/wwylele/byte-struct-rs/commit/a535678377de12bc6bc22620c5f59bcc1369f76f web
- https://github.com/wwylele/byte-struct-rs package
- https://rustsec.org/advisories/RUSTSEC-2021-0032.html web