GHSA-69fv-gw6g-8ccg

Suggest an improvement
Source
https://github.com/advisories/GHSA-69fv-gw6g-8ccg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-69fv-gw6g-8ccg/GHSA-69fv-gw6g-8ccg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-69fv-gw6g-8ccg
Aliases
Published
2021-08-25T20:43:26Z
Modified
2024-09-12T20:52:04.541612Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
Potential memory corruption in arrayfire
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.

Database specific
{
    "nvd_published_at": "2019-08-26T18:15:00Z",
    "cwe_ids": [
        "CWE-119"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:24:28Z"
}
References

Affected packages

crates.io / arrayfire

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.6.0

PyPI / arrayfire

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.6.0

Affected versions

3.*

3.0.20150914
3.1.20151111
3.2.20151211
3.2.20151214
3.2.20151224
3.2.20151224.post1
3.3.20160320
3.3.20160328
3.3.20160427
3.3.20160427.post1
3.3.20160510
3.3.20160516
3.3.20160624
3.3.20160624.post1
3.4.20160925
3.4.20161126
3.4.20170222
3.5.20170718
3.5.20170721
3.5.20170817