Live threats

All CVEs / Nanorand Project

CVE-2020-35926Nanorand Project Nanorand

Critical 9.8 No auth needed

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
Weakness (CWE)
CWE-330, CWE-681
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nanorand.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
nanorand_projectnanorand< 0.5.1

Official sources

References

Links published by the sources. Open them with care.