CVE-2021-28876

rust: panic safety issue in Zip implementation

Published Apr 11, 2021 CVSS 3.1 · 5.3 Medium EPSS 1.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-15529 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.
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00084}

epss

{'score': 0.00089}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 9:55 PM
Reserved
Mar 19, 2021, 12:00 AM
Status
Modified
Published
Apr 11, 2021, 8:15 PM
Modified
Jun 17, 2026, 3:47 AM
Severity
Moderate
Public date
Feb 4, 2021, 12:00 AM