CVE-2021-28878

HIGH

Rust < 1.52.0 - Memory Safety Violation via Zip Iterator next_back() and next()

Title source: llm
STIX 2.1

Description

In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

Scores

CVSS v3 7.5
EPSS 0.0200
EPSS Percentile 78.2%
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 (4)
fedoraproject/fedora 32
fedoraproject/fedora 33
fedoraproject/fedora 34
rust-lang/rust < 1.52.0
Published Apr 11, 2021
Tracked Since Feb 18, 2026