CVE-2020-35862 Use after free and double free in bitvec

Critical 9.8 Published Updated

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.

Weakness: CWE-416, CWE-415

Which versions are affected by CVE-2020-35862?

3 open source packages ship an affected version, including bitvec. It affects 1 product.

PackageAffectedFixed in
bitvec crates.ioFrom 0.11.00.17.4
bitvec crates.ioFrom 0.11.00.17.4
bitvec crates.ioFrom 0.11.00.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.

Is CVE-2020-35862 in your software?

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

Check your SBOMs for free