# GHSA-p7mj-xvxg-grff: `out_reference::Out::from_raw` should be `unsafe`

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

## Description

`Out::from_raw` in affected versions allows writing a value to invalid memory address without requiring `unsafe`.

The soundness issue has been addressed by making `Out::from_raw` an unsafe function.

(As written by GitHub Advisory Database.)

## Affected

- out-reference (crates.io): from 0.1.0 before 0.2.0

## References

- <https://github.com/RustyYato/out-ref/issues/1> (report, web)
- <https://rustsec.org/advisories/RUSTSEC-2021-0152.html> (advisory, web)
- <https://crates.io/crates/out-reference> (package)

## Sources

- GitHub Advisory Database: [GHSA-p7mj-xvxg-grff](https://github.com/advisories/GHSA-p7mj-xvxg-grff), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0152](https://rustsec.org/advisories/RUSTSEC-2021-0152.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-p7mj-xvxg-grff · Whole record: https://cve.day/GHSA-p7mj-xvxg-grff.json · Rebuilt by cve.day 2026-11-25T22:56:43.087Z
