RUSTSEC-2018-0011

Source
https://rustsec.org/advisories/RUSTSEC-2018-0011
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2018-0011.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2018-0011
Aliases
Published
2018-12-18T12:00:00Z
Modified
2023-11-08T04:00:13.802563Z
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
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / arrayfire

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.5.1-0
Fixed
3.6.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [
            "windows"
        ],
        "functions": [],
        "arch": [
            "x86_64"
        ]
    }
}

Database specific

{
    "cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "informational": null,
    "categories": [
        "memory-corruption"
    ]
}