{"id":"CVE-2020-35905","aliases":["CVE-2020-35905","GHSA-rh4w-94hh-9943","RUSTSEC-2020-0059"],"related":[],"kind":"vulnerability","state":"published","title":"MutexGuard::map can cause a data race in safe code","summary":"An issue was discovered in the futures-util crate before 0.3.7 for Rust. MutexGuard::map can cause a data race for certain closure situations (in safe code).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the futures-util crate before 0.3.7 for Rust. MutexGuard::map can cause a data race for certain closure situations (in safe code).","source":"cvelist"},{"lang":"en","text":"Affected versions of the crate had a Send/Sync implementation for MappedMutexGuard that only considered variance on T, while MappedMutexGuard dereferenced to U.\n\nThis could of led to data races in safe Rust code when a closure used in MutexGuard::map() returns U that is unrelated to T.\n\nThe issue was fixed by fixing Send and Sync implementations, and by adding a PhantomData<&'a mut U> marker to the MappedMutexGuard type to tell the compiler that the guard is over U too.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Affected versions of the crate had a Send/Sync implementation for MappedMutexGuard that only considered variance on T, while MappedMutexGuard dereferenced to U.\n\nThis could of led to data races in safe Rust code when a closure used in MutexGuard::map() returns U that is unrelated to T.\n\nThe issue was fixed by fixing `Send` and `Sync` implementations, and by adding a `PhantomData<&'a mut U>` marker to the `MappedMutexGuard` type to tell the compiler that the guard is over\nU too.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate futures-util versiones anteriores a 0.3.7 para Rust.&#xa0;La función MutexGuard::map puede causar una carrera de datos para determinadas situaciones de cierre (en código seguro).","source":"nvd"}],"published":"2020-10-22T12:00:00.000Z","modified":"2026-06-17T03:14:34.617Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:M/Au:N/C:N/I:N/A:P","score":1.9,"rating":"LOW"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.2","status":"affected","fixed":"0.3.7"}],"ecosystem":"crates.io","package":"futures-util","purl":"pkg:cargo/futures-util","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.2","status":"affected","fixed":"0.3.7"}],"ecosystem":"crates.io","package":"futures-util","purl":"pkg:cargo/futures-util","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.3.7"}],"vendor":"rust-lang","product":"future-utils","cpe":"cpe:2.3:a:rust-lang:future-utils:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0059.html","tags":["advisory","exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35905","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rust-lang/futures-rs/issues/2239","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/rust-lang/futures-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/futures-util","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-35905","url":"https://www.cve.org/CVERecord?id=CVE-2020-35905","licence":"CVE Terms of Use","modified":"2024-08-04T17:16:13.203Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rh4w-94hh-9943","url":"https://github.com/advisories/GHSA-rh4w-94hh-9943","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:38.548Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0059","url":"https://rustsec.org/advisories/RUSTSEC-2020-0059.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:38.548Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35905","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35905","licence":"Public domain","modified":"2026-06-17T03:14:34.617Z"}],"updatedAt":"2026-11-25T22:57:56.642Z","epss":{"score":0.00264,"percentile":0.1953,"date":"2026-12-02T12:00:21.000Z"}}