{"id":"CVE-2021-28875","aliases":["CVE-2021-28875"],"related":[],"kind":"vulnerability","state":"published","title":"In the standard library in Rust before 1.50.0, readtoend() does not validate the return value from Read in an unsafe context.","summary":"In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow.","source":"cvelist"},{"lang":"es","text":"En la biblioteca estándar de Rust versiones anteriores a 1.50.0, la función read_to_end() no comprueba el valor de retorno de Read en un contexto no seguro.&#xa0;Este bug podría conllevar a un desbordamiento de búfer","source":"nvd"}],"published":"2021-04-11T00:00:00.000Z","modified":"2026-06-17T03:47:00.340Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-252"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.50.0"}],"vendor":"rust-lang","product":"rust","cpe":"cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rust-lang/rust/issues/80894","tags":["exploit","issue-tracking","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rust-lang/rust/pull/80895","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202210-09","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28875","url":"https://www.cve.org/CVERecord?id=CVE-2021-28875","licence":"CVE Terms of Use","modified":"2024-08-03T21:55:11.584Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28875","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28875","licence":"Public domain","modified":"2026-06-17T03:47:00.340Z"}],"updatedAt":"2026-11-25T22:58:00.703Z","epss":{"score":0.02122,"percentile":0.82411,"date":"2026-12-01T12:00:22.000Z"}}