Skip to content

CVE-2020-35926 Improper random number generation in nanorand

CriticalCVSS 9.8 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known

Description

An issue was discovered in the nanorand crate before 0.5.1 for Rust. It caused any random number generator (even ChaCha) to return all zeroes because integer truncation was mishandled.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
crates.io nanorand(crates.io) < 0.5.1; >= 0.0.0-0, < 0.5.1 0.5.1 Fixed
nanorand project nanorand < 0.5.1 0.5.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io nanorand(crates.io) < 0.5.1 0.5.1
crates.io nanorand(crates.io) >= 0.0.0-0, < 0.5.1 0.5.1
nanorand project nanorand < 0.5.1 0.5.1

References