byte_struct
Affected
- introduced
0.0.0-0, fixed0.6.1(semver)
Fixed versions
0.6.1
Fix
- Fixed version
0.6.1cargo update -p byte_struct --precise 0.6.1
Advisory
Also known as: CVE-2021-28033, GHSA-8fgg-5v78-6g76
Deserializing an array can drop uninitialized memory on panic
The read_bytes_default_le function for [T; n] arrays, used to deserialize
arrays of T from bytes created a [T; n] array with std::mem::uninitialized
and then called T's deserialization method.
If T's deserialization method panicked, the uninitialized memory could drop
invalid objects.
This flaw was corrected in a535678 by removing the unsafe block and using
a .map function to deserialize each element of the array instead.
Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
0.0.0-0, fixed 0.6.1 (semver)0.6.1
0.6.1cargo update -p byte_struct --precise 0.6.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0