CVE-2018-8298: Microsoft.ChakraCore Remote Code Execution Vulnerability
HIGHCVE-2018-8298 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')) 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.1.
CVE-2018-8298 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/E:H).
How to Fix CVE-2018-8298
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.1
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-8298, 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.1), 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-843: Access of Resource Using Incompatible Type ('Type Confusion'), where the product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. 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-8298 Affected Microsoft.ChakraCore Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.ChakraCore
|
NuGet |
< 1.10.1
|
1.10.1
|
References
Frequently Asked Questions
What is CVE-2018-8298?
Which Microsoft.ChakraCore versions are affected?
What version fixes CVE-2018-8298?
Is Microsoft.ChakraCore affected?
What is the CVSS score of CVE-2018-8298?
What CWE is associated with CVE-2018-8298?
How can I check NuGet dependencies for CVE-2018-8298?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wgw2-wwq8-c7wf",
"modified" : "2025-10-22T17:37:09Z",
"published" : "2022-05-13T01:20:46Z",
"aliases" : [ "CVE-2018-8298" ],
"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-8242, CVE-2018-8283, CVE-2018-8287, CVE-2018-8288, CVE-2018-8291, CVE-2018-8296.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.ChakraCore"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-8298"
}, {
"type" : "WEB",
"url" : "https://github.com/chakra-core/ChakraCore/pull/5444"
}, {
"type" : "WEB",
"url" : "https://github.com/chakra-core/ChakraCore/commit/cb9957e2763c36dbd12afa5c9261465159e16c86"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chakra-core/ChakraCore"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8298"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210124183835/http://www.securityfocus.com/bid/104639"
}, {
"type" : "WEB",
"url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-8298"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/45217"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-843" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-21T20:39:24Z",
"nvd_published_at" : "2018-07-11T00:29:00Z"
}
}