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

CVE-2020-35913: 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 RwLockReadGuard unsoundness.

References

  • github.com/Amanieu/parking_lot
  • github.com/Amanieu/parking_lot/pull/262
  • github.com/advisories/GHSA-hj9h-wrgg-hgmx
  • nvd.nist.gov/vuln/detail/CVE-2020-35913
  • rustsec.org/advisories/RUSTSEC-2020-0070.html

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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-35913.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:42 +0000.