{"id":"CVE-2021-25905","aliases":["CVE-2021-25905","GHSA-j8qq-58cr-8cc7","RUSTSEC-2021-0008"],"related":[],"kind":"vulnerability","state":"published","title":"Out of bounds read in bra","summary":"An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.","source":"cvelist"},{"lang":"en","text":"Buffered Random Access (BRA) provides easy random memory access to a sequential source of data in Rust. This is achieved by greedily retaining all memory read from a given source. Buffered Random Access (BRA) provides easy random memory access to a sequential source of data in Rust. An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate bra versiones anteriores a 0.1.1 para Rust.&#xa0;Carece de solidez porque puede leer la memoria no inicializada","source":"nvd"}],"published":"2021-01-02T12:00:00.000Z","modified":"2026-06-17T03:42:33.303Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.1"}],"ecosystem":"crates.io","package":"bra","purl":"pkg:cargo/bra","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.1.1"}],"ecosystem":"crates.io","package":"bra","purl":"pkg:cargo/bra","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.1.1"}],"vendor":"bra_project","product":"bra","cpe":"cpe:2.3:a:bra_project:bra:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0008.html","tags":["advisory","exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25905","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Enet4/bra-rs/issues/1","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Enet4/bra-rs/commit/aabf5562f8c6374ab30f615b28e0cff9b5c79e5f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Enet4/bra-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/bra","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25905","url":"https://www.cve.org/CVERecord?id=CVE-2021-25905","licence":"CVE Terms of Use","modified":"2024-08-03T20:11:28.439Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j8qq-58cr-8cc7","url":"https://github.com/advisories/GHSA-j8qq-58cr-8cc7","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:16.796Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0008","url":"https://rustsec.org/advisories/RUSTSEC-2021-0008.html","licence":"CC0-1.0","modified":"2023-11-08T04:05:16.796Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25905","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25905","licence":"Public domain","modified":"2026-06-17T03:42:33.303Z"}],"updatedAt":"2026-11-25T22:57:59.725Z","epss":{"score":0.01662,"percentile":0.77401,"date":"2026-12-01T12:00:22.000Z"}}