CVE-2021-28876
MEDIUMRust < 1.52.0 - Memory Safety Violation via Zip Iterator Panic
Title source: llmDescription
In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls __iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.
References (6)
Core 6
Core References
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202210-09
Exploit, Issue Tracking, Third Party Advisory
https://github.com/rust-lang/rust/issues/81740
Patch, Third Party Advisory
https://github.com/rust-lang/rust/pull/81741
Scores
CVSS v3
5.3
EPSS
0.0158
EPSS Percentile
72.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Details
CWE
CWE-755
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