{"id":"UBUNTU-CVE-2020-25576","details":"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.","modified":"2025-10-24T04:48:42Z","published":"2020-09-14T19:15:00Z","upstream":["CVE-2020-25576"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-25576"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2019-0035.html"},{"type":"REPORT","url":"https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-25576"}],"affected":[{"package":{"name":"rust-rand-core-0.2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-rand-core-0.2@0.2.2-2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.2-1","0.2.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rand-core-0.2+alloc-dev","binary_version":"0.2.2-2"},{"binary_name":"librust-rand-core-0.2+serde1-dev","binary_version":"0.2.2-2"},{"binary_name":"librust-rand-core-0.2+std-dev","binary_version":"0.2.2-2"},{"binary_name":"librust-rand-core-0.2-dev","binary_version":"0.2.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25576.json"}},{"package":{"name":"rust-rand-core-0.3","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-rand-core-0.3@0.3.0-2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.0-1","0.3.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rand-core-0.3+serde-derive-dev","binary_version":"0.3.0-2"},{"binary_name":"librust-rand-core-0.3+serde-dev","binary_version":"0.3.0-2"},{"binary_name":"librust-rand-core-0.3+serde1-dev","binary_version":"0.3.0-2"},{"binary_name":"librust-rand-core-0.3-dev","binary_version":"0.3.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25576.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}