{"id":"CVE-2020-35914","aliases":["CVE-2020-35914","GHSA-5wg8-7c9q-794v","GHSA-gmv4-vmx3-x9f3","GHSA-hj9h-wrgg-hgmx","GHSA-ppj3-7jw3-8vc4","GHSA-vh4p-6j7g-f4j9","RUSTSEC-2020-0070"],"related":["CVE-2020-35910","CVE-2020-35911","CVE-2020-35912","CVE-2020-35913"],"kind":"vulnerability","state":"published","title":"Data races in lock_api","summary":"An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockWriteGuard unsoundness.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockWriteGuard unsoundness.","source":"cvelist"},{"lang":"en","text":"An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.","format":"markdown","source":"ghsa"},{"lang":"en","text":"An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockReadGuard unsoundness.","format":"markdown","source":"ghsa"},{"lang":"en","text":"An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedMutexGuard unsoundness.","format":"markdown","source":"ghsa"},{"lang":"en","text":"An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockReadGuard unsoundness.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Affected versions of lock_api had unsound implementations of the `Send` or\n`Sync` traits for some guard objects, namely:\n\n* MappedMutexGuard\n* MappedRwLockReadGuard\n* MappedRwLockWriteGuard\n* RwLockReadGuard\n* RwLockWriteGuard\n\nThese guards could allow data races through types that are not safe to `Send`\nacross thread boundaries in safe Rust code.\n\nThis issue was fixed by changing the trait bounds on the `Mapped` guard types\nand removing the `Sync` trait for the `RwLock` guards.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate lock_api versiones anteriores a 0.4.2 para Rust.&#xa0;Puede producirse una carrera de datos debido a una falta de solidez de la función RwLockWriteGuard.","source":"nvd"}],"published":"2020-11-08T12:00:00.000Z","modified":"2026-06-17T03:14:35.737Z","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":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"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","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"lock_api","purl":"pkg:cargo/lock_api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"lock_api","purl":"pkg:cargo/lock_api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"lock_api","purl":"pkg:cargo/lock_api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"lock_api","purl":"pkg:cargo/lock_api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"lock_api","purl":"pkg:cargo/lock_api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"lock_api","purl":"pkg:cargo/lock_api","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.4.2"}],"vendor":"lock_api_project","product":"lock_api","cpe":"cpe:2.3:a:lock_api_project:lock_api:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0070.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-35912","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Amanieu/parking_lot/pull/262","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Amanieu/parking_lot","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35914","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35913","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35910","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Amanieu/parking_lot/commit/7de94f95f519d8281cb48457964065b463d26736","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35911","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/lock_api","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-35914","url":"https://www.cve.org/CVERecord?id=CVE-2020-35914","licence":"CVE Terms of Use","modified":"2024-08-04T17:16:13.215Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5wg8-7c9q-794v","url":"https://github.com/advisories/GHSA-5wg8-7c9q-794v","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:20.102Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gmv4-vmx3-x9f3","url":"https://github.com/advisories/GHSA-gmv4-vmx3-x9f3","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:20.102Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hj9h-wrgg-hgmx","url":"https://github.com/advisories/GHSA-hj9h-wrgg-hgmx","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:20.102Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ppj3-7jw3-8vc4","url":"https://github.com/advisories/GHSA-ppj3-7jw3-8vc4","licence":"CC-BY-4.0","modified":"2025-05-23T18:33:34.000Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vh4p-6j7g-f4j9","url":"https://github.com/advisories/GHSA-vh4p-6j7g-f4j9","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:20.102Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0070","url":"https://rustsec.org/advisories/RUSTSEC-2020-0070.html","licence":"CC0-1.0","modified":"2024-03-15T00:05:20.102Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35914","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35914","licence":"Public domain","modified":"2026-06-17T03:14:35.737Z"}],"updatedAt":"2026-11-25T22:57:56.650Z","epss":{"score":0.00211,"percentile":0.12041,"date":"2026-12-01T12:00:22.000Z"}}