Advisory

RUSTSEC-2020-0088

Also known as: CVE-2020-35925, GHSA-wv4p-jp67-jr97

Summary

MPMCConsumer/Producer allows sending non-Send type across threads

Details

Affected versions of this crate unconditionally implemented Sync and Send traits for MPMCConsumer and MPMCProducer types.

This allows users to send types that do not implement Send trait across thread boundaries, which can cause a data race.

The flaw was corrected in the 2.0.1 release by adding T: Send bound to affected Sync/Send trait implementations.

Severity

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2020-11-29 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

magnetic

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 2.0.1 (semver)

Fixed versions

2.0.1

Fix

  • Fixed version 2.0.1
    cargo update -p magnetic --precise 2.0.1

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: RustSec Advisory Database · CC0-1.0

Sources & licences