{"id":"GHSA-74r5-g7vc-j2v2","revision":"c33d16c0060940b2b12518ab437f4627","records":[{"revision":"c33d16c0060940b2b12518ab437f4627","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-74r5-g7vc-j2v2","aliases":["RUSTSEC-2024-0346"],"title":"zerovec-derive incorrectly uses `#[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.\n","state":0,"publishedAt":"2024-07-08T18:39:18+00:00","modifiedAt":"2026-09-10T03:50:16.4107299+00:00","affected":[{"ecosystem":"crates.io","name":"zerovec-derive","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.10.0"},{"kind":"fixed","version":"0.10.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"zerovec-derive","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.9.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/unicode-org/icu4x/issues/5196#issuecomment-2214711069","https://github.com/rustsec/advisory-db/pull/2007","https://rustsec.org/advisories/RUSTSEC-2024-0346.html"],"sourceUrl":"https://github.com/advisories/GHSA-74r5-g7vc-j2v2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-74r5-g7vc-j2v2","identifiers":["GHSA-74r5-g7vc-j2v2","RUSTSEC-2024-0346"]},"retained":false,"historicalAffected":[]}],"coverage":[]}