Advisory

RUSTSEC-2020-0135

Also known as: CVE-2020-36455, GHSA-83r8-p8v6-6gfm, GHSA-mc36-5m36-hjh5

Summary

Slock<T> allows sending non-Send types across thread boundaries

Details

Slock<T> unconditionally implements Send/Sync.

Affected versions of this crate allows sending non-Send types to other threads,
which can lead to data races and memory corruption due to the data race.

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

Affected packages and fixes

slock

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.2.0 (semver)

Fixed versions

0.2.0

Fix

  • Fixed version 0.2.0
    cargo update -p slock --precise 0.2.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