Advisory

RUSTSEC-2020-0137

Also known as: CVE-2020-36457, GHSA-9pp4-8p8v-g78w

Summary

AtomicBox<T> lacks bound on its Send and Sync traits allowing data races

Details

AtomicBox<T> is a Box type designed to be used across threads, however, it
implements the Send and Sync traits for all types T.

This allows non-Send types such as Rc and non-Sync types such as Cell to
be used across thread boundaries which can trigger undefined behavior and
memory corruption.

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

Affected packages and fixes

lever

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.1.1 (semver)

Fixed versions

0.1.1

Fix

  • Fixed version 0.1.1
    cargo update -p lever --precise 0.1.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