Vulnerability record · CVE-2018-8298 · published 11 July 2018
CVE-2018-8298: ChakraCore scripting engine type confusion allows remote code execution
Microsoft · Chakracore
ChakraCore mishandles objects in memory in a way that leads to type confusion (CWE-843), which the vendor classifies as a remote code execution vulnerability. Because the engine is used to parse and execute script content, a crafted page or script can corrupt memory and potentially run attacker-controlled code in the context of the affected process.
Description
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Automated analysis
high priorityNetwork-reachable remote code execution with a public exploit and KEV listing, though exploitation requires user interaction and high attack complexity.
What it is
ChakraCore mishandles objects in memory in a way that leads to type confusion (CWE-843), which the vendor classifies as a remote code execution vulnerability. Because the engine is used to parse and execute script content, a crafted page or script can corrupt memory and potentially run attacker-controlled code in the context of the affected process.
Impact
An attacker who successfully triggers the type confusion can execute arbitrary code with the privileges of the process running ChakraCore, typically the user or application hosting the engine.
Attack surface
The CVSS vector is network-reachable (AV:N) with no privileges required (PR:N) but user interaction required (UI:R), meaning a victim must open or load attacker-supplied script content. Attack complexity is rated High (AC:H), so reliable triggering is not trivial.
Exploitation
CVE-2018-8298 is listed in CISA KEV (added 2022-03-03) and has a public Exploit-DB entry (45217), indicating known exploitation in the wild; EPSS is 0.745 (99.5th percentile). No ransomware campaign use is documented.
What to do
- Apply the Microsoft security update referenced in the vendor advisory (portal.msrc.microsoft.com advisory CVE-2018-8298) to all ChakraCore deployments.
- If ChakraCore is embedded in an application, update to the fixed engine build and rebuild/redeploy the host application.
- Restrict execution of untrusted script content and block known exploit delivery paths at the network and email layers.
- Where ChakraCore is not required, remove or disable the component to reduce exposure.
- Track KEV remediation deadlines (due 2022-03-17) and verify patched status across all instances.
Detection
- Monitor for crashes or abnormal process termination in applications hosting ChakraCore, which can indicate type confusion triggering.
- Hunt for known Exploit-DB 45217 payload patterns or related script content in web and email traffic.
- Alert on unexpected child processes or code execution spawned from ChakraCore-hosting processes.
- Audit installed ChakraCore versions against the vendor-fixed build and flag unpatched hosts.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2018-8298 to the Known Exploited Vulnerabilities catalog on 3 March 2022 as "ChakraCore Scripting Engine Type Confusion Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 17 March 2022.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.securityfocus.com/bid/104639 | Broken LinkThird Party AdvisoryVDB Entry |
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8298 | PatchVendor Advisory |
| https://www.exploit-db.com/exploits/45217/ | ExploitThird Party AdvisoryVDB Entry |
| http://www.securityfocus.com/bid/104639 | Broken LinkThird Party AdvisoryVDB Entry |
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8298 | PatchVendor Advisory |
| https://www.exploit-db.com/exploits/45217/ | ExploitThird Party AdvisoryVDB Entry |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-8298 | US Government Resource |
Track CVE-2018-8298 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-8298), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.