CVE-2021-30457 Double-free in id-map
A double free vulnerability in the Rust id-map crate allows attackers to cause denial of service or potentially execute code via a panic in a Drop implementation.
- 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-30457?
CVE-2021-30457 is a critical use after free vulnerability in n/a, published on 7 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 id-map crate through 2021-02-26 for Rust. A double free can occur in remove_set upon a panic in a Drop impl.
Weakness: CWE-415
Which versions are affected by CVE-2021-30457?
2 open source packages ship an affected version, including id-map. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
id-map crates.io | All versions to 0.2.1 | None |
id-map crates.io | All versions to 0.2.1 | None |
Products include Id-Map Project Id-Map.
How do I fix CVE-2021-30457?
No fix has been published for CVE-2021-30457 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-30457 being exploited?
There is no known exploitation of CVE-2021-30457 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-rccq-j2m7-8fwr.