Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLW03dzQtOHdwOC1tMnhx
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>
.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLW03dzQtOHdwOC1tMnhx
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 3 years ago
Updated: almost 2 years ago
CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-m7w4-8wp8-m2xq, CVE-2020-36442
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-36442
- https://rustsec.org/advisories/RUSTSEC-2020-0122.html
- https://github.com/maciejhirsz/beef/issues/37
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/beef/RUSTSEC-2020-0122.md
- https://github.com/advisories/GHSA-m7w4-8wp8-m2xq
Blast Radius: 27.3
Affected Packages
cargo:beef
Dependent packages: 46Dependent repositories: 2,337
Downloads: 15,915,473 total
Affected Version Ranges: < 0.5.0
Fixed in: 0.5.0
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4
All unaffected versions: 0.5.0, 0.5.1, 0.5.2