Lucene search

K
osvGoogleOSV:RUSTSEC-2021-0023
HistoryFeb 12, 2021 - 12:00 p.m.

Incorrect check on buffer length when seeding RNGs

2021-02-1212:00:00
Google
osv.dev
6

0.002 Low

EPSS

Percentile

60.7%

Summary: rand_core::le::read_u32_into and read_u64_into have incorrect checks on the source buffer length, allowing the destination buffer to be under-filled.

Implications: some downstream RNGs, including Hc128Rng (but not the more widely used ChaCha*Rng), allow seeding using the SeedableRng::from_seed trait-function with too short keys.

CPENameOperatorVersion
rand_corelt0.6.2
rand_corege0.6.0

0.002 Low

EPSS

Percentile

60.7%