Advisory

RUSTSEC-2020-0102

Also known as: CVE-2020-36209, GHSA-wr55-mf5c-hhwm

Summary

LateStatic has incorrect Sync bound

Details

Affected versions of this crate implemented Sync for LateStatic with T: Send, so that it is possible to create a data race to a type T: Send + !Sync (e.g. Cell<T>).

This can result in a memory corruption or other kinds of undefined behavior.

The flaw was corrected in commit 11f396c by replacing the T: Send bound to T: Sync bound in the Sync impl for LateStatic<T>.

Severity

High Basis: CVSS v3 score 7, vector CVSS:3.1/AV:L/AC:H/PR:L/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

late-static

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 late-static --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