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

CVE-2020-36468: Non-atomic writes in cgc

August 25, 2021 (updated June 13, 2023)

Multiple soundness issues in <code>Ptr</code> in cgc

Affected versions of this crate have the following issues:

  1. Ptr implements Send and Sync for all types, this can lead to data races by sending non-thread safe types across threads.

  2. Ptr::get violates mutable alias rules by returning multiple mutable references to the same object.

  3. Ptr::write uses non-atomic writes to the underlying pointer. This means that when used across threads it can lead to data races.

References

  • github.com/advisories/GHSA-pwhf-7427-9vv2
  • github.com/playXE/cgc
  • github.com/playXE/cgc/issues/5
  • nvd.nist.gov/vuln/detail/CVE-2020-36468
  • raw.githubusercontent.com/rustsec/advisory-db/main/crates/cgc/RUSTSEC-2020-0148.md
  • rustsec.org/advisories/RUSTSEC-2020-0148.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36468 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.4.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-657: Violation of Secure Design Principles

Source file

cargo/cgc/CVE-2020-36468.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:50 +0000.