Out-of-Bounds Affecting unicycle package, versions <0.7.1


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.24% (62nd 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-UNICYCLE-1537621
  • published8 Aug 2021
  • disclosed8 Aug 2021
  • creditUnknown

Introduced: 8 Aug 2021

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

How to fix?

Upgrade unicycle to version 0.7.1 or higher.

Overview

unicycle is a scheduler for driving a large number of futures.

Affected versions of this package are vulnerable to Out-of-Bounds. PinSlab<T> and Unordered<T,S> do not have bounds on their Send and Sync traits. This allows sending non-Send types to other threads and concurrently accessing non-Sync types from multiple threads. This can result in a data race & memory corruption when types that provide internal mutability without synchronization are contained within PinSlab<T> or Unordered<T, S> and accessed concurrently from multiple threads.

CVSS Scores

version 3.1