# GHSA-9qxh-258v-666c: owning_ref vulnerable to multiple soundness issues

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-01-26T12:00:00.000Z
- Modified: 2023-11-08T04:18:04.747Z
- Also known as: RUSTSEC-2022-0040

## Description

- `OwningRef::map_with_owner` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/77) and may result in a use-after-free.
- `OwningRef::map` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/71) and may result in a use-after-free.
- `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.
- 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.

No patched versions are available at this time. While a pull request with some fixes is outstanding, the maintainer appears to be unresponsive.

(As written by GitHub Advisory Database.)

## Affected

- owning_ref (crates.io): up to 0.4.1; from 0.0.0-0

## References

- <https://github.com/Kimundi/owning-ref-rs> (package)
- <https://github.com/noamtashma/owning-ref-unsoundness> (web)
- <https://rustsec.org/advisories/RUSTSEC-2022-0040.html> (advisory, web)
- <https://crates.io/crates/owning_ref> (package)
- <https://github.com/Kimundi/owning-ref-rs/issues/49> (report)
- <https://github.com/Kimundi/owning-ref-rs/issues/61> (report)
- <https://github.com/Kimundi/owning-ref-rs/issues/71> (report)
- <https://github.com/Kimundi/owning-ref-rs/issues/77> (report)

## Sources

- GitHub Advisory Database: [GHSA-9qxh-258v-666c](https://github.com/advisories/GHSA-9qxh-258v-666c), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0040](https://rustsec.org/advisories/RUSTSEC-2022-0040.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-9qxh-258v-666c · Whole record: https://cve.day/GHSA-9qxh-258v-666c.json · Rebuilt by cve.day 2026-11-25T22:56:43.104Z
