zerovec
Affected
- introduced
0.10.0, fixed0.10.4(semver)
Fixed versions
0.10.4
Fix
- Fixed version
0.10.4cargo update -p zerovec --precise 0.10.4
Advisory
Also known as: RUSTSEC-2024-0347
zerovec incorrectly uses #[repr(packed)]
The affected versions make unsafe memory accesses under the assumption that #[repr(packed)] has a guaranteed field order.
The Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts
reordering fields of #[repr(packed)] structs, leading to illegal memory accesses.
The patched versions 0.9.7 and 0.10.4 use #[repr(C, packed)], which guarantees field order.
Medium Basis: The source's own band: MODERATE
0.10.0, fixed 0.10.4 (semver)0.10.4
0.10.4cargo update -p zerovec --precise 0.10.40, fixed 0.9.7 (semver)0.9.7
0.9.7cargo update -p zerovec --precise 0.9.7Fix 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0