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

75 lines
2.1 KiB
JSON

[
{
"id": "RUSTSEC-2021-0008",
"modified": "2023-06-13T13:10:24Z",
"published": "2021-01-02T12:00:00Z",
"aliases": [
"CVE-2021-25905",
"GHSA-j8qq-58cr-8cc7"
],
"related": [],
"summary": "reading on uninitialized buffer can cause UB (`impl<R> BufRead for GreedyAccessReader<R>`)",
"details": "Affected versions of this crate creates an uninitialized buffer and passes it to user-provided `Read` implementation.\n\nThis is unsound, because it allows safe Rust code to exhibit an undefined behavior (read from uninitialized memory).\n\nThe flaw was corrected in version 0.1.1 by zero-initializing a newly allocated buffer\nbefore handing it to a user-provided `Read` implementation.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "bra",
"purl": "pkg:cargo/bra"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [
"memory-exposure"
],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.1.1"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/bra"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0008.html"
},
{
"type": "REPORT",
"url": "https://github.com/Enet4/bra-rs/issues/1"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]