CVE-2018-20998 Potential memory corruption in arrayfire

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
arrayfire PyPIAll versions3.6.0
arrayfire PyPIAll versions3.6.0
arrayfire crates.ioAll versions3.6.0
arrayfire crates.ioAll versions3.6.0
arrayfire crates.ioFrom 0.0.0-03.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.

Is CVE-2018-20998 in your software?

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

Check your SBOMs for free