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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE 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.0 | GitHub Advisory Database, RustSec Advisory Database |
| arc-swap_project arc-swap | before 0.4.8, from 1.0.0 before 1.1.0 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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
| https://github.com/vorner/arc-swap/issues/45 | exploit, patch, report, third-party-advisory, web | |
| https://rustsec.org/advisories/RUSTSEC-2020-0091.html | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-35711 | advisory | |
| https://github.com/vorner/arc-swap | package | |
| https://crates.io/crates/arc-swap | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-35711 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9pqx-g3jh-qpqq changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0091 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-35711 changed 2026-06-17 | Public domain |