Advisory

RUSTSEC-2020-0117

Also known as: CVE-2020-36437, GHSA-368f-29c3-4f2r

Summary

QueueSender<T>/QueueReceiver<T>: Send/Sync impls need T: Send

Details

Affected versions of this crate unconditionally implemented Send/Sync for QueueSender<T>,
allowing to send non-Send T to other threads by invoking (&QueueSender<T>).send().

This fails to prevent users from creating data races by sending types like Rc<T> or Arc<Cell<T>> to other threads, which can lead to memory corruption.

The flaw was corrected in commit 1e462c3 by imposing T: Send to both Send/Sync impls for QueueSender<T>/QueueReceiver<T>.

Severity

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

Dates

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

Affected packages and fixes

conqueue

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p conqueue --precise 0.4.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: RustSec Advisory Database · CC0-1.0

Sources & licences