CVE-2021-28876

Medium

Description

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductRust
PublishedApr 11, 2021
First seenApr 11, 2021

How to fix

Affected products

ProductAffected versionsFixed in
rust-lang rustv < 1.52.01.52.0
fedoraproject fedora32, 33, 34—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.