{"id":"EUVD-2021-1804","revision":null,"records":[{"revision":"9dc4bd10305f4cf987a0967970c81214","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2020-25576","aliases":[],"title":"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.","description":"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.","state":0,"publishedAt":"2020-09-14T18:16:00+00:00","modifiedAt":"2024-08-04T15:33:05.759+00:00","affected":[{"ecosystem":"Vendor product","name":"n/a","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"n/a\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"n/a\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2019-0035.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-25576","license":"CVE Program Terms of Use","key":"cve-program:CVE-2020-25576","identifiers":["CVE-2020-25576"]},"retained":false,"historicalAffected":[]},{"revision":"c20f649951c747b8938b0808a4c5d5da","observedAt":"2026-11-20T06:27:32.543+00:00","statement":{"source":"euvd","id":"EUVD-2021-1804","aliases":["CVE-2020-25576","GHSA-mmc9-pwm7-qj5w"],"title":"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.","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2019-0035.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1804","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Sep 14, 2020, 6:16:00 PM","dateUpdated":"Aug 4, 2024, 3:33:05 PM"},"relatedAdvisories":[{"id":"msrc_CVE-2020-25576","title":"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.","vulnerabilityIds":["CVE-2020-25576"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-1804","identifiers":["EUVD-2021-1804","CVE-2020-25576","GHSA-mmc9-pwm7-qj5w"]},"retained":false,"historicalAffected":[]},{"revision":"dcca33b0bfa24d8dbe5ac93b2f7e906e","observedAt":"2026-10-24T16:17:26.926+00:00","statement":{"source":"nvd","id":"CVE-2020-25576","aliases":[],"title":"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.","description":"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.","state":0,"publishedAt":"2020-09-14T19:15:11.473+00:00","modifiedAt":"2026-08-19T19:21:55.07+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"severity":"HIGH"}],"references":["https://rustsec.org/advisories/RUSTSEC-2019-0035.html"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-25576","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-704"],"productCriteria":["cpe:2.3:a:rust-random:rand:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2020-09-14T19:15:11.473","lastModified":"2026-08-19T19:21:55.070"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2020-25576","identifiers":["CVE-2020-25576"]},"retained":false,"historicalAffected":[]},{"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":[]},{"revision":"20d50b5df66d47bfb75056ddff8032bd","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2019-0035","aliases":["CVE-2020-25576","GHSA-mmc9-pwm7-qj5w"],"title":"Unaligned memory access","description":"Affected versions of this crate violated alignment when casting byte slices to\ninteger slices, resulting in undefined behavior.\n\nThe flaw was corrected by Ralf Jung and Diggory Hardy.","state":0,"publishedAt":"2019-04-19T12:00:00+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.0.0-0"},{"kind":"fixed","version":"0.3.1"},{"kind":"introduced","version":"0.4.0-0"},{"kind":"fixed","version":"0.4.2"}]}],"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}],"references":["https://crates.io/crates/rand_core","https://rustsec.org/advisories/RUSTSEC-2019-0035.html","https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2019-0035","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2019-0035","identifiers":["RUSTSEC-2019-0035","CVE-2020-25576","GHSA-mmc9-pwm7-qj5w"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-21T07:46:06.8655371+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-21T07:46:06.8655371+00:00","lastSuccessAt":"2026-11-21T07:46:07.039193+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:07.0391938+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-1d6c61c44cf3e269b6d60ed2fe0a3aa1f7e55445c7f170f16f2fa063bbf73db3-b07c93c139f97fba27d71cafc20e269e41586a757c4211d992500b722157b2f9","complete":true,"records":430075,"lastAttemptAt":"2026-11-21T07:46:06.4897579+00:00","lastSuccessAt":"2026-11-21T07:46:06.4617954+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:06.4897579+00:00","snapshotPublishedAt":"2026-11-21T07:29:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e612fd0d449a40f2a977c336d751f941","complete":false,"records":13919,"lastAttemptAt":"2026-11-21T07:54:42.0830605+00:00","lastSuccessAt":"2026-11-21T07:54:41.06+00:00","error":"124 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-21T07:54:41.06+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13843,"expectedIdentifiers":13967,"failedIdentifiers":124},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-21T07:46:06.8655371+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-21T07:46:06.8655371+00:00","lastSuccessAt":"2026-11-21T07:46:07.0399452+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:07.0399455+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-425238ad85424e458b64cb1752d2502a","complete":true,"records":13931,"lastAttemptAt":"2026-11-21T07:46:08.2800032+00:00","lastSuccessAt":"2026-11-21T07:46:08.274+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:08.274+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13967,"expectedIdentifiers":13967,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-99c78bee98bf8a60587f33f568944b12d3afe17ecc41437c57b47e2204cce04d","complete":true,"records":9989,"lastAttemptAt":"2026-11-21T07:46:06.817441+00:00","lastSuccessAt":"2026-11-21T00:54:34.963487+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:06.817441+00:00","snapshotPublishedAt":"2026-11-21T00:03:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-21T07:46:06.5441824+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:06.5441824+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-2c09f95d48acb57436aa1dd2f0eec6f651dce8d1621b6978554be0f0b129faa4","complete":true,"records":3209,"lastAttemptAt":"2026-11-21T07:46:06.8307016+00:00","lastSuccessAt":"2026-11-20T23:48:55.8565941+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:06.8307016+00:00","snapshotPublishedAt":"2026-11-20T23:48:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-14439d295cda6d6706536c3efcb7f193a982609cf031218db7fa9ef26fdcc725","complete":true,"records":232850,"lastAttemptAt":"2026-11-21T07:46:06.7077998+00:00","lastSuccessAt":"2026-11-21T03:47:49.8245357+00:00","error":null,"lastVerifiedAt":"2026-11-21T07:46:06.7077998+00:00","snapshotPublishedAt":"2026-11-21T03:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}