Advisory

GHSA-r57r-j98g-587f

Also known as: CVE-2021-45705, GHSA-p6gj-gpc8-f8xw, RUSTSEC-2021-0114

Summary

Pointer dereference in nanorand

Details

An issue was discovered in the nanorand crate before 0.6.1 for Rust. There can be multiple mutable references to the same object because the TlsWyRand Deref implementation dereferences a raw pointer.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-01-06 22:08 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences