CVE-2020-35926

An issue was discovered in the nanorand crate before 0.5.1 for Rust

published December 31, 2020

CVSS
—
EPSS
2%
Percentile
74.6
In the wild
Unconfirmed
What it is

⚠️ A random number generator returning all zeroes? That’s like a surprise party where nobody shows up! 🎉 Think of a random number generator as a dice roller at a game night. If the dice are all weighted to land on one side, every roll ends up the same—completely predictable! With every RNG call returning zero, your systems could be compromised if they rely on randomness for security measures or unique identifiers. This could lead to scenarios where cryptographic operations fail or predictable outcomes are exploited, putting your data at risk.

Put simply

Think of a random number generator as a dice roller at a game night. If the dice are all weighted to land on one side, every roll ends up the same—completely predictable! This vulnerability in the nanorand crate allows any random number generator, including ChaCha, to produce all zeroes due to mishandled integer truncation before version 0.5.1.

What to do

With every RNG call returning zero, your systems could be compromised if they rely on randomness for security measures or unique identifiers. This could lead to scenarios where cryptographic operations fail or predictable outcomes are exploited, putting your data at risk. Upgrade the nanorand crate to version 0.5.1 or later immediately to restore proper randomness in your applications. Review your code for any dependencies on random numbers to ensure they're not left vulnerable. You've got this! By patching promptly, you’ll ensure your systems are back in action and as random as they should be! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01534 · 74.6th percentile
Published
2020-12-31T08:16Z
EPSS history
Timeline
  • 31 DEC 08:16Z
    An issue was discovered in the nanorand crate before 0.5.1 for Rust
    cvelistv5