{"id":"CVE-2020-35711","aliases":["CVE-2020-35711","GHSA-9pqx-g3jh-qpqq","RUSTSEC-2020-0091"],"related":[],"kind":"vulnerability","state":"published","title":"Dangling reference in `access::Map` with Constant","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Using the `arc_swap::access::Map` with the `Constant` test helper (or with\nuser-provided implementation of the `Access` trait) could sometimes lead to the\nmap returning dangling references.\n\nReplaced by implementation without `unsafe`, at the cost of added `Clone` bound\non the closure and small penalty on performance.","format":"markdown","source":"rustsec"},{"lang":"es","text":"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.&#xa0;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","source":"nvd"}],"published":"2020-12-10T12:00:00.000Z","modified":"2026-06-17T03:14:09.830Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.4.2","status":"affected","fixed":"0.4.8"}],"ecosystem":"crates.io","package":"arc-swap","purl":"pkg:cargo/arc-swap","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.1.0"}],"ecosystem":"crates.io","package":"arc-swap","purl":"pkg:cargo/arc-swap","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.4.2","status":"affected","fixed":"0.4.8"},{"type":"semver","introduced":"1.0.0-0","status":"affected","fixed":"1.1.0"}],"ecosystem":"crates.io","package":"arc-swap","purl":"pkg:cargo/arc-swap","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.4.8"},{"status":"affected","introduced":"1.0.0","fixed":"1.1.0"}],"vendor":"arc-swap_project","product":"arc-swap","cpe":"cpe:2.3:a:arc-swap_project:arc-swap:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vorner/arc-swap/issues/45","tags":["exploit","patch","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0091.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35711","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vorner/arc-swap","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/arc-swap","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-35711","url":"https://www.cve.org/CVERecord?id=CVE-2020-35711","licence":"CVE Terms of Use","modified":"2024-08-04T17:09:15.212Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9pqx-g3jh-qpqq","url":"https://github.com/advisories/GHSA-9pqx-g3jh-qpqq","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:35.548Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0091","url":"https://rustsec.org/advisories/RUSTSEC-2020-0091.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:35.548Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35711","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35711","licence":"Public domain","modified":"2026-06-17T03:14:09.830Z"}],"updatedAt":"2026-11-25T22:57:56.414Z","epss":{"score":0.01619,"percentile":0.76772,"date":"2026-12-01T12:00:22.000Z"}}