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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- rustsec.org third-party-advisory vendor-advisory
- twitter.com
- github.com
- github.com product
- crates.io product