Every CVE Search/ Get API key

CVE-2020-35912

Data races in lock_api

4.7 MediumFix available

CVE-2020-35912 is a medium vulnerability (CVSS 4.7) in Lock Api Project Api, published November 8, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.21%, the 11th percentile. Fixed in lock_api 0.4.2.

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

0.21%Down 0.2 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 4.7

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
CVE-2020-35912
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
1.9 LowAV:L/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-362
Updated
2026-11-02
CVE List No score

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
CVE-2020-35912
Updated
2026-11-02
EUVDEUVD-2021-1583 No score

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
EUVD-2021-1583
Updated
2026-11-03
GitHub AdvisoriesGHSA-5wg8-7c9q-794v 4.7

Data races in lock_api

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
GHSA-5wg8-7c9q-794v
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-362
Updated
2026-11-02
OSVCVE-2020-35910 5.5

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedMutexGuard unsoundness.

Record
CVE-2020-35910
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCVE-2020-35911 4.7

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockReadGuard unsoundness.

Record
CVE-2020-35911
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 11 moreShow less
OSV 4.7

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
CVE-2020-35912
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCVE-2020-35913 4.7

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockReadGuard unsoundness.

Record
CVE-2020-35913
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCVE-2020-35914 4.7

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockWriteGuard unsoundness.

Record
CVE-2020-35914
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2020-35912 4.7

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
DEBIAN-CVE-2020-35912
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVGHSA-5wg8-7c9q-794v 4.7

Data races in lock_api

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
GHSA-5wg8-7c9q-794v
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-362
Updated
2026-11-02
OSVGHSA-gmv4-vmx3-x9f3 4.7

Data races in lock_api

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockWriteGuard unsoundness.

Record
GHSA-gmv4-vmx3-x9f3
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-362
Updated
2026-11-02
OSVGHSA-hj9h-wrgg-hgmx 4.7

Data races in lock_api

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockReadGuard unsoundness.

Record
GHSA-hj9h-wrgg-hgmx
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-362
Updated
2026-11-02
OSVGHSA-ppj3-7jw3-8vc4 5.5

Data races in lock_api

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedMutexGuard unsoundness.

Record
GHSA-ppj3-7jw3-8vc4
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-362
Updated
2026-11-02
OSVGHSA-vh4p-6j7g-f4j9 4.7

Data races in lock_api

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockReadGuard unsoundness.

Record
GHSA-vh4p-6j7g-f4j9
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-362
Updated
2026-11-02
OSVUBUNTU-CVE-2020-35912 4.7

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of MappedRwLockWriteGuard unsoundness.

Record
UBUNTU-CVE-2020-35912
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRUSTSEC-2020-0070 No score

Some lock_api lock guard objects can cause data races

Affected versions of lock_api had unsound implementations of the Send or Sync traits for some guard objects, namely:

  • MappedMutexGuard
  • MappedRwLockReadGuard
  • MappedRwLockWriteGuard
  • RwLockReadGuard
  • RwLockWriteGuard

These guards could allow data races through types that are not safe to Send across thread boundaries in safe Rust code.

This issue was fixed by changing the trait bounds on the Mapped guard types and removing the Sync trait for the RwLock guards.

Record
RUSTSEC-2020-0070
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
lock_api
crates.io
before 0.4.2
0.4.2
rust-lock-api
Debian:12
before 0.4.5-1
0.4.5-1
rust-lock-api
Debian:13
before 0.4.5-1
0.4.5-1
rust-lock-api
Debian:14
before 0.4.5-1
0.4.5-1
lock_api
crates.io
0.0.0-0 up to 0.4.2
0.4.2
rust-lock-api
Ubuntu:20.04:LTS
All versions, plus listed versions
0.1.5-10.3.1-10.3.2-10.3.3-1
None known
rust-lock-api
Ubuntu:22.04:LTS
All versions, plus listed versions
0.3.4-10.4.5-1
None known
rust-lock-api
Ubuntu:24.04:LTS
All versions, plus listed versions
0.4.9-10.4.11-1
None known
rust-lock-api
Ubuntu:25.10
All versions, plus listed versions
0.4.12-1
None known
rust-lock-api
Ubuntu:26.10
All versions, plus listed versions
0.4.14-1
None known
rust-lock-api
Ubuntu:26.04:LTS
All versions, plus listed versions
0.4.12-10.4.13-10.4.14-1
None known

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 8 moreShow less
MoveEnter Open