{"id":"RUSTSEC-2020-0091","summary":"Dangling reference in `access::Map` with Constant","details":"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.","aliases":["CVE-2020-35711","GHSA-9pqx-g3jh-qpqq"],"modified":"2023-11-08T04:03:35.548248Z","published":"2020-12-10T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/arc-swap"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0091.html"},{"type":"REPORT","url":"https://github.com/vorner/arc-swap/issues/45"}],"affected":[{"package":{"name":"arc-swap","ecosystem":"crates.io","purl":"pkg:cargo/arc-swap"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.2"},{"fixed":"0.4.8"},{"introduced":"1.0.0-0"},{"fixed":"1.1.0"}]}],"ecosystem_specific":{"affects":{"functions":["arc_swap::access::MapGuard::deref"],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","categories":["memory-corruption"],"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0091.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}