CVE-2020-35864 Dangling reference in flatbuffers
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.
| Package | Affected | Fixed in |
|---|---|---|
flatbuffers crates.io | From 0.4.0 | 2.0.0 |
flatbuffers crates.io | From 0.4.0 | 2.0.0 |
flatbuffers crates.io | From 0.4.0 | 2.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.
Other vulnerabilities in n/a
Sources
Also known as CLEANSTART-2024-CC98818, GHSA-c9h5-hf8r-m97x, RUSTSEC-2020-0009.