{"id":"RUSTSEC-2021-0008","summary":"reading on uninitialized buffer can cause UB (`impl\u003cR\u003e BufRead for GreedyAccessReader\u003cR\u003e`)","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.","aliases":["CVE-2021-25905","GHSA-j8qq-58cr-8cc7"],"modified":"2023-11-08T04:05:16.796827Z","published":"2021-01-02T12:00:00Z","database_specific":{"license":"CC0-1.0"},"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"}],"affected":[{"package":{"name":"bra","ecosystem":"crates.io","purl":"pkg:cargo/bra"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.1"}]}],"ecosystem_specific":{"affects":{"os":[],"arch":[],"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,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0008.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}