8.1high
Data races in beef
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-m7w4-8wp8-m2xqRUSTSEC-2020-0122
Description
An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| beef (crates.io) | before 0.5.0, from 0.0.0-0 before 0.5.0 | GitHub Advisory Database, RustSec Advisory Database |
| beef_project beef | before 0.5.0 | NVD |
All scores
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.
GitHub Advisory Database
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>.
RustSec Advisory Database
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>.
NVD (es)
Se ha detectado un problema en la crate beef versiones anteriores a 0.5.0 para Rust. La función beef::Cow no presente un límite de sincronización en su rasgo Send
References
| https://rustsec.org/advisories/RUSTSEC-2020-0122.html | advisory, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/beef/RUSTSEC-2020-0122.md | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36442 | advisory | |
| https://github.com/maciejhirsz/beef/issues/37 | report, web | |
| https://github.com/maciejhirsz/beef | package | |
| https://crates.io/crates/beef | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36442 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m7w4-8wp8-m2xq changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0122 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36442 changed 2026-06-17 | Public domain |