All reports
Critical

Potential memory corruption in arrayfire

Affected versions

Version ranges need review.

Rust / Cargoarrayfire
Affected versions
>=0.0.0-0 <3.6.0
Fixed version
3.6.0
Rust / Cargoarrayfire
Affected versions
< 3.6.0
Fixed version
3.6.0
Affected versions
< 3.6.0
Fixed version
3.6.0

Exploitation

CVE-2018-20998

Probability of exploitation in the next 30 days: 1.71%

FIRST EPSS · 2026-11-22

Description

The attribute repr() added to enums to be compatible with C-FFI caused memory corruption on MSVC toolchain.

arrayfire crates <= version 3.5.0 do not have this issue when used with Rust versions 1.27 or earlier. The issue only started to appear since Rust version 1.28.

The issue seems to be interlinked with which version of Rust is being used.

The issue was fixed in crate 3.6.0.

Links

Credits

  • westonsteimel