# GHSA-MPG5-FVWP-42M2: Unsoundness in dashmap references

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2022-06-16
- Modified: 2023-11-08

## Also published as

- [RUSTSEC-2022-0002](https://cve.now/RUSTSEC-2022-0002.md) (RustSec)

## Affected versions

- dashmap (crates.io): from 5.0.0, fixed in 5.1.0

## 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.

## References

- https://github.com/xacrimon/dashmap/issues/167
- https://github.com/xacrimon/dashmap
- https://rustsec.org/advisories/RUSTSEC-2022-0002.html

Page: https://cve.now/GHSA-MPG5-FVWP-42M2

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
