{"id":"GHSA-9qxh-258v-666c","summary":"owning_ref vulnerable to multiple soundness issues","details":"- `OwningRef::map_with_owner` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/77) and may result in a use-after-free.\n- `OwningRef::map` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/71) and may result in a use-after-free.\n- `OwningRefMut::as_owner` and `OwningRefMut::as_owner_mut` are [unsound](https://github.com/Kimundi/owning-ref-rs/issues/61) and may result in a use-after-free.\n- The crate [violates Rust's aliasing rules](https://github.com/Kimundi/owning-ref-rs/issues/49), which may cause miscompilations on recent compilers that emit the LLVM `noalias` attribute.\n\nNo patched versions are available at this time. While a pull request with some fixes is outstanding, the maintainer appears to be unresponsive.\n","aliases":["RUSTSEC-2022-0040"],"modified":"2023-11-08T04:18:04.747199Z","published":"2022-08-10T17:26:00Z","database_specific":{"github_reviewed_at":"2022-08-10T17:26:00Z","nvd_published_at":null,"cwe_ids":[],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"PACKAGE","url":"https://github.com/Kimundi/owning-ref-rs"},{"type":"WEB","url":"https://github.com/noamtashma/owning-ref-unsoundness"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2022-0040.html"}],"affected":[{"package":{"name":"owning_ref","ecosystem":"crates.io","purl":"pkg:cargo/owning_ref"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.4.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-9qxh-258v-666c/GHSA-9qxh-258v-666c.json"}}],"schema_version":"1.9.0"}