Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLW1tYzktcHdtNy1xajV3
Unaligned memory access in rand_core
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.
For more information
If you have any questions or comments about this advisory, open an issue in the Rand repository.
Permalink: https://github.com/advisories/GHSA-mmc9-pwm7-qj5wJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLW1tYzktcHdtNy1xajV3
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 2 years ago
Updated: over 1 year ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-mmc9-pwm7-qj5w, CVE-2020-25576
References:
- https://github.com/rust-random/rand/security/advisories/GHSA-mmc9-pwm7-qj5w
- https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06
- https://rustsec.org/advisories/RUSTSEC-2019-0035.html
- https://github.com/advisories/GHSA-mmc9-pwm7-qj5w
Blast Radius: 47.7
Affected Packages
cargo:rand_core
Dependent packages: 925Dependent repositories: 73,473
Downloads: 309,102,386 total
Affected Version Ranges: < 0.3.1, >= 0.4.0, < 0.4.2
Fixed in: 0.3.1, 0.4.2
All affected versions: 0.0.1, 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.4.0, 0.4.1
All unaffected versions: 0.3.1, 0.4.2, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4