CVE-2020-35864 Dangling reference in flatbuffers

High 7.5 Published Updated

Attackers can trigger memory corruption via unsafe transmutations in the Rust flatbuffers library, 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-35864?

CVE-2020-35864 is a high-severity memory corruption 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 flatbuffers crate through 2020-04-11 for Rust. read_scalar (and read_scalar_at) can transmute values without unsafe blocks.

Which versions are affected by CVE-2020-35864?

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

PackageAffectedFixed in
flatbuffers crates.ioFrom 0.4.02.0.0
flatbuffers crates.ioFrom 0.4.02.0.0
flatbuffers crates.ioFrom 0.4.02.0.0

Products include Google Flatbuffers.

How do I fix CVE-2020-35864?

Upgrade flatbuffers to 2.0.0 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-35864 being exploited?

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

Sources

Also known as CLEANSTART-2024-CC98818, GHSA-c9h5-hf8r-m97x, RUSTSEC-2020-0009.

Is CVE-2020-35864 in your software?

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

Check your SBOMs for free