CVE-2018-21000 Heap overflow or corruption in safe-transmute
Heap memory corruption in the safe-transmute crate allows attackers to potentially execute arbitrary code or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-21000?
CVE-2018-21000 is a critical memory corruption vulnerability in n/a, published on 26 Aug 2019. 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 safe-transmute crate before 0.10.1 for Rust. A constructor's arguments are in the wrong order, causing heap memory corruption.
Weakness: CWE-119
Which versions are affected by CVE-2018-21000?
3 open source packages ship an affected version, including safe-transmute. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
safe-transmute crates.io | From 0.4.0 | 0.10.1 |
safe-transmute crates.io | From 0.4.0 | 0.10.1 |
safe-transmute crates.io | From 0.4.0 | 0.10.1 |
Products include Safe-Transmute Project Safe-Transmute.
How do I fix CVE-2018-21000?
Upgrade safe-transmute to 0.10.1 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2018-21000 being exploited?
There is no known exploitation of CVE-2018-21000 in the wild and no public exploit code.
Sources
Also known as GHSA-2v78-j59h-fmpf, RUSTSEC-2018-0013, UBUNTU-CVE-2018-21000.