An issue was discovered in the rand_core crate before 0.4.2 for Rust.
Priority MEDIUM 45CWE-704Published · 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-704 and the CVSS impact.
Summary
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.
Why it matters now
EPSS 0.01602 75th percentileScored 2026-11-07
Fix Fixed rand_core (crates.io): 0.4.2, 0.3.1
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.4.0 to before 0.4.2 | 0.4.2 | Patch available | GHSA-mmc9-pwm7-qj5w |
| — | rand_core (crates.io) | before 0.3.1 | 0.3.1 | Patch available | GHSA-mmc9-pwm7-qj5w |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- rand_core (crates.io) Vendor— Affected 0.4.0 to before 0.4.2 Fixed in 0.4.2 Patch available GHSA-mmc9-pwm7-qj5w
- rand_core (crates.io) Vendor— Affected before 0.3.1 Fixed in 0.3.1 Patch available GHSA-mmc9-pwm7-qj5w
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rust-random:rand:*:*:*:*:*:*:*:* | before 0.4.2 | Vulnerable | Rust-random |
- cpe:2.3:a:rust-random:rand:*:*:*:*:*:*:*:* Versions before 0.4.2 Vulnerable ·Rust-random
Remediation
- Fix · GHSA-mmc9-pwm7-qj5w rand_core (crates.io) Fixed in 0.4.2 Advisory →
- Fix · GHSA-mmc9-pwm7-qj5w rand_core (crates.io) Fixed in 0.3.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-25576
- 2026-10-03 Alias added: GHSA-mmc9-pwm7-qj5w
References
Sources
- CVE-2020-25576 · CVE Program
- CVE-2020-25576 · NVD
- FIRST EPSS
- GHSA-mmc9-pwm7-qj5w · 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