High, CVSS 8.1crates.ioPublished
Data races in beef
CVE-2020-36442 · GHSA-m7w4-8wp8-m2xq
- Affected
- crates.io beef < 0.5.0
- Fixed in
- 0.5.0· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 0.5.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.