{"id":"RUSTSEC-2021-0016","summary":"`IoReader::read()`: user-provided `Read` on uninitialized buffer may cause UB","details":"Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation.\n\nArbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.\nReading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n\nThe flaw was fixed in commit 599313b by zero-initializing the buffer (via `self.buf.resize(len, 0)`) before passing it to `Read`.","aliases":["CVE-2021-26952","GHSA-9f5r-vqm5-m342"],"modified":"2023-11-08T04:05:22.896074Z","published":"2021-01-26T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/ms3d"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0016.html"},{"type":"REPORT","url":"https://github.com/andrewhickman/ms3d/issues/1"}],"affected":[{"package":{"name":"ms3d","ecosystem":"crates.io","purl":"pkg:cargo/ms3d"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.3"}]}],"ecosystem_specific":{"affects":{"os":[],"arch":[],"functions":[]},"affected_functions":null},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0016.json","categories":["memory-exposure"],"informational":null,"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}}],"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:N"}]}