CVE-2018-20998 Potential memory corruption in arrayfire
Memory corruption in the arrayfire Rust 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-20998?
CVE-2018-20998 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 arrayfire crate before 3.6.0 for Rust. Addition of the repr() attribute to an enum is mishandled, leading to memory corruption.
Weakness: CWE-119
Which versions are affected by CVE-2018-20998?
5 open source packages ship an affected version, including arrayfire. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
arrayfire PyPI | All versions | 3.6.0 |
arrayfire PyPI | All versions | 3.6.0 |
arrayfire crates.io | All versions | 3.6.0 |
arrayfire crates.io | All versions | 3.6.0 |
arrayfire crates.io | From 0.0.0-0 | 3.6.0 |
Products include Arrayfire Arrayfire.
How do I fix CVE-2018-20998?
Upgrade arrayfire to 3.6.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-2018-20998 being exploited?
There is no known exploitation of CVE-2018-20998 in the wild and no public exploit code.
Sources
Also known as GHSA-69fv-gw6g-8ccg, RUSTSEC-2018-0011.