CVE-2018-20998
Enum repr causing potential memory corruption
9.8
CRITICAL
CVSS 3.1
EPSS 0.43%
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.
How to fix CVE-2018-20998
To remediate CVE-2018-20998, upgrade the affected package to a fixed version below.
- —upgrade to 3.6.0 or later
- —upgrade to 3.6.0 or later
- —upgrade to 3.6.0 or later
- —upgrade to 3.6.0 or later
Is CVE-2018-20998 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 3.6.0
- >= 3.5.1-0, < 3.6.0
- from 0, < 3.6.0
- from 0, < 3.6.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |