Advisory

RUSTSEC-2020-0127

Also known as: CVE-2020-36447, GHSA-3837-87vh-xq3w, GHSA-pfjq-935c-4895

Summary

SyncRef's clone() and debug() allow data races

Details

Affected versions of this crate unconditionally implement Sync for SyncRef<T>.
This definition allows data races if &T is accessible through &SyncRef.

SyncRef<T> derives Clone and Debug, and the default implementations of those traits access &T by invoking T::clone() & T::fmt(). It is possible to create data races & undefined behavior by concurrently invoking SyncRef<T>::clone() or SyncRef<T>::fmt() from multiple threads with T: !Sync.

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-12-18 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

v9

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.1.43 (semver)

Fixed versions

0.1.43

Fix

  • Fixed version 0.1.43
    cargo update -p v9 --precise 0.1.43

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