CVE-2020-36318 Use after free in n/a

Critical 9.8 Published Updated

A bug in Rust's VecDeque::make_contiguous can cause use-after-free or double free, potentially leading to code execution or 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-36318?

CVE-2020-36318 is a critical use after free vulnerability in n/a, published on 11 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.

Weakness: CWE-416, CWE-415

Which versions are affected by CVE-2020-36318?

It affects 1 product.

Products include Rust-Lang Rust.

How do I fix CVE-2020-36318?

Upgrade to a fixed version.

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-36318 being exploited?

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

Sources

Also known as DEBIAN-CVE-2020-36318, GHSA-w7c8-v5h2-32ff, UBUNTU-CVE-2020-36318.

Is CVE-2020-36318 in your software?

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

Check your SBOMs for free