CVE-2021-28875: Rust-Lang Rust

High severity, CVSS 7.5. EPSS: 2.1% chance of exploitation in the next 30 days.

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.

Affected products

  • Rust-Lang Rust: before 1.50.0 (fixed in 1.50.0)

Published 2021-04-11. Last modified 2026-06-17.