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

CVE-2020-36467: Multiple soundness issues in cgc

August 25, 2021 (updated June 13, 2023)

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-f3mq-99jr-ww4r
  • github.com/playXE/cgc
  • github.com/playXE/cgc/issues/5
  • nvd.nist.gov/vuln/detail/CVE-2020-36467
  • 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-36467 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 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-36467.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:47 +0000.