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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2021-04-11T00:00:00

Updated: 2024-08-03T21:55:12.185Z

Reserved: 2021-03-19T00:00:00

Link: CVE-2021-28877

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2021-04-11T20:15:12.737

Modified: 2022-11-03T19:36:57.687

Link: CVE-2021-28877

cve-icon Redhat

Severity : Moderate

Publid Date: 2021-01-16T00:00:00Z

Links: CVE-2021-28877 - Bugzilla