CVE-2018-8359: Microsoft.ChakraCore Remote Code Execution Vulnerability
HIGHCVE-2018-8359 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-787: Out-of-bounds Write) affecting Microsoft.ChakraCore libraries in the NuGet ecosystem. The issue involves chakracore rce vulnerability. Remediation is available by upgrading affected packages to version 1.10.2.
CVE-2018-8359 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-8359
To remediate this vulnerability, upgrade all affected Microsoft.ChakraCore dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Microsoft.ChakraCore to 1.10.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.ChakraCore
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-8359, inspect your project dependencies for Microsoft.ChakraCore:
inspect dependencies for Microsoft.ChakraCore
Analyze the terminal output to locate any version of Microsoft.ChakraCore in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Microsoft.ChakraCore, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-8359 Affected Microsoft.ChakraCore Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.ChakraCore
|
NuGet |
< 1.10.2
|
1.10.2
|
References
Frequently Asked Questions
What is CVE-2018-8359?
Which Microsoft.ChakraCore versions are affected?
What version fixes CVE-2018-8359?
Is Microsoft.ChakraCore affected?
What is the CVSS score of CVE-2018-8359?
What CWE is associated with CVE-2018-8359?
How can I check NuGet dependencies for CVE-2018-8359?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-38r7-rv5p-ggwq",
"modified" : "2023-10-06T01:33:31Z",
"published" : "2022-05-13T01:20:49Z",
"aliases" : [ "CVE-2018-8359" ],
"summary" : "ChakraCore RCE Vulnerability",
"details" : "A remote code execution vulnerability exists in the way that the ChakraCore scripting engine handles objects in memory, aka \"Scripting Engine Memory Corruption Vulnerability.\" This affects ChakraCore. This CVE ID is unique from CVE-2018-8353, CVE-2018-8355, CVE-2018-8371, CVE-2018-8372, CVE-2018-8373, CVE-2018-8385, CVE-2018-8389, CVE-2018-8390.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.ChakraCore"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-8359"
}, {
"type" : "WEB",
"url" : "https://github.com/chakra-core/ChakraCore/pull/5596"
}, {
"type" : "WEB",
"url" : "https://github.com/chakra-core/ChakraCore/commit/f8bdb180c4e9351f441e25dc818815d0c63af753"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chakra-core/ChakraCore"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8359"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210421013802/http://www.securityfocus.com/bid/104990"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20211203061111/http://www.securitytracker.com/id/1041457"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-787" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-21T22:06:07Z",
"nvd_published_at" : "2018-08-15T17:29:00Z"
}
}