{"id":"CVE-2020-36512","aliases":["CVE-2020-36512","GHSA-hmx9-jm3v-33hv","GHSA-v938-qcc9-rwv8","RUSTSEC-2020-0154"],"related":[],"kind":"vulnerability","state":"published","title":"InputStream::read_exact : `Read` on uninitialized buffer causes UB","summary":"An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha detectado un problema en la crate buffoon versiones  hasta 31-12-2020 para Rust. La función InputStream::read_exact puede leer desde ubicaciones de memoria no inicializadas","source":"nvd"}],"published":"2020-12-31T12:00:00.000Z","modified":"2026-06-17T03:15:37.547Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.5.0"}],"ecosystem":"crates.io","package":"buffoon","purl":"pkg:cargo/buffoon","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.5.0"}],"ecosystem":"crates.io","package":"buffoon","purl":"pkg:cargo/buffoon","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"buffoon","purl":"pkg:cargo/buffoon","source":"rustsec"},{"ranges":[{"status":"affected","version":"0.5.0"}],"vendor":"buffoon_project","product":"buffoon","cpe":"cpe:2.3:a:buffoon_project:buffoon:0.5.0:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0154.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/buffoon/RUSTSEC-2020-0154.md","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/carllerche/buffoon/issues/2","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/carllerche/buffoon","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36512","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/buffoon","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36512","url":"https://www.cve.org/CVERecord?id=CVE-2020-36512","licence":"CVE Terms of Use","modified":"2024-08-04T17:30:08.224Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hmx9-jm3v-33hv","url":"https://github.com/advisories/GHSA-hmx9-jm3v-33hv","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:47.114Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v938-qcc9-rwv8","url":"https://github.com/advisories/GHSA-v938-qcc9-rwv8","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:47.114Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0154","url":"https://rustsec.org/advisories/RUSTSEC-2020-0154.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:47.114Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36512","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36512","licence":"Public domain","modified":"2026-06-17T03:15:37.547Z"}],"updatedAt":"2026-11-25T22:57:58.558Z","epss":{"score":0.0123,"percentile":0.69769,"date":"2026-12-01T12:00:22.000Z"}}