{"id":"RUSTSEC-2021-0017","summary":"`Read` on uninitialized buffer may cause UB (`impl Walue for Vec\u003cu8\u003e`)","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\nThis flaw was fixed in commit 8026286 by zero-initializing the buffer before handing to a user-provided `Read`.","aliases":["CVE-2021-26953","GHSA-fhvc-gp6c-h2wx"],"modified":"2023-11-08T04:05:22.958536Z","published":"2021-01-30T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/postscript"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0017.html"},{"type":"REPORT","url":"https://github.com/bodoni/postscript/issues/1"}],"affected":[{"package":{"name":"postscript","ecosystem":"crates.io","purl":"pkg:cargo/postscript"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.14.0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"os":[],"functions":[]}},"database_specific":{"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","categories":["memory-exposure"],"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0017.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"}]}