Loading...
Skip to main content

CVE-2018-20998 — Potential memory corruption in arrayfire — CVE...

CRITICAL

Potential memory corruption in arrayfire

Published August 25, 2021Updated September 12, 2024Source: osv

Summary

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.

Advisory Timeline

  • First published August 25, 2021 (1874 days ago).
  • Last revised September 12, 2024 — 1114 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update arrayfire to 3.6.0 or later
cargo update -p arrayfire --precise 3.6.0
pip
Update arrayfire to 3.6.0 or later
pip install "arrayfire>=3.6.0"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 2 ecosystems: crates.io (1), pypi (1).

PackageEcosystemAffectedFixed In
arrayfire
crates.io
All versions3.6.0
arrayfire
pypi
3.0.20150914, 3.1.20151111, 3.2.20151211, 3.2.20151214 (+16 more)3.6.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2018-20998?
Potential memory corruption in arrayfire This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2018-20998?
CVE-2018-20998 affects arrayfire. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-20998 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-69fv-gw6g-8ccg
RUSTSEC-2018-0011

Related CVEs

  • CVE-2026-61447
    CRITICAL

    PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets

  • CVE-2026-61445
    CRITICAL

    PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies