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

CVE-2020-36203: Data races in reffers

August 25, 2021 (updated June 13, 2023)

ARefss<‘a, V> is a type that is assumed to contain objects that are Send + Sync.

In the affected versions of this crate, Send/Sync traits are unconditionally implemented for ARefss<‘a, V>.

By using the ARefss::map() API, we can insert a !Send or !Sync object into ARefss<‘a, V>. After that, it is possible to create a data race to the inner object of ARefss<‘a, V>, which can lead to undefined behavior & memory corruption.

The flaw was corrected in commit 6dd7ca0 by adding trait bound V: Send + Sync to ARefss::map() API.

References

  • github.com/advisories/GHSA-39xg-8p43-h76x
  • github.com/diwic/reffers-rs
  • github.com/diwic/reffers-rs/commit/6dd7ca0d50f2464df708975cdafcfaeeb6d41c66
  • github.com/diwic/reffers-rs/issues/7
  • nvd.nist.gov/vuln/detail/CVE-2020-36203
  • rustsec.org/advisories/RUSTSEC-2020-0094.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36203 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.6.1

Fixed versions

  • 0.6.1

Solution

Upgrade to version 0.6.1 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:L/AC:H/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')
  • CWE-787: Out-of-bounds Write

Source file

cargo/reffers/CVE-2020-36203.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:22 +0000.