Race Condition Affecting lock_api package, versions <0.4.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-LOCKAPI-6056563
  • published1 Jun 2021
  • disclosed8 Nov 2020
  • creditammaraskar

Introduced: 8 Nov 2020

CVE-2020-35914  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade lock_api to version 0.4.2 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition due to unsound implementations of the Send or Sync traits for these guard objects: MappedMutexGuard, MappedRwLockReadGuard, MappedRwLockWriteGuard, RwLockReadGuard, RwLockWriteGuard.

NOTE: This vulnerability has also been identified as: CVE-2020-35913, CVE-2020-35910, CVE-2020-35911, CVE-2020-35912

CVSS Scores

version 3.1