CVE-2020-35711
JSON

7.5high

Dangling reference in `access::Map` with Constant

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.62% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-9pqx-g3jh-qpqqRUSTSEC-2020-0091

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
arc-swap (crates.io)from 0.4.2 before 0.4.8, from 1.0.0 before 1.1.0, from 1.0.0-0 before 1.1.0GitHub Advisory Database, RustSec Advisory Database
arc-swap_project arc-swapbefore 0.4.8, from 1.0.0 before 1.1.0NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

What each source says

CVE List

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.

RustSec Advisory Database

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.

NVD (es)

Se ha detectado un problema en la crate arc-swap versiones anteriores a 0.4.8 (y versiones 1.x anteriores a 1.1.0) para Rust. El uso de la función arc_swap::access::Map con el asistente de prueba Constant (o con una implementación suministrada por el usuario del rasgo Access) a veces podría conllevar a que referencias colgantes sean devueltas por el mapa

References

Sources

SourceRecordLicence
CVE ListCVE-2020-35711 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-9pqx-g3jh-qpqq changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0091 changed 2023-11-08CC0-1.0
NVDCVE-2020-35711 changed 2026-06-17Public domain