Out-of-Bounds Affecting cache 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-CACHE-1537645
  • published9 Aug 2021
  • disclosed8 Aug 2021
  • creditUnknown

Introduced: 8 Aug 2021

CVE-2020-36448  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

There is no fixed version for cache.

Overview

cache is a Type agnostic, fixed-size cache.

Affected versions of this package are vulnerable to Out-of-Bounds. It unconditionally implement Send/Sync for Cache<K>. This allows users to insert K that is not Send or not Sync. This allows users to create data races by using non-Send types like Arc<Cell> or Rc as K in Cache. It is also possible to create data races by using types like Cell or RefCell (types that are Send but not Sync). Such data races can lead to memory corruption.

CVSS Scores

version 3.1