CVE-2021-28875

HIGH

Rust < 1.50.0 - Buffer Overflow via Unchecked Return Value in read_to_end()

Title source: llm
STIX 2.1

Description

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.

References (3)

Core 3
Core References
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202210-09
Exploit, Issue Tracking, Patch, Third Party Advisory
https://github.com/rust-lang/rust/issues/80894
Patch, Third Party Advisory
https://github.com/rust-lang/rust/pull/80895

Scores

CVSS v3 7.5
EPSS 0.0214
EPSS Percentile 79.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-252
Status published
Products (1)
rust-lang/rust < 1.50.0
Published Apr 11, 2021
Tracked Since Feb 18, 2026