{"id":"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\u003cB, T\u003e` 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","aliases":["GHSA-rjhf-4mh8-9xjq","RUSTSEC-2023-0074"],"modified":"2024-02-12T15:57:36Z","published":"2023-12-15T03:48:38Z","database_specific":{"cwe_ids":[],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2023-12-15T03:48:38Z","nvd_published_at":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"}],"affected":[{"package":{"name":"zerocopy","ecosystem":"crates.io","purl":"pkg:cargo/zerocopy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.2"},{"fixed":"0.2.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-3mv5-343c-w2qg/GHSA-3mv5-343c-w2qg.json"}},{"package":{"name":"zerocopy","ecosystem":"crates.io","purl":"pkg:cargo/zerocopy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.0"},{"fixed":"0.3.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-3mv5-343c-w2qg/GHSA-3mv5-343c-w2qg.json"}},{"package":{"name":"zerocopy","ecosystem":"crates.io","purl":"pkg:cargo/zerocopy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.0"},{"fixed":"0.4.1"}]}],"versions":["0.4.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-3mv5-343c-w2qg/GHSA-3mv5-343c-w2qg.json"}},{"package":{"name":"zerocopy","ecosystem":"crates.io","purl":"pkg:cargo/zerocopy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.5.0"},{"fixed":"0.5.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-3mv5-343c-w2qg/GHSA-3mv5-343c-w2qg.json"}},{"package":{"name":"zerocopy","ecosystem":"crates.io","purl":"pkg:cargo/zerocopy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.6.0"},{"fixed":"0.6.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-3mv5-343c-w2qg/GHSA-3mv5-343c-w2qg.json"}},{"package":{"name":"zerocopy","ecosystem":"crates.io","purl":"pkg:cargo/zerocopy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.7.0"},{"fixed":"0.7.31"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-3mv5-343c-w2qg/GHSA-3mv5-343c-w2qg.json"}}],"schema_version":"1.9.0"}