# GHSA-mpg5-fvwp-42m2: Unsoundness in `dashmap` references

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

## Description

Reference returned by some methods of `Ref` (and similar types) may outlive the `Ref` and escape the lock.
This causes undefined behavior and may result in a segfault.

More information in [`dashmap#167`](https://github.com/xacrimon/dashmap/issues/167) issue.

(As written by GitHub Advisory Database.)

## Affected

- dashmap (crates.io): from 5.0.0 before 5.1.0

## References

- <https://github.com/xacrimon/dashmap/issues/167> (report, web)
- <https://github.com/xacrimon/dashmap> (package)
- <https://rustsec.org/advisories/RUSTSEC-2022-0002.html> (advisory, web)
- <https://crates.io/crates/dashmap> (package)

## Sources

- GitHub Advisory Database: [GHSA-mpg5-fvwp-42m2](https://github.com/advisories/GHSA-mpg5-fvwp-42m2), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0002](https://rustsec.org/advisories/RUSTSEC-2022-0002.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-mpg5-fvwp-42m2 · Whole record: https://cve.day/GHSA-mpg5-fvwp-42m2.json · Rebuilt by cve.day 2026-11-25T22:56:43.089Z
