Race Condition Affecting cgc package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-CGC-1089466
  • published29 Mar 2021
  • disclosed10 Dec 2020
  • creditUnknown

Introduced: 10 Dec 2020

CVE-2020-36466  (opens in a new tab)
CVE-2020-36467  (opens in a new tab)
CVE-2020-36468  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

There is no fixed version for cgc.

Overview

Affected versions of this package are vulnerable to Race Condition. Ptr implements Send and Sync for all types, this can lead to data races by sending non-thread safe types across threads. Ptr::get violates mutable alias rules by returning multiple mutable references to the same object. Ptr::write uses non-atomic writes to the underlying pointer. This means that when used across threads it can lead to data races.

CVSS Scores

version 3.1