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

CVE-2020-36460: Data races in model

August 25, 2021

Shared data structure in model crate implements Send and Sync traits regardless of the inner type. This allows safe Rust code to trigger a data race, which is undefined behavior in Rust.

Users are advised to treat Shared as an unsafe type. It should not be used outside of the testing context, and care must be taken so that the testing code does not have a data race besides a race condition that is expected to be caught by the test.

References

  • github.com/advisories/GHSA-mxv6-q98x-h958
  • github.com/spacejam/model
  • github.com/spacejam/model/issues/3
  • nvd.nist.gov/vuln/detail/CVE-2020-36460
  • rustsec.org/advisories/RUSTSEC-2020-0140.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36460 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 up to 0.1.2

Solution

Unfortunately, there is no solution available yet.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

cargo/model/CVE-2020-36460.yml

Spotted a mistake? Edit the file on GitLab.

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

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