Advisory

RUSTSEC-2020-0118

Also known as: CVE-2020-36438, GHSA-fg42-vwxx-xx5j, GHSA-m296-j53x-xv95

Summary

Future<T> lacks bounds on Send and Sync.

Details

tiny_future contains a light-weight implementation of Futures. The Future
type it has lacked bound on its Send and Sync traits.

This allows for a bug where non-thread safe types such as Cell can be used in
Futures and cause data races in concurrent programs.

The flaw was corrected in commit c791919 by adding trait bounds to Future's
Send and 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-08 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

tiny_future

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 tiny_future --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