All vulnerabilities

Servers and applications

CVE-2021-28877

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.

Severity
High 7.5
Published
11 Apr 2021
Last changed
17 Jun 2026
Added to UpHeron
22 Oct 2026
Fixed in
1.51.0
Sources
NVD

Affected software

SoftwareAffected versions
RustServers and applications · cpe:a:rust-lang:rust
  • Every version before 1.51.0

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-28877
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-28877