Critical severity9.8NVD Advisory· Published Feb 18, 2021· Updated Jun 17, 2026
CVE-2021-27378
CVE-2021-27378
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rand_corecrates.io | >= 0.6.0, < 0.6.2 | 0.6.2 |
Affected products
3- cpe:2.3:a:rand_core_project:rand_core:*:*:*:*:*:rust:*:*Range: >=0.6.0,<0.6.2
- rand_core/rand_coredescription
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-w7j2-35mf-95p7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-27378ghsaADVISORY
- rustsec.org/advisories/RUSTSEC-2021-0023.htmlnvdThird Party AdvisoryWEB
- github.com/rust-random/rand/compare/0.6.0...rand_core-0.6.2ghsaWEB
- github.com/rust-random/rand/compare/0.6.0...rand_core-0.6.2ghsaWEB
- github.com/rust-random/rand/pull/1096ghsaWEB
News mentions
0No linked articles in our index yet.