An issue was discovered in the rand_core crate before 0.6.2 for Rust.
Priority MEDIUM 45CWE-131Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-131 and the CVSS impact.
Summary
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.
Why it matters now
EPSS 0.01238 69th percentileScored 2026-11-07
Fix Fixed rand_core (crates.io): 0.6.2
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | rand_core (crates.io) | 0.6.0 to before 0.6.2 | 0.6.2 | Patch available | GHSA-w7j2-35mf-95p7 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- rand_core (crates.io) Vendor— Affected 0.6.0 to before 0.6.2 Fixed in 0.6.2 Patch available GHSA-w7j2-35mf-95p7
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rand_core_project:rand_core:*:*:*:*:*:rust:*:* | 0.6.0 to before 0.6.2 | Vulnerable | Rand Core Project |
- cpe:2.3:a:rand_core_project:rand_core:*:*:*:*:*:rust:*:* Versions 0.6.0 to before 0.6.2 Vulnerable ·Rand Core Project
Remediation
- Fix · GHSA-w7j2-35mf-95p7 rand_core (crates.io) Fixed in 0.6.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-27378
- 2026-10-03 Alias added: GHSA-w7j2-35mf-95p7
References
Advisory 2
Other 4
- https://github.com/rust-random/rand/pull/1096
- https://github.com/rust-random/rand
- https://github.com/rust-random/rand/compare/0.6.0...rand_core-0.6.2#diff-f41b3dfa5ce28f3bee390d327c50621e141cf3569921f8e9ca15ccfcf25263a9R19
- https://github.com/rust-random/rand/compare/0.6.0...rand_core-0.6.2#diff-f41b3dfa5ce28f3bee390d327c50621e141cf3569921f8e9ca15ccfcf25263a9R28
Sources
- CVE-2021-27378 · CVE Program
- CVE-2021-27378 · NVD
- FIRST EPSS
- GHSA-w7j2-35mf-95p7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences