Time of Check Time of Use (TOCTOU) 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 IDSNYK-RUST-CRAYON-609294
  • published1 Sept 2020
  • disclosed31 Aug 2020
  • creditArvinB

Introduced: 31 Aug 2020

CVE-2020-35889  (opens in a new tab)
CWE-367  (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 Time of Check Time of Use (TOCTOU). 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