{"id":"CVE-2020-36512","aliases":["EUVD-2022-0699","GHSA-hmx9-jm3v-33hv","GHSA-v938-qcc9-rwv8","RUSTSEC-2020-0154"],"status":"published","title":"InputStream::read_exact : `Read` on uninitialized buffer causes UB","description":"An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.0123,"percentile":0.69356,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-908"],"published":"2020-12-31T12:00:00Z","modified":"2026-06-17T03:15:37Z","affected":[{"source":"ghsa","ecosystem":"crates.io","package":"buffoon","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"buffoon","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"buffoon","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"buffoon","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"buffoon","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"products":[{"vendor":"buffoon_project","product":"buffoon"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0154.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/buffoon/RUSTSEC-2020-0154.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/carllerche/buffoon/issues/2","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-hmx9-jm3v-33hv"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36512","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-v938-qcc9-rwv8"},{"url":"https://github.com/carllerche/buffoon","tags":["package"]},{"url":"https://crates.io/crates/buffoon","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36512","description":"An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:53:57Z","modified":"2024-08-04T17:30:08.224Z","updated_at":"2026-11-02T14:35:55.128961Z"}],"euvd":[{"id":"EUVD-2022-0699","description":"An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:53:57Z","modified":"2024-08-04T17:30:08Z","updated_at":"2026-11-03T03:07:02.510914Z"}],"ghsa":[{"id":"GHSA-v938-qcc9-rwv8","title":"Use of Uninitialized Resource in buffoon.","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation.\nArbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.","status":"published","published":"2022-01-06T22:17:09Z","modified":"2023-06-13T17:06:30Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:36:53.654352Z"},{"id":"GHSA-hmx9-jm3v-33hv","title":"InputStream::read_exact : `Read` on uninitialized buffer causes UB","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation.\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","status":"published","published":"2022-06-16T23:46:08Z","modified":"2023-06-13T17:07:54Z","updated_at":"2026-11-02T14:36:53.654352Z"}],"nvd":[{"id":"CVE-2020-36512","description":"An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.","status":"published","published":"2021-12-27T00:15:08.337Z","modified":"2026-06-17T03:15:37.547Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:06:46.101987Z"}],"osv":[{"id":"GHSA-v938-qcc9-rwv8","title":"Use of Uninitialized Resource in buffoon.","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation.\nArbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.","status":"published","published":"2022-01-06T22:17:09Z","modified":"2023-11-08T04:03:47.114437Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T15:46:56.981655Z"},{"id":"GHSA-hmx9-jm3v-33hv","title":"InputStream::read_exact : `Read` on uninitialized buffer causes UB","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation.\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","status":"published","published":"2022-06-16T23:46:08Z","modified":"2023-11-08T04:03:47.114437Z","updated_at":"2026-11-02T15:46:49.28217Z"},{"id":"RUSTSEC-2020-0154","title":"InputStream::read_exact : `Read` on uninitialized buffer causes UB","description":"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.","status":"published","published":"2020-12-31T12:00:00Z","modified":"2023-11-08T04:03:47.114437Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
