{"id":"RUSTSEC-2024-0347","revision":"b3987e39f1af474c870f12d9684f54a9","records":[{"revision":"b3987e39f1af474c870f12d9684f54a9","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0347","aliases":["GHSA-xrv3-jmcp-374j"],"title":"Incorrect usage of `#[repr(packed)]`","description":"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.","state":0,"publishedAt":"2024-07-01T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:27.173105+00:00","affected":[{"ecosystem":"crates.io","name":"zerovec","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.9.7"},{"kind":"introduced","version":"0.10.0"},{"kind":"fixed","version":"0.10.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/zerovec","https://rustsec.org/advisories/RUSTSEC-2024-0347.html"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0347","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0347","identifiers":["RUSTSEC-2024-0347","GHSA-xrv3-jmcp-374j"]},"retained":false,"historicalAffected":[]}],"coverage":[]}