Files
vuln-osv/data/crates.io/RUSTSEC-2021-0008.json
T

1 line
1.5 KiB
JSON

{"schema_version":"1.7.3","id":"RUSTSEC-2021-0008","published":"2021-01-02T12:00:00Z","modified":"2023-11-08T04:05:16.796827Z","aliases":["CVE-2021-25905","GHSA-j8qq-58cr-8cc7"],"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.","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":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"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"}}],"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"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}