All vulnerabilities

Servers and applications

CVE-2021-28875

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.

Severity
High 7.5
Published
11 Apr 2021
Last changed
17 Jun 2026
Added to UpHeron
22 Oct 2026
Fixed in
1.50.0
Sources
NVD

Affected software

SoftwareAffected versions
RustServers and applications · cpe:a:rust-lang:rust
  • Every version before 1.50.0

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-28875
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-28875