{"id":"UBUNTU-CVE-2021-27378","details":"An issue was discovered in the rand_core crate before 0.6.2 for Rust. Because read_u32_into and read_u64_into mishandle certain buffer-length checks, a random number generator may be seeded with too little data.","modified":"2026-05-20T16:04:51.246155459Z","published":"2021-02-18T04:15:00Z","upstream":["CVE-2021-27378"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-27378"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2021-0023.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-27378"}],"affected":[{"package":{"name":"rust-rand-core","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-rand-core?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.0-1","0.5.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rand-core+getrandom-dev","binary_version":"0.5.1-1"},{"binary_name":"librust-rand-core+serde-dev","binary_version":"0.5.1-1"},{"binary_name":"librust-rand-core+std-dev","binary_version":"0.5.1-1"},{"binary_name":"librust-rand-core-dev","binary_version":"0.5.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27378.json"}},{"package":{"name":"rust-rand-core","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rust-rand-core?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.1-1","0.6.3-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rand-core+getrandom-dev","binary_version":"0.6.3-2"},{"binary_name":"librust-rand-core+serde-dev","binary_version":"0.6.3-2"},{"binary_name":"librust-rand-core+std-dev","binary_version":"0.6.3-2"},{"binary_version":"0.6.3-2","binary_name":"librust-rand-core-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27378.json"}},{"package":{"name":"rust-rand-core","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-rand-core?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.3-2","0.6.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rand-core+getrandom-dev","binary_version":"0.6.4-1"},{"binary_name":"librust-rand-core+serde-dev","binary_version":"0.6.4-1"},{"binary_name":"librust-rand-core+std-dev","binary_version":"0.6.4-1"},{"binary_version":"0.6.4-1","binary_name":"librust-rand-core-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27378.json"}},{"package":{"name":"rust-rand-core","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-rand-core?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.4-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rand-core+getrandom-dev","binary_version":"0.6.4-2"},{"binary_name":"librust-rand-core+serde-dev","binary_version":"0.6.4-2"},{"binary_version":"0.6.4-2","binary_name":"librust-rand-core+std-dev"},{"binary_name":"librust-rand-core-dev","binary_version":"0.6.4-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27378.json"}},{"package":{"name":"rust-rand-core","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-rand-core?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.4-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rand-core+getrandom-dev","binary_version":"0.6.4-2"},{"binary_name":"librust-rand-core+serde-dev","binary_version":"0.6.4-2"},{"binary_name":"librust-rand-core+std-dev","binary_version":"0.6.4-2"},{"binary_version":"0.6.4-2","binary_name":"librust-rand-core-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27378.json"}}],"schema_version":"1.7.5","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"}]}