CVE-2021-28875

HIGH

Rust < 1.50.0 - Buffer Overflow

Title source: rule

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.

Scores

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

Classification

CWE
CWE-252
Status published

Affected Products (1)

rust-lang/rust < 1.50.0

Timeline

Published Apr 11, 2021
Tracked Since Feb 18, 2026