rustsec-2018-0011
Vulnerability from osv_rustsec
Published
2018-12-18 12:00
Modified
2023-06-13 13:10
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.
{
"affected": [
{
"database_specific": {
"categories": [
"memory-corruption"
],
"cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [
"x86_64"
],
"functions": [],
"os": [
"windows"
]
}
},
"package": {
"ecosystem": "crates.io",
"name": "arrayfire",
"purl": "pkg:cargo/arrayfire"
},
"ranges": [
{
"events": [
{
"introduced": "3.5.1-0"
},
{
"fixed": "3.6.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"CVE-2018-20998",
"GHSA-69fv-gw6g-8ccg"
],
"database_specific": {
"license": "CC0-1.0"
},
"details": "The attribute repr() added to enums to be compatible with C-FFI caused\nmemory corruption on MSVC toolchain.\n\narrayfire crates \u003c= version 3.5.0 do not have this issue when used with\nRust versions 1.27 or earlier. The issue only started to appear since\nRust version 1.28.\n\nThe issue seems to be interlinked with which version of Rust is being used.\n\nThe issue was fixed in crate 3.6.0.",
"id": "RUSTSEC-2018-0011",
"modified": "2023-06-13T13:10:24Z",
"published": "2018-12-18T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/arrayfire"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2018-0011.html"
},
{
"type": "WEB",
"url": "https://github.com/arrayfire/arrayfire-rust/pull/177"
}
],
"related": [],
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Enum repr causing potential memory corruption"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…