{"id":"GHSA-3mv5-343c-w2qg","aliases":["GHSA-3mv5-343c-w2qg","GHSA-rjhf-4mh8-9xjq","RUSTSEC-2023-0074"],"related":[],"kind":"vulnerability","state":"published","title":"Ref methods into_ref, into_mut, into_slice, and into_slice_mut are unsound when used with cell::Ref or cell::RefMut","summary":"*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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"*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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"The `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.","format":"markdown","source":"ghsa"}],"published":"2023-12-14T12:00:00.000Z","modified":"2024-02-12T15:57:50.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.2.2","status":"affected","fixed":"0.2.9"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.3.2"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"0.4.1"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.5.0","status":"affected","fixed":"0.5.2"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"0.6.6"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.7.0","status":"affected","fixed":"0.7.31"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.2.2","status":"affected","fixed":"0.2.9"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.3.2"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"0.4.1"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.5.0","status":"affected","fixed":"0.5.2"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"0.6.6"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.7.0","status":"affected","fixed":"0.7.31"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.2.2","status":"affected","fixed":"0.2.9"},{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.3.2"},{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"0.4.1"},{"type":"semver","introduced":"0.5.0","status":"affected","fixed":"0.5.2"},{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"0.6.6"},{"type":"semver","introduced":"0.7.0","status":"affected","fixed":"0.7.31"}],"ecosystem":"crates.io","package":"zerocopy","purl":"pkg:cargo/zerocopy","source":"rustsec"}],"references":[{"url":"https://github.com/google/zerocopy/security/advisories/GHSA-3mv5-343c-w2qg","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/google/zerocopy/issues/679","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/google/zerocopy/issues/716","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/google/zerocopy","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0074.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/google/zerocopy/issues/71","tags":["web"],"sources":["ghsa"]},{"url":"https://crates.io/crates/zerocopy","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3mv5-343c-w2qg","url":"https://github.com/advisories/GHSA-3mv5-343c-w2qg","licence":"CC-BY-4.0","modified":"2024-02-12T15:57:36.000Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rjhf-4mh8-9xjq","url":"https://github.com/advisories/GHSA-rjhf-4mh8-9xjq","licence":"CC-BY-4.0","modified":"2024-02-12T15:57:50.000Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0074","url":"https://rustsec.org/advisories/RUSTSEC-2023-0074.html","licence":"CC0-1.0","modified":"2024-02-10T16:26:48.086Z"}],"updatedAt":"2026-11-25T22:56:43.163Z"}