{"id":"GHSA-3mv5-343c-w2qg","aliases":["GHSA-rjhf-4mh8-9xjq","RUSTSEC-2023-0074"],"url":"https://o3.security/vulnerability/GHSA-3mv5-343c-w2qg","summary":"Ref methods into_ref, into_mut, into_slice, and into_slice_mut are unsound when used with cell::Ref or cell::RefMut","details":"*This advisory is also published as [RUSTSEC-2023-0074](https://rustsec.org/advisories/RUSTSEC-2023-0074.html).*\n\nThe `Ref` methods `into_ref`, `into_mut`, `into_slice`, and `into_slice_mut` are unsound and may allow safe code to exhibit undefined behavior when used with `Ref<B, T>` where `B` is [`cell::Ref`](https://doc.rust-lang.org/core/cell/struct.Ref.html) or [`cell::RefMut`](https://doc.rust-lang.org/core/cell/struct.RefMut.html). Note that these methods remain sound when used with `B` types other than `cell::Ref` or `cell::RefMut`.\n\nSee https://github.com/google/zerocopy/issues/716 for a more in-depth analysis.\n\nThe current plan is to yank the affected versions soon. See https://github.com/google/zerocopy/issues/679 for more detail.\n","published":"2023-12-15T03:48:38Z","modified":"2024-02-12T15:57:36Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"zerocopy","fixedVersion":"0.2.9"},{"ecosystem":"crates.io","name":"zerocopy","fixedVersion":"0.3.2"},{"ecosystem":"crates.io","name":"zerocopy","fixedVersion":"0.4.1"},{"ecosystem":"crates.io","name":"zerocopy","fixedVersion":"0.5.2"},{"ecosystem":"crates.io","name":"zerocopy","fixedVersion":"0.6.6"},{"ecosystem":"crates.io","name":"zerocopy","fixedVersion":"0.7.31"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/google/zerocopy/security/advisories/GHSA-3mv5-343c-w2qg"},{"type":"WEB","url":"https://github.com/google/zerocopy/issues/679"},{"type":"WEB","url":"https://github.com/google/zerocopy/issues/716"},{"type":"PACKAGE","url":"https://github.com/google/zerocopy"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2023-0074.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2024-02-12T15:57:36Z"}}