CVE-2020-36442
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
beef (crates.io)before 0.5.0, from 0.0.0-0 before 0.5.0GitHub Advisory Database, RustSec Advisory Database
beef_project beefbefore 0.5.0NVD

All scores

GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2020-36442 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-m7w4-8wp8-m2xq changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0122 changed 2023-11-08CC0-1.0
NVDCVE-2020-36442 changed 2026-06-17Public domain