{"id":"CVE-2021-25905","aliases":["EUVD-2021-1770","GHSA-j8qq-58cr-8cc7","RUSTSEC-2021-0008"],"status":"published","title":"Out of bounds read in bra","description":"An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01662,"percentile":0.76898,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125","CWE-908"],"published":"2021-01-02T12:00:00Z","modified":"2026-06-17T03:42:33Z","fixes":[{"ecosystem":"crates.io","package":"bra","fixed_in":["0.1.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"bra","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"bra","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"bra","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.1"}]}]}],"products":[{"vendor":"bra_project","product":"bra"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0008.html","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25905","tags":["advisory"]},{"url":"https://github.com/Enet4/bra-rs/issues/1","tags":["web","report"]},{"url":"https://github.com/Enet4/bra-rs/commit/aabf5562f8c6374ab30f615b28e0cff9b5c79e5f","tags":["web"]},{"url":"https://github.com/advisories/GHSA-j8qq-58cr-8cc7"},{"url":"https://github.com/Enet4/bra-rs","tags":["package"]},{"url":"https://crates.io/crates/bra","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-25905","description":"An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.","status":"published","published":"2021-01-22T09:02:39Z","modified":"2024-08-03T20:11:28.439Z","updated_at":"2026-11-02T14:32:59.430294Z"}],"euvd":[{"id":"EUVD-2021-1770","description":"An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.","status":"published","published":"2021-01-22T09:02:39Z","modified":"2024-08-03T20:11:28Z","updated_at":"2026-11-03T03:24:51.962182Z"}],"ghsa":[{"id":"GHSA-j8qq-58cr-8cc7","title":"Out of bounds read in bra","description":"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.","status":"published","published":"2021-08-25T20:52:53Z","modified":"2023-04-06T21:26:44Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"cwes":["CWE-125","CWE-908"],"updated_at":"2026-11-02T14:36:49.768564Z"}],"nvd":[{"id":"CVE-2021-25905","description":"An issue was discovered in the bra crate before 0.1.1 for Rust. It lacks soundness because it can read uninitialized memory.","status":"published","published":"2021-01-26T18:16:22.553Z","modified":"2026-06-17T03:42:33.303Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:06:49.660551Z"}],"osv":[{"id":"GHSA-j8qq-58cr-8cc7","title":"Out of bounds read in bra","description":"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.","status":"published","published":"2021-08-25T20:52:53Z","modified":"2023-11-08T04:05:16.796827Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"cwes":["CWE-125","CWE-908"],"updated_at":"2026-11-02T15:46:50.336262Z"},{"id":"RUSTSEC-2021-0008","title":"reading on uninitialized buffer can cause UB (`impl\u003cR\u003e BufRead for GreedyAccessReader\u003cR\u003e`)","description":"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.","status":"published","published":"2021-01-02T12:00:00Z","modified":"2023-11-08T04:05:16.796827Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
