VDB
CVE-2020-25576
CVE-2020-25576
PUBLISHED
CVSS 9.800000190734863 CRITICAL
Unaligned memory access in rand_core
Reported by mitre · Published September 14, 2020
rand_core is fixed in 0.4.2 and 0.3.1 (crates.io)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rand_core | crates.io | 0.4.2, 0.3.1 |
| rand | rand_project | 0.4.2 |
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| crates.io | rand_core | 0.4.0, 0 |
Timeline
- Sep 14, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 18, 2021 CVE Updated
- Mar 17, 2026 Security Advisory
- Sep 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-25576
vulnetix vdb fixes CVE-2020-25576
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-25576/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-25576 advisory
- https://github.com/advisories/GHSA-mmc9-pwm7-qj5w advisory
- https://github.com/rust-random/rand/security/advisories/GHSA-mmc9-pwm7-qj5w url
- https://github.com/rust-random/rand url
- https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06 url