mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-01 17:20:33 +01:00
Add nanorand 0.5.0 RNG weakness (#525)
This commit is contained in:
22
crates/nanorand/RUSTSEC-0000-0000.md
Normal file
22
crates/nanorand/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,22 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "nanorand"
|
||||
date = "2020-12-09"
|
||||
url = "https://twitter.com/aspenluxxxy/status/1336684692284772352"
|
||||
categories = ["crypto-failure"]
|
||||
cvss = "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
|
||||
keywords = ["rng"]
|
||||
|
||||
[versions]
|
||||
patched = [">= 0.5.1"]
|
||||
```
|
||||
|
||||
# nanorand 0.5.0 - RNGs failed to generate properly for non-64-bit numbers
|
||||
|
||||
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..
|
||||
Reference in New Issue
Block a user