What’s Vulnerable › Vulnerabilities
CVE-2021-27378
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-02-18 · updated 2026-06-17
- Weakness: CWE-131
Description
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.
Affected products
- Rand Core Project Rand Core: from 0.6.0 before 0.6.2 — fixed in 0.6.2
How to fix
Upgrade to a fixed version: Rand Core Project Rand Core 0.6.2. Check the vendor advisory for mitigations.
References
- https://rustsec.org/advisories/RUSTSEC-2021-0023.html
- https://rustsec.org/advisories/RUSTSEC-2021-0023.html
Get alerted when CVE-2021-27378 or the next vulnerability affects your stack