# RUSTSEC-2022-0002: Unsoundness in dashmap references

- Database: RustSec
- Published: 2022-01-10
- Modified: 2023-11-08

## Also published as

- [GHSA-MPG5-FVWP-42M2](https://cve.now/GHSA-MPG5-FVWP-42M2.md) (GitHub)

## 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://crates.io/crates/dashmap
- https://rustsec.org/advisories/RUSTSEC-2022-0002.html
- https://github.com/xacrimon/dashmap/issues/167

Page: https://cve.now/RUSTSEC-2022-0002

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