RUSTSEC-2020-0122
Dashboard / Vulnerabilities / RUSTSEC-2020-0122
RUSTSEC-2020-0122
Published: 28 Oct 2020Last Modified: 8 Nov 2023
Aliases:
Summary: beef::Cow lacks a Sync bound on its Send trait allowing for data races
Details: 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>`.
References: https://crates.io/crates/beef, https://rustsec.org/advisories/RUSTSEC-2020-0122.html, https://github.com/maciejhirsz/beef/issues/37
Affected packages
Package
Name: beef
Purl: pkg:cargo/beef
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -0.5.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
