VDB
Sign up
CRITICAL9.8

GHSA-w7j2-35mf-95p7

Incorrect check on buffer length in rand_core

Details

An issue was discovered in the rand_core crate before 0.6.2 for Rust. Because `read_u32_into` and `read_u64_into` mishandle certain buffer-length checks, a random number generator may be seeded with too little data. The vulnerability was introduced in v0.6.0. The advisory doesn't apply to earlier minor version numbers.

Because read_u32_into and read_u64_into mishandle certain buffer-length checks, a random number generator may be seeded with too little data.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/rand_core
Introduced in: 0.6.0Fixed in: 0.6.2

Upgrade rand_core to 0.6.2 or newer (ecosystem crates.io).

References