Vulnerability in Rust-Lang Rust
CVE-2021-28876
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.016, 75.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rust-Lang Rust
- Fedoraproject Fedora — versions 32, 33, 34
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Qwaz/rust-cve). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/rust-lang/rust/issues/81740 (Exploit, Third Party Advisory, Issue Tracking)
- github.com/rust-lang/rust/pull/81741 (Patch, Third Party Advisory)
- FEDORA-2021-d0ba1901ca (vendor-advisory)
- FEDORA-2021-b1ba54add6 (vendor-advisory)
- FEDORA-2021-d7f74f0250 (vendor-advisory)
- GLSA-202210-09 (vendor-advisory, Third Party Advisory)