CVE-2020-35874 Use after free in internment

High 8.1 Published Updated

A race condition in the Rust internment crate leads to a use-after-free, potentially allowing attackers to execute arbitrary code or cause crashes.

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

CVE-2020-35874 is a high-severity 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 internment crate through 2020-05-28 for Rust. ArcIntern::drop has a race condition and resultant use-after-free.

Weakness: CWE-416, CWE-362

Which versions are affected by CVE-2020-35874?

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

PackageAffectedFixed in
internment crates.ioFrom 0.3.120.4.0
internment crates.ioFrom 0.3.120.4.0
internment crates.ioFrom 0.3.120.4.0

Products include Internment Project Internment.

How do I fix CVE-2020-35874?

Upgrade internment to 0.4.0 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-35874 being exploited?

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

Sources

Also known as GHSA-96w3-p368-4h8c, RUSTSEC-2020-0017.

Is CVE-2020-35874 in your software?

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

Check your SBOMs for free