CVE-2020-35926Nanorand Project Nanorand
Critical 9.8 No auth needed
Follow: this CVE · Nanorand Project · Nanorand Project Nanorand We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Dec 31, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Nanorand.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | nanorand |
< 0.5.1 |
0.5.1 |
cargo update -p nanorand --precise 0.5.1 |
| crates.io | nanorand |
≥ 0.0.0-0 < 0.5.1 |
0.5.1 |
cargo update -p nanorand --precise 0.5.1 |
Per OSV / GitHub Advisories (GHSA-m9m5-cg5h-r582, RUSTSEC-2020-0089). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nanorand_project | nanorand | < 0.5.1 |
Official sources
References
Links published by the sources. Open them with care.
- rustsec.org Third Party Advisory