Vulnerability database / CVE-2021-28875
CVE-2021-28875
HIGH 7.5 CVSS 3.1 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.
Published 11 Apr 2021
Last modified 17 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-252 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 5.0
AV:N/AC:L/Au:N/C:N/I:N/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
rust-lang
rustcpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*
< 1.50.0
1.50.0
References
History
25 Nov 2026 20:32 UTC · NVD: first stored (published 11 Apr 2021)