RUSTSEC-2020-0089

Source
https://rustsec.org/advisories/RUSTSEC-2020-0089
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0089.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0089
Aliases
Published
2020-12-09T12:00:00Z
Modified
2023-11-08T04:03:39.769670Z
Severity
  • 5.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
nanorand 0.5.0 - RNGs failed to generate properly for non-64-bit numbers
Details

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..

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / nanorand

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.5.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
    "informational": null,
    "categories": [
        "crypto-failure"
    ]
}