CVE-2021-29940 Double free in through

Critical 9.8 Published Updated

A double free vulnerability in the Rust through crate allows attackers to cause denial of service or potentially execute code via a panic in the map function.

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-29940?

CVE-2021-29940 is a critical use after free 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 through crate through 2021-02-18 for Rust. There is a double free (in through and through_and) upon a panic of the map function.

Weakness: CWE-415

Which versions are affected by CVE-2021-29940?

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

PackageAffectedFixed in
through crates.ioAll versions to 0.1.0None
through crates.ioAll versions to 0.1.0None
through crates.ioFrom 0.0.0-0None

Products include Through Project Through.

How do I fix CVE-2021-29940?

No fix has been published for CVE-2021-29940 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-29940 being exploited?

There is no known exploitation of CVE-2021-29940 in the wild and no public exploit code.

Sources

Also known as GHSA-5hpj-m323-cphm, RUSTSEC-2021-0049.

Is CVE-2021-29940 in your software?

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

Check your SBOMs for free