Race Condition Affecting crayon package, versions *


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.21% (60th 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 Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-CRAYON-1015408
  • published2 Oct 2020
  • disclosed31 Aug 2020
  • creditUnknown

Introduced: 31 Aug 2020

CVE-2020-35889  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

There is no fixed version for crayon.

Overview

crayon is a game framework, which loosely inspired by some amazing blogs on bitsquid, molecular and floooh.

Affected versions of this package are vulnerable to Race Condition. Unsafe code in ObjectPool has time-of-check to time-of-use (TOCTOU) bug that can eventually lead to a memory safety violation. ObjectPool and HandlePool implicitly assumes that HandleLike trait methods are pure, i.e., they always return the same value. However, this assumption is unsound since HandleLike is a safe, public trait that allows a custom implementation.

References

CVSS Scores

version 3.1