Unsafe Validation in read_to_end() Function in Rust Standard Library Prior to 1.50.0 Leading to Buffer Overflow

Unsafe Validation in read_to_end() Function in Rust Standard Library Prior to 1.50.0 Leading to Buffer Overflow

CVE-2021-28875 · HIGH Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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.

Learn more about our Web Application Penetration Testing UK.