logo

CVE-2020-36442 beef

Package

Manager: cargo
Name: beef
Vulnerable Version: >=0 <0.5.0

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00336 pctl0.55788

Details

Data races in beef An issue was discovered in the beef crate before 0.5.0 for Rust. Affected versions of this crate 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>`.

Metadata

Created: 2021-08-25T20:59:08Z
Modified: 2021-08-24T18:35:48Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-m7w4-8wp8-m2xq/GHSA-m7w4-8wp8-m2xq.json
CWE IDs: ["CWE-119", "CWE-362"]
Alternative ID: GHSA-m7w4-8wp8-m2xq
Finding: F124
Auto approve: 1