Dangling reference in `access::Map` with Constant
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Package
Affected versions
>= 0.4.2, < 0.4.8
>= 1.0.0, < 1.1.0
Patched versions
0.4.8
1.1.0
Description
Published by the National Vulnerability Database
Dec 25, 2020
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Jun 16, 2022
Last updated
Jan 27, 2023
An issue has been discovered in the arc-swap crate before 0.4.8 (and 1.x before 1.1.0) for Rust. Use of arc_swap::access::Map with the Constant test helper (or with a user-supplied implementation of the Access trait) could sometimes lead to dangling references being returned by the map.
References