CVE-2021-31996 Double free in algorithmica
A double free vulnerability in the Rust algorithmica crate allows attackers to cause denial of service or potentially execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-31996?
CVE-2021-31996 is a high-severity use after free vulnerability in n/a, published on 3 May 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 algorithmica crate through 2021-03-07 for Rust. There is a double free in merge_sort::merge().
Weakness: CWE-415
Which versions are affected by CVE-2021-31996?
3 open source packages ship an affected version, including algorithmica. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
algorithmica crates.io | All versions to 0.1.8 | None |
algorithmica crates.io | All versions to 0.1.8 | None |
algorithmica crates.io | From 0.0.0-0 | None |
Products include Algorithmica Project Algorithmica.
How do I fix CVE-2021-31996?
No fix has been published for CVE-2021-31996 yet. Limit exposure of the affected software until one is available.
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-2021-31996 being exploited?
There is no known exploitation of CVE-2021-31996 in the wild and no public exploit code.
Sources
Also known as GHSA-jh37-772x-4hpw, RUSTSEC-2021-0053.