Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. try-mutex
  4. ›
  5. CVE-2020-35924

CVE-2020-35924: Data races in try-mutex

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate unconditionally implemented Sync trait for TryMutex type. This allows users to put non-Send T type in TryMutex and send it to another thread, which can cause a data race. The flaw was corrected in the 0.3.0 release by adding T: Send bound for the Sync trait implementation.

References

  • github.com/advisories/GHSA-64j8-7gp2-xjx5
  • github.com/mpdn/try-mutex
  • github.com/mpdn/try-mutex/issues/2
  • nvd.nist.gov/vuln/detail/CVE-2020-35924
  • rustsec.org/advisories/RUSTSEC-2020-0087.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35924 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.3.0

Fixed versions

  • 0.3.0

Solution

Upgrade to version 0.3.0 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

cargo/try-mutex/CVE-2020-35924.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:56 +0000.