CVE-2020-35862 Use after free and double free in bitvec
A use-after-free or double free vulnerability in the Rust bitvec crate allows attackers to potentially execute arbitrary code or cause a crash.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-35862?
CVE-2020-35862 is a critical use after free vulnerability in n/a, published on 31 Dec 2020. 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 bitvec crate before 0.17.4 for Rust. BitVec to BitBox conversion leads to a use-after-free or double free.
Which versions are affected by CVE-2020-35862?
3 open source packages ship an affected version, including bitvec. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bitvec crates.io | From 0.11.0 | 0.17.4 |
bitvec crates.io | From 0.11.0 | 0.17.4 |
bitvec crates.io | From 0.11.0 | 0.17.4 |
Products include Bitvec Project Bitvec.
How do I fix CVE-2020-35862?
Upgrade bitvec to 0.17.4 or later.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2020-35862 being exploited?
There is no known exploitation of CVE-2020-35862 in the wild and no public exploit code.
Sources
Also known as GHSA-7cjc-hvxf-gqh7, RUSTSEC-2020-0007.