CVE-2021-28877

HIGH

Rust < 1.51.0 - Memory Safety Violation via Zip Iterator Implementation

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202210-09
Issue Tracking, Patch, Third Party Advisory
https://github.com/rust-lang/rust/pull/80670

Scores

CVSS v3 7.5
EPSS 0.0139
EPSS Percentile 68.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-119
Status published
Products (1)
rust-lang/rust < 1.51.0
Published Apr 11, 2021
Tracked Since Feb 18, 2026