Severity
5.3MEDIUM
EPSS
0.4%
top 38.12%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedApr 11
Latest updateMay 24

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitability: 3.9 | Impact: 1.4

Affected Packages2 packages

NVDrust-lang/rust< 1.52.0
Debianrustc< 1.53.0+dfsg1-1+2

Also affects: Fedora 32, 33, 34

Patches

🔴Vulnerability Details

3
GHSA
GHSA-f266-7p9x-6359: In the standard library in Rust before 12022-05-24
OSV
CVE-2021-28876: In the standard library in Rust before 12021-04-11
CVEList
CVE-2021-28876: In the standard library in Rust before 12021-04-11

📋Vendor Advisories

3
Microsoft
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 panics2021-04-13
Red Hat
rust: panic safety issue in Zip implementation2021-02-04
Debian
CVE-2021-28876: rustc - In the standard library in Rust before 1.52.0, the Zip implementation has a pani...2021
CVE-2021-28876 (MEDIUM CVSS 5.3) | In the standard library in Rust bef | cvebase.io