Register for the AI for Security Summit: Join Figma, Perplexity & Wiz
Vulnerability DatabaseRUSTSEC-2020-0089

RUSTSEC-2020-0089
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the nanorand crate before version 0.5.1 for Rust programming language. The vulnerability was assigned CVE-2020-35926 and was publicly disclosed on December 31, 2020. The vulnerability affected the random number generation functionality in the nanorand library (NVD, CVE).

Technical details

The vulnerability stems from incorrect conversion between numeric types (CWE-681) and use of insufficiently random values (CWE-330). The issue caused any random number generator, including the ChaCha implementation, to return all zeroes due to integer truncation being mishandled. The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability compromises the cryptographic security of applications using the nanorand crate, as the random number generator would only generate zero values instead of random numbers. This could severely impact any security-critical operations that rely on random number generation, such as cryptographic operations or security token generation (NVD).

Exploitability

The vulnerability is highly exploitable due to its network accessibility (AV:N), low attack complexity (AC:L), and no requirements for privileges (PR:N) or user interaction (UI:N). This is reflected in the critical CVSS score of 9.8 (NVD).

Mitigation and workarounds

The vulnerability was fixed in nanorand version 0.5.1. Users are advised to upgrade to this version or newer to address the issue. The fix addresses the integer truncation problem that caused the random number generation failure (RustSec).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management