{"id":"RUSTSEC-2021-0029","summary":"Tape::take_bytes exposes uninitialized memory to a user-provided Read","details":"Affected versions of this crate passed an unininitialized buffer to a\nuser-provided `Read` instance in `Tape::take_bytes`.\n\nThis can result in safe `Read` implementations reading from the uninitialized\nbuffer leading to undefined behavior.\n\nThe flaw was corrected in commit `1f2dc7f37dd` by removing the unsafe block\nand zero-initializing the buffer.","aliases":["CVE-2021-28030","GHSA-v7q4-97x4-4qw2"],"modified":"2023-11-08T04:05:27.666883Z","published":"2021-02-17T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/truetype"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0029.html"},{"type":"REPORT","url":"https://github.com/bodoni/truetype/issues/11"}],"affected":[{"package":{"name":"truetype","ecosystem":"crates.io","purl":"pkg:cargo/truetype"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.30.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:N","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0029.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:N"}]}