{"id":"GHSA-xrv3-jmcp-374j","aliases":["RUSTSEC-2024-0347"],"url":"https://o3.security/vulnerability/GHSA-xrv3-jmcp-374j","summary":"zerovec incorrectly uses `#[repr(packed)]`","details":"The affected versions make unsafe memory accesses under the assumption that `#[repr(packed)]` has a guaranteed field order. \n\nThe Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts \nreordering fields of `#[repr(packed)]` structs, leading to illegal memory accesses.\n\nThe patched versions `0.9.7` and `0.10.4` use `#[repr(C, packed)]`, which guarantees field order.\n","published":"2024-07-08T18:36:40Z","modified":"2026-02-04T02:32:07.162523Z","cvss":{"score":6.2,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"zerovec","fixedVersion":"0.10.4"},{"ecosystem":"crates.io","name":"zerovec","fixedVersion":"0.9.7"}],"fix":null,"references":[{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2024-0347.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-02-04T02:32:07.162523Z"}}