{"id":"GHSA-mmc9-pwm7-qj5w","revision":"4d601a70f22f44fb9dcbb4b305829f21","records":[{"revision":"4d601a70f22f44fb9dcbb4b305829f21","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-mmc9-pwm7-qj5w","aliases":["CVE-2020-25576","RUSTSEC-2019-0035"],"title":"Unaligned memory access in rand_core","description":"### Impact\nAffected 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.\n\n### Patches\nThe flaw was corrected by Ralf Jung and Diggory Hardy for `rand_core >= 0.4.2`.\n\n### Workarounds\nNone.\n\n### References\nSee [Rand's changelog](https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06).\n\n### For more information\nIf 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).\n\n","state":0,"publishedAt":"2021-08-25T20:56:50+00:00","modifiedAt":"2023-11-08T04:03:10.161773+00:00","affected":[{"ecosystem":"crates.io","name":"rand_core","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.4.0"},{"kind":"fixed","version":"0.4.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"rand_core","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.3.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["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"],"sourceUrl":"https://github.com/advisories/GHSA-mmc9-pwm7-qj5w","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mmc9-pwm7-qj5w","identifiers":["GHSA-mmc9-pwm7-qj5w","CVE-2020-25576","RUSTSEC-2019-0035"]},"retained":false,"historicalAffected":[]}],"coverage":[]}