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.

Project Subscriptions

Vendors Products
Rust-random Subscribe
Advisories
Source ID Title
EUVD EUVD EUVD-2021-1804 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.
Github GHSA Github GHSA GHSA-mmc9-pwm7-qj5w Unaligned memory access in rand_core
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 19 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Rust-random
Rust-random rand
CPEs cpe:2.3:a:rand_project:rand:*:*:*:*:*:*:*:* cpe:2.3:a:rust-random:rand:*:*:*:*:*:*:*:*
Vendors & Products Rand Project
Rand Project rand
Rust-random
Rust-random rand

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-04T15:33:05.759Z

Reserved: 2020-09-14T00:00:00.000Z

Link: CVE-2020-25576

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2020-09-14T19:15:11.473

Modified: 2026-08-19T19:21:55.070

Link: CVE-2020-25576

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses