
CVE catalog
CVE-2020-25576
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.
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 1.60% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | rust-rand-core | sid | 0.10.1-1 | fixed |
| Debian | rust-rand-core | forky | 0.10.1-1 | fixed |
| Debian | rust-rand-core | trixie | 0.6.4-2 | fixed |
| Debian | rust-rand-core | bookworm | 0.6.3-2 | fixed |
| Cpe | rand | Not reported | 0.4.2 | fixed |
| Ubuntu | rust-rand-core-0.2 | 20.04 | 0.2.2-1 | vulnerable |
| Ubuntu | rust-rand-core-0.2 | 20.04 | 0.2.2-2 | vulnerable |
| Ubuntu | rust-rand-core-0.3 | 20.04 | 0.3.0-1 | vulnerable |
| Ubuntu | rust-rand-core-0.3 | 20.04 | 0.3.0-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | rust-rand-core | source | sid | 0.5.0-1 | low | Not reported | [969911] |
| Debian | rust-rand-core | source | forky | 0.5.0-1 | low | Not reported | [969911] |
| Debian | rust-rand-core | source | trixie | 0.5.0-1 | low | Not reported | [969911] |
| Debian | rust-rand-core | source | bookworm | 0.5.0-1 | low | Not reported | [969911] |
| Cpe | rand | cpe | Not reported | 0.4.2 | Not reported | NVD-CVE-2020-25576 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [librust-rand-core-dev]Fixed
Source package: [rust-rand-core]
Details (2)
0.6.3-2· amd64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
0.6.3-2· arm64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
Source package: [rust-rand-core]
Details (2)
0.6.3-2· amd64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
0.6.3-2· arm64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
- [librust-rand-core+serde-dev]Fixed
Source package: [rust-rand-core]
Details (2)
0.6.3-2· amd64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
0.6.3-2· arm64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
- [librust-rand-core+std-dev]Fixed
Source package: [rust-rand-core]
Details (2)
0.6.3-2· amd64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
0.6.3-2· arm64 · bookwormFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12
[Debian 13 (Trixie)]
- [librust-rand-core-dev]Fixed
Source package: [rust-rand-core]
Details (2)
0.6.4-2· amd64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
0.6.4-2· arm64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
Source package: [rust-rand-core]
Details (2)
0.6.4-2· amd64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
0.6.4-2· arm64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
- [librust-rand-core+serde-dev]Fixed
Source package: [rust-rand-core]
Details (2)
0.6.4-2· amd64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
0.6.4-2· arm64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
- [librust-rand-core+std-dev]Fixed
Source package: [rust-rand-core]
Details (2)
0.6.4-2· amd64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
0.6.4-2· arm64 · trixieFixed · Fixed:
0.5.0-1nvd · rust-rand-core · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2020-25576]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2020-25576]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2020-25576]
- [https://security-tracker.debian.org/tracker/CVE-2020-25576]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]