An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLW05bTUtY2c1aC1yNTgy

Improper random number generation in nanorand

In versions of nanorand prior to 0.5.1, RandomGen implementations for standard unsigned integers could fail to properly generate numbers, due to using bit-shifting to truncate a 64-bit number, rather than just an as conversion. This often manifested as RNGs returning nothing but 0, including the cryptographically secure ChaCha random number generator.

Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: 10 months ago

CVSS Score: 5.1
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Identifiers: GHSA-m9m5-cg5h-r582, CVE-2020-35926
References: Repository:
Blast Radius: 17.9

Affected Packages

Dependent packages: 57
Dependent repositories: 3,176
Downloads: 13,027,932 total
Affected Version Ranges: < 0.5.1
Fixed in: 0.5.1
All affected versions: 0.0.0, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0
All unaffected versions: 0.5.1, 0.5.2, 0.6.0, 0.6.1, 0.7.0