Files
advisory-db/packages/rand_core.json
T
2025-10-27 16:49:06 +00:00

158 lines
4.2 KiB
JSON

[
{
"id": "RUSTSEC-2021-0023",
"modified": "2023-06-13T13:10:24Z",
"published": "2021-02-12T12:00:00Z",
"aliases": [
"CVE-2021-27378",
"GHSA-w7j2-35mf-95p7"
],
"related": [],
"summary": "Incorrect check on buffer length when seeding RNGs",
"details": "Summary: rand_core::le::read_u32_into and read_u64_into have incorrect checks on the source buffer length, allowing the destination buffer to be under-filled.\n\nImplications: some downstream RNGs, including Hc128Rng (but not the more widely used ChaCha*Rng), allow seeding using the SeedableRng::from_seed trait-function with too short keys.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "rand_core",
"purl": "pkg:cargo/rand_core"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"rand_core::le::read_u32_into",
"rand_core::le::read_u64_into"
]
},
"affected_functions": null
},
"database_specific": {
"categories": [
"crypto-failure"
],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.6.0"
},
{
"fixed": "0.6.2"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/rand_core"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0023.html"
},
{
"type": "WEB",
"url": "https://github.com/rust-random/rand/pull/1096"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2019-0035",
"modified": "2021-10-19T22:14:35Z",
"published": "2019-04-19T12:00:00Z",
"aliases": [
"GHSA-mmc9-pwm7-qj5w",
"CVE-2020-25576"
],
"related": [],
"summary": "Unaligned memory access",
"details": "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.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "rand_core",
"purl": "pkg:cargo/rand_core"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"rand_core::BlockRng::fill_bytes",
"rand_core::BlockRng::next_u64"
]
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": "unsound"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.3.1"
},
{
"introduced": "0.4.0-0"
},
{
"fixed": "0.4.2"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/rand_core"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2019-0035.html"
},
{
"type": "WEB",
"url": "https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]