Advisory

GHSA-m7w4-8wp8-m2xq

Also known as: CVE-2020-36442, RUSTSEC-2020-0122

Summary

Data races in beef

Details

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>.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:59 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

beef

crates.io · All systems

Affected

  • introduced 0, fixed 0.5.0 (semver)

Fixed versions

0.5.0

Fix

  • Fixed version 0.5.0
    cargo update -p beef --precise 0.5.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences