CVE-2021-28878 Memory corruption in n/a

High 7.5 Published Updated

A memory safety violation in the Rust standard library's Zip implementation allows attackers to potentially execute arbitrary code or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-28878?

CVE-2021-28878 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 11 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-119

Which versions are affected by CVE-2021-28878?

It affects 2 products.

Products include Fedoraproject Fedora, Rust-Lang Rust.

How do I fix CVE-2021-28878?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-28878 being exploited?

There is no known exploitation of CVE-2021-28878 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-28878, GHSA-p39x-6cjx-6mpm, UBUNTU-CVE-2021-28878.

Is CVE-2021-28878 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free