
Cloud Vulnerability DB
A community-led vulnerabilities database
An issue was discovered in the nanorand crate before version 0.5.1 for Rust, affecting its random number generator (RNG) implementation. The vulnerability caused any RNG implementation, including the cryptographically secure ChaCha generator, to return all zeroes due to improper integer truncation handling (RustSec Advisory, NVD).
The vulnerability stemmed from using bit-shifting operations to truncate 64-bit numbers instead of using proper type conversion for standard unsigned integers. This implementation error in the RandomGen implementations resulted in the RNG consistently returning zero values, affecting all random number generation including cryptographically secure operations. The issue has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).
The vulnerability compromised the effectiveness of all random number generation in affected versions, causing predictable (all zero) outputs instead of random values. This had significant implications for any security-critical applications relying on nanorand for randomization, particularly those using the ChaCha cryptographic RNG (RustSec Advisory).
The issue has been fixed in nanorand version 0.5.1 and later releases. Users should upgrade to version 0.5.1 or newer to resolve the vulnerability. No alternative workarounds are available for affected versions (RustSec Advisory).
The vulnerability was initially disclosed on Twitter by the developer, highlighting the critical nature of the bug and its impact on random number generation (RustSec Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."