CVE-2019-25004 Unsound casting in flatbuffers
Attackers can exploit type confusion in the Rust flatbuffers crate to reinterpret bytes as booleans, potentially leading to memory safety violations and code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-25004?
CVE-2019-25004 is a critical 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 before 0.6.1 for Rust. Arbitrary bytes can be reinterpreted as a bool, defeating soundness.
Which versions are affected by CVE-2019-25004?
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 | 0.6.1 |
flatbuffers crates.io | From 0.4.0 | 0.6.1 |
flatbuffers crates.io | From 0.4.0 | 0.6.1 |
Products include Google Flatbuffers.
How do I fix CVE-2019-25004?
Upgrade flatbuffers to 0.6.1 or later.
Is CVE-2019-25004 being exploited?
There is no known exploitation of CVE-2019-25004 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-gx73-2498-r55c, RUSTSEC-2019-0028.