CVE-2021-29941 Out of bounds write in reorder
An out-of-bounds write in the Rust reorder crate allows attackers to cause memory corruption, potentially leading to code execution or crashes.
- 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-29941?
CVE-2021-29941 is a high-severity memory corruption vulnerability in n/a, published on 1 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the reorder crate through 2021-02-24 for Rust. swap_index has an out-of-bounds write if an iterator returns a len() that is too small.
Weakness: CWE-787
Which versions are affected by CVE-2021-29941?
2 open source packages ship an affected version, including reorder. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
reorder crates.io | All versions | 1.1.0 |
reorder crates.io | All versions | 1.1.0 |
Products include Reorder Project Reorder.
How do I fix CVE-2021-29941?
Upgrade reorder to 1.1.0 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-29941 being exploited?
There is no known exploitation of CVE-2021-29941 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-3h87-v52r-p9rg.