Skip to content

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

cargo arc-swap (Rust)

Affected versions

>= 0.4.2, < 0.4.8
>= 1.0.0, < 1.1.0

Patched versions

0.4.8
1.1.0

Description

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

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

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

No CWEs

CVE ID

CVE-2020-35711

GHSA ID

GHSA-9pqx-g3jh-qpqq

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.