Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. late-static
  4. ›
  5. CVE-2020-36209

CVE-2020-36209: Data races in late-static

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate implemented Sync for LateStatic with T: Send, so that it is possible to create a data race to a type T: Send + !Sync (e.g. Cell).

This can result in a memory corruption or other kinds of undefined behavior.

The flaw was corrected in commit 11f396c by replacing the T: Send bound to T: Sync bound in the Sync impl for LateStatic.

References

  • github.com/Richard-W/late-static
  • github.com/Richard-W/late-static/commit/11f396c
  • github.com/Richard-W/late-static/issues/1
  • github.com/advisories/GHSA-wr55-mf5c-hhwm
  • nvd.nist.gov/vuln/detail/CVE-2020-36209
  • rustsec.org/advisories/RUSTSEC-2020-0102.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36209 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 0.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 7 HIGH

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

Learn more about CVSS

Weakness

  • CWE-662: Improper Synchronization

Source file

cargo/late-static/CVE-2020-36209.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:29 +0000.