Description
An issue was discovered in the rand_core crate before 0.4.2 for Rust. Casting of byte slices to integer slices mishandles alignment constraints.
Affected products
rust-random: rand
References2
- rustsec.org/advisories/RUSTSEC-2019-0035.html Vendor Advisory
- rustsec.org/advisories/RUSTSEC-2019-0035.html Vendor Advisory
Metrics
- CVSS 3.1
-
9.8
CRITICAL
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 2% percentile: 76 · as of 2 November 2026
- CWE
- CWE-704
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.