Race Condition Affecting try-mutex package, versions <0.3.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (30th 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 IDSNYK-RUST-TRYMUTEX-1314620
  • published27 Jun 2021
  • disclosed17 Nov 2020
  • creditsslab-gatech

Introduced: 17 Nov 2020

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

How to fix?

Upgrade try-mutex to version 0.3.0 or higher.

Overview

try-mutex is an A simple non-blocking mutex (i.e. only try_lock is supported), using atomics.

Affected versions of this package are vulnerable to Race Condition due to unconditional Sync trait implementation for TryMutex<T> type.

CVSS Base Scores

version 3.1