VulnerabilityModified
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.
HIGH 7.5EPSS 2.12%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.12%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 2.12% probability · 81th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-252
- Affected
- rust-lang/rust
- Source
- cve@mitre.org
References
- https://github.com/rust-lang/rust/issues/80894Exploit, Issue Tracking, Patch, Third Party Advisory
- https://github.com/rust-lang/rust/pull/80895Patch, Third Party Advisory
- https://security.gentoo.org/glsa/202210-09Third Party Advisory
- https://github.com/rust-lang/rust/issues/80894Exploit, Issue Tracking, Patch, Third Party Advisory
- https://github.com/rust-lang/rust/pull/80895Patch, Third Party Advisory
- https://security.gentoo.org/glsa/202210-09Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.