Description
In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.
Published: 2021-04-11
Score: 7.5 High
EPSS: 1.0% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2021-15531 In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.
History

Wed, 16 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00107}

epss

{'score': 0.00125}


Subscriptions

Fedoraproject Fedora
Redhat Devtools Enterprise Linux
Rust-lang Rust
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

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

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

Link: CVE-2021-28878

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

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

Modified: 2024-11-21T06:00:21.513

Link: CVE-2021-28878

cve-icon Redhat

Severity : Moderate

Publid Date: 2021-03-07T00:00:00Z

Links: CVE-2021-28878 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses