{"id":"RUSTSEC-2024-0346","revision":"df05a37bd7814916904f3fa9f3916586","records":[{"revision":"df05a37bd7814916904f3fa9f3916586","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0346","aliases":["GHSA-74r5-g7vc-j2v2"],"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.3` use `#[repr(C, packed)]`, which guarantees field order.","state":0,"publishedAt":"2024-07-01T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:23.437379+00:00","affected":[{"ecosystem":"crates.io","name":"zerovec-derive","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.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/zerovec-derive","https://rustsec.org/advisories/RUSTSEC-2024-0346.html"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0346","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0346","identifiers":["RUSTSEC-2024-0346","GHSA-74r5-g7vc-j2v2"]},"retained":false,"historicalAffected":[]}],"coverage":[]}