Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. lock_api
  4. ›
  5. CVE-2020-35914

CVE-2020-35914: Data races in lock_api

August 25, 2021

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

References

  • github.com/Amanieu/parking_lot
  • github.com/Amanieu/parking_lot/pull/262
  • github.com/advisories/GHSA-gmv4-vmx3-x9f3
  • nvd.nist.gov/vuln/detail/CVE-2020-35914
  • rustsec.org/advisories/RUSTSEC-2020-0070.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35914 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.4.2

Fixed versions

  • 0.4.2

Solution

Upgrade to version 0.4.2 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

cargo/lock_api/CVE-2020-35914.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.