n/a · Vulnerability
cve-program · CVE-2020-25576
PublishedAn issue was discovered in the rand_core crate before 0.4.2 for Rust. Casting of byte slices to integer slices mishandles alignment constraints.
Read the publisher's advisoryeuvd · EUVD-2021-1804
PublishedAn issue was discovered in the rand_core crate before 0.4.2 for Rust. Casting of byte slices to integer slices mishandles alignment constraints.
Read the publisher's advisorynvd · CVE-2020-25576
PublishedAn issue was discovered in the rand_core crate before 0.4.2 for Rust. Casting of byte slices to integer slices mishandles alignment constraints.
Read the publisher's advisoryosv · GHSA-mmc9-pwm7-qj5w
Published### Impact Affected versions of this crate violated alignment when casting byte slices to integer slices, resulting in undefined behavior. `rand_core::BlockRng::next_u64` and `rand_core::BlockRng::fill_bytes` are affected. ### Patches The flaw was corrected by Ralf Jung and Diggory Hardy for `rand_core >= 0.4.2`. ### Workarounds None. ### References See [Rand's changelog](https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06). ### For more information If you have any questions or comments about this advisory, [open an issue in the Rand repository](https://github.com/rust-random/rand/issues/new/choose).
Read the publisher's advisoryosv · RUSTSEC-2019-0035
PublishedAffected versions of this crate violated alignment when casting byte slices to integer slices, resulting in undefined behavior. The flaw was corrected by Ralf Jung and Diggory Hardy.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2020-25576 · CVE overview and exploitation status
cve-program · CVE-2020-25576
euvd · EUVD-2021-1804
nvd · CVE-2020-25576
osv · GHSA-mmc9-pwm7-qj5w
- https://github.com/rust-random/rand/security/advisories/GHSA-mmc9-pwm7-qj5w
- https://github.com/rust-random/rand
- https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06
- https://rustsec.org/advisories/RUSTSEC-2019-0035.html
osv · RUSTSEC-2019-0035
Related changes
Linked by CVE identifierNo related changes are available here.