CVE-2021-28877: Rust-Lang Rust
High severity, CVSS 7.5. EPSS: 1.4% chance of exploitation in the next 30 days.
In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.
Affected products
- Rust-Lang Rust: before 1.51.0 (fixed in 1.51.0)
Published 2021-04-11. Last modified 2026-06-17.