Live threats

All CVEs / Rust-lang

CVE-2021-28876Rust-lang Rust

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
No
Published
Apr 11, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-755
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rust.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
rust-langrust< 1.52.0
fedoraprojectfedora32
fedoraprojectfedora33
fedoraprojectfedora34

Official sources

References

Links published by the sources. Open them with care.