Advisory

RUSTSEC-2021-0114

Also known as: CVE-2021-45705, GHSA-p6gj-gpc8-f8xw, GHSA-r57r-j98g-587f

Summary

Aliased mutable references from tls_rand & TlsWyRand

Details

TlsWyRand's implementation of Deref unconditionally dereferences a raw pointer, and returns
multiple mutable references to the same object, which is undefined behavior.

Severity

Not rated by the source.

Dates

Published
2021-09-23 12:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

nanorand

crates.io · All systems

Affected

  • introduced 0.5.0, fixed 0.6.1 (semver)

Fixed versions

0.6.1

Fix

  • Fixed version 0.6.1
    cargo update -p nanorand --precise 0.6.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