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

CVE-2020-35925: Data races in magnetic

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate unconditionally implemented Sync and Send traits for MPMCConsumer and MPMCProducer types. This allows users to send types that do not implement Send trait across thread boundaries, which can cause a data race. The flaw was corrected in the 2.0.1 release by adding T: Send bound to affected Sync/Send trait implementations.

References

  • github.com/advisories/GHSA-wv4p-jp67-jr97
  • github.com/johnshaw/magnetic
  • github.com/johnshaw/magnetic/issues/9
  • nvd.nist.gov/vuln/detail/CVE-2020-35925
  • rustsec.org/advisories/RUSTSEC-2020-0088.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35925 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 2.0.1

Fixed versions

  • 2.0.1

Solution

Upgrade to version 2.0.1 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

cargo/magnetic/CVE-2020-35925.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:29 +0000.