# CVE-2021-28877

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.51.0 (CNA); fix release not confirmed
- Status: published
- Published: 2021-04-11 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-28877, DEBIAN-CVE-2021-28877
- Record: https://cvemate.com/vulnerability/CVE-2021-28877 · JSON: https://cvemate.com/vulnerability/CVE-2021-28877/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.387%, percentile 73.198%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian rustc (Debian): \< 1.53.0+dfsg1-1
- ubuntu rustc (Ubuntu): All versions (No fix recorded) \| \< 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2
- rust-lang rust: \< 1.51.0

## References

- <https://github.com/rust-lang/rust/pull/80670>
- <https://security.gentoo.org/glsa/202210-09>
- <https://ubuntu.com/security/CVE-2021-28877>
- <https://www.cve.org/CVERecord?id=CVE-2021-28877>
- <https://security-tracker.debian.org/tracker/CVE-2021-28877>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28877>

---

Data as of 2026-12-05T10:02:01.654Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
