« List of all CVEs

CVE-2021-28876

Published: 4/11/2021 Last updated: 8/3/2024 Reserved: 3/19/2021

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.

CNA assigner: mitre (8254265b-2729-46b6-b9e3-3dfca2d5bfca) Requested by: n/a

Opam packages affected (6)

conf-rust conf-rust-2018 conf-rust-2021 conf-rust-2024 conf-rust-llvm conf-rust-wasm

Products affected (1)

Product Vendor Version
n/a n/a < 00d3b4f54582d4e4a02cda5886bb336eeab268cc

References (12)