Advisory

RUSTSEC-2018-0011

Also known as: CVE-2018-20998, GHSA-69fv-gw6g-8ccg

Summary

Enum repr causing potential memory corruption

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2018-12-18 12:00 UTC
Modified
2026-09-25 14:45 UTC

Affected packages and fixes

arrayfire

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 3.6.0 (semver)

Fixed versions

3.6.0

Fix

  • Fixed version 3.6.0
    cargo update -p arrayfire --precise 3.6.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences