Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. arrayfire
  4. ›
  5. CVE-2018-20998

CVE-2018-20998: Potential memory corruption in arrayfire

August 25, 2021 (updated September 12, 2024)

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.

References

  • github.com/advisories/GHSA-69fv-gw6g-8ccg
  • github.com/arrayfire/arrayfire-rust
  • github.com/arrayfire/arrayfire-rust/commit/a5256f3e5e23b83eaad69699e0b04653aba04fb8
  • github.com/arrayfire/arrayfire-rust/pull/177
  • github.com/pypa/advisory-database/tree/main/vulns/arrayfire/PYSEC-2019-144.yaml
  • nvd.nist.gov/vuln/detail/CVE-2018-20998
  • rustsec.org/advisories/RUSTSEC-2018-0011.html

Code Behaviors & Features

Detect and mitigate CVE-2018-20998 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.6.0

Fixed versions

  • 3.6.0

Solution

Upgrade to version 3.6.0 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

pypi/arrayfire/CVE-2018-20998.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.