Vulnerability record · CVE-2021-28877 · published 11 April 2021
CVE-2021-28877: Rust-lang rust memory buffer overflow vulnerability
Rust Lang · Rust
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.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/rust-lang/rust/pull/80670 | Issue TrackingPatchThird Party Advisory |
| https://security.gentoo.org/glsa/202210-09 | Third Party Advisory |
| https://github.com/rust-lang/rust/pull/80670 | Issue TrackingPatchThird Party Advisory |
| https://security.gentoo.org/glsa/202210-09 | Third Party Advisory |
Track CVE-2021-28877 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-28877), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.