Race Condition Affecting rocket package, versions >=0.4.0 <0.4.5


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.87% (83rd 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-ROCKET-598764
  • published16 Aug 2020
  • disclosed27 May 2020
  • creditUnknown

Introduced: 27 May 2020

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

How to fix?

Upgrade rocket to version 0.4.5 or higher.

Overview

rocket is a web framework for Rust.

Affected versions of this package are vulnerable to Race Condition. LocalRequest::clone creates multiple mutable references to the same object. This causes data race in rare combinations of APIs if the original and the cloned objects are modified at the same time.

References

CVSS Scores

version 3.1