- Reported
-
- Issued
-
- Package
-
arc-swap
(crates.io)
- Type
-
Vulnerability
- Categories
-
- Keywords
-
#dangling-reference
- Aliases
-
- References
-
- CVSS Score
- 7.5
HIGH
- CVSS Details
-
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality Impact
- None
- Integrity Impact
- None
- Availability Impact
- High
- CVSS Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Patched
-
>=0.4.8, <1.0.0-0
>=1.1.0
- Unaffected
-
- Affected Functions
- Version
arc_swap::access::MapGuard::deref
-
Description
Using the arc_swap::access::Map with the Constant test helper (or with
user-provided implementation of the Access trait) could sometimes lead to the
map returning dangling references.
Replaced by implementation without unsafe, at the cost of added Clone bound
on the closure and small penalty on performance.
Advisory available under CC0-1.0
license.