Memory Corruption Affecting beef package, versions <0.5.0


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 Learn

Learn about Memory Corruption vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-BEEF-1065274
  • published27 Jan 2021
  • disclosed28 Oct 2020
  • creditUnknown

Introduced: 28 Oct 2020

CVE-2020-36442  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade beef to version 0.5.0 or higher.

Overview

beef is a Faster, more compact implementation of Cow.

Affected versions of this package are vulnerable to Memory Corruption. It did not have a T: Sync bound in the Send impl for Cow<'_, T, U>. This allows users to create data races by making Cow contain types that are (Send && !Sync) like Cell<_> or RefCell<_>. Such data races can lead to memory corruption. The flaw was corrected in commit d1c7658 by adding trait bounds T: Sync and T::Owned: Send to the Send impl for Cow<'_, T, U>.

CVSS Scores

version 3.1