First published: Sun Apr 11 2021(Updated: )
In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Rust-lang Rust | <1.51.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-28877 is a vulnerability in the standard library of Rust before version 1.51.0 that can lead to a memory safety violation.
CVE-2021-28877 has a severity rating of 7.5 (high).
CVE-2021-28877 affects Rust versions up to (excluding) 1.51.0.
The CWE ID for CVE-2021-28877 is CWE-119.
To fix CVE-2021-28877, upgrade Rust to version 1.51.0 or later.