CVE-2021-28875Rust-lang Rust
High 7.5 No auth needed
Follow: this CVE · Rust-lang · Rust-lang Rust We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 83
- Auth required
- No
- Published
- Apr 11, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-252
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Rust.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rust-lang | rust | < 1.50.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Issue Tracking Patch
- github.com Patch Third Party Advisory
- security.gentoo.org Third Party Advisory