{"cve":"CVE-2020-35926","nvd":{"published":"2020-12-31T09:15:16.380","modified":"2026-06-17T03:14:37.220","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-330","CWE-681"],"references":["https://rustsec.org/advisories/RUSTSEC-2020-0089.html","https://rustsec.org/advisories/RUSTSEC-2020-0089.html"],"products":["nanorand_project:nanorand"],"source":"nvd","synced_at":"2026-10-19T21:12:09.559580076+00:00"},"epss":{"cve":"CVE-2020-35926","score":0.01534,"percentile":0.74822,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m9m5-cg5h-r582","url":"https://osv.dev/vulnerability/GHSA-m9m5-cg5h-r582","summary":"Improper random number generation in nanorand","modified":"2023-11-08T04:03:39.769670Z","packages":[{"ecosystem":"crates.io","name":"nanorand","purl":"pkg:cargo/nanorand","ranges":["<0.5.1"],"fixed":["0.5.1"]}]},{"id":"RUSTSEC-2020-0089","url":"https://osv.dev/vulnerability/RUSTSEC-2020-0089","summary":"nanorand 0.5.0 - RNGs failed to generate properly for non-64-bit numbers","modified":"2023-11-08T04:03:39.769670Z","packages":[{"ecosystem":"crates.io","name":"nanorand","purl":"pkg:cargo/nanorand","ranges":[">=0.0.0-0 <0.5.1"],"fixed":["0.5.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}