{"id":"CVE-2020-35711","aliases":["DEBIAN-CVE-2020-35711","EUVD-2022-3426","GHSA-9pqx-g3jh-qpqq","RUSTSEC-2020-0091","UBUNTU-CVE-2020-35711"],"status":"published","title":"Dangling reference in `access::Map` with Constant","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01619,"percentile":0.76373,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2020-12-10T12:00:00Z","modified":"2026-10-26T12:02:48Z","fixes":[{"ecosystem":"crates.io","package":"arc-swap","fixed_in":["0.4.8","1.1.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"rust-arc-swap","fixed_in":["0.4.8-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rust-arc-swap","fixed_in":["0.4.8-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rust-arc-swap","fixed_in":["0.4.8-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.2"},{"fixed":"0.4.8"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.1.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.8-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.8-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.8-1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"arc-swap","ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.2"},{"fixed":"0.4.8"}]}]},{"source":"osv","ecosystem":"crates.io","package":"arc-swap","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.1.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"arc-swap","ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.2"},{"fixed":"0.4.8"},{"introduced":"1.0.0-0"},{"fixed":"1.1.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.11-2","0.4.3-1","0.4.4-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.8-2","0.4.8-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0-1","1.6.0-2","1.6.0-3"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.0-1","1.9.1-1","1.9.2-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"rust-arc-swap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-1","1.8.0-1"]}],"products":[{"vendor":"arc-swap_project","product":"arc-swap"}],"references":[{"url":"https://github.com/vorner/arc-swap/issues/45","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0091.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35711","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9pqx-g3jh-qpqq"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-35711","tags":["advisory"]},{"url":"https://github.com/vorner/arc-swap","tags":["package"]},{"url":"https://crates.io/crates/arc-swap","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2020-35711","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-35711","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-35711","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.","status":"published","published":"2020-12-25T22:59:09Z","modified":"2024-08-04T17:09:15.212Z","updated_at":"2026-11-02T14:35:57.975444Z"}],"euvd":[{"id":"EUVD-2022-3426","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.","status":"published","published":"2020-12-25T22:59:09Z","modified":"2024-08-04T17:09:15Z","updated_at":"2026-11-03T03:07:05.241494Z"}],"ghsa":[{"id":"GHSA-9pqx-g3jh-qpqq","title":"Dangling reference in `access::Map` with Constant","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.","status":"published","published":"2022-05-24T17:37:21Z","modified":"2023-01-27T05:02:39Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T14:36:19.144959Z"}],"nvd":[{"id":"CVE-2020-35711","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.","status":"published","published":"2020-12-25T23:15:12.86Z","modified":"2026-06-17T03:14:09.83Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:06:28.340168Z"}],"osv":[{"id":"CVE-2020-35711","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.","status":"published","published":"2020-12-25T23:15:12.86Z","modified":"2026-10-20T10:54:20.659848344Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:16.612899Z"},{"id":"DEBIAN-CVE-2020-35711","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.","status":"published","published":"2020-12-25T23:15:12.86Z","modified":"2026-10-26T12:02:48.832864741Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.019707Z"},{"id":"GHSA-9pqx-g3jh-qpqq","title":"Dangling reference in `access::Map` with Constant","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.","status":"published","published":"2022-05-24T17:37:21Z","modified":"2023-11-08T04:03:35.548248Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:46:43.875515Z"},{"id":"RUSTSEC-2020-0091","title":"Dangling reference in `access::Map` with Constant","description":"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.","status":"published","published":"2020-12-10T12:00:00Z","modified":"2023-11-08T04:03:35.548248Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"},{"id":"UBUNTU-CVE-2020-35711","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.","status":"published","published":"2020-12-25T23:15:00Z","modified":"2026-10-17T12:56:55.963681314Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:25.179924Z"}]}}
