Vulnerability record · CVE-2018-0840 · published 15 February 2018
CVE-2018-0840: Internet Explorer and Edge scripting engine memory corruption RCE
Microsoft · Internet Explorer
CVE-2018-0840 is an out-of-bounds write (CWE-787) in how the Microsoft scripting engine handles objects in memory, affecting Internet Explorer on Windows 7 SP1, Server 2008 R2 SP1, Windows 8.1/RT 8.1, Server 2012/R2, and Internet Explorer and Edge on Windows 10 and Server 2016. Successful exploitation allows remote code execution in the context of the current user. It is one of a large batch of scripting engine memory corruption fixes released together in February 2018.
Description
Internet Explorer in Microsoft Windows 7 SP1, Windows Server 2008 R2 SP1, Windows 8.1 and Windows RT 8.1, Windows Server 2012 and R2, and Internet Explorer and Microsoft Edge in Windows 10 Gold, 1511, 1607, 1703, 1709, and Windows Server 2016 allows remote code execution, due to how the scripting engine handles objects in memory, aka "Scripting Engine Memory Corruption Vulnerability". This CVE ID is unique from CVE-2018-0834, CVE-2018-0835, CVE-2018-0836, CVE-2018-0837, CVE-2018-0838, CVE-2018-0856, CVE-2018-0857, CVE-2018-0858, CVE-2018-0859, CVE-2018-0860, CVE-2018-0861, and CVE-2018-0866.
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Automated analysis
high priorityCVSS 7.5 with network reachability, high EPSS, and publicly available exploit code make this a serious risk for unpatched legacy Windows and browser deployments.
What it is
CVE-2018-0840 is an out-of-bounds write (CWE-787) in how the Microsoft scripting engine handles objects in memory, affecting Internet Explorer on Windows 7 SP1, Server 2008 R2 SP1, Windows 8.1/RT 8.1, Server 2012/R2, and Internet Explorer and Edge on Windows 10 and Server 2016. Successful exploitation allows remote code execution in the context of the current user. It is one of a large batch of scripting engine memory corruption fixes released together in February 2018.
Impact
An attacker who exploits the flaw can execute arbitrary code with the privileges of the logged-on user. If that user has administrative rights, the attacker could take full control of the host, including installing programs and modifying or deleting data.
Attack surface
The CVSS vector is network-reachable with no privileges required but user interaction required (AV:N/AC:H/PR:N/UI:R), consistent with a victim visiting a crafted web page or opening attacker-supplied content that triggers the scripting engine. No authentication is needed, but the victim must be induced to interact with the malicious content.
Exploitation
CISA KEV does not list this CVE, but EPSS is high (0.53073, 98.9th percentile) and a public Exploit-DB entry (44077) exists, indicating exploit code is publicly available. No ransomware group usage is documented in the record.
What to do
- Apply the Microsoft security update referenced in the MSRC advisory for CVE-2018-0840 as the first action.
- Prioritize patching systems still running Internet Explorer or Edge on the affected Windows versions, including Windows 7 SP1, Server 2008 R2 SP1, Windows 8.1/RT 8.1, Server 2012/R2, Windows 10, and Server 2016.
- Where legacy IE use is not required, restrict or disable it and enforce a modern, fully patched browser.
- Apply defense-in-depth controls such as EMET or Windows Defender Exploit Guard mitigations on hosts that cannot be patched immediately.
- Limit user privileges so that exploitation does not immediately yield administrative control.
Detection
- Monitor for browser or scripting engine crashes (iexplore.exe, MicrosoftEdge.exe, jscript.dll, vbscript.dll) that may indicate memory corruption attempts.
- Hunt for processes spawned by browser processes, especially unusual child processes such as cmd.exe, powershell.exe, or wscript.exe, which can indicate successful RCE.
- Review web proxy and DNS logs for access to known exploit-hosting or malvertising domains tied to scripting engine exploits.
- Check endpoint telemetry for anomalous memory-write or heap manipulation behavior in browser processes on unpatched hosts.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.securityfocus.com/bid/102886 | Third Party AdvisoryVDB Entry |
| http://www.securitytracker.com/id/1040369 | Third Party AdvisoryVDB Entry |
| http://www.securitytracker.com/id/1040372 | Third Party AdvisoryVDB Entry |
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-0840 | PatchVendor Advisory |
| https://www.exploit-db.com/exploits/44077/ | ExploitThird Party AdvisoryVDB Entry |
| http://www.securityfocus.com/bid/102886 | Third Party AdvisoryVDB Entry |
| http://www.securitytracker.com/id/1040369 | Third Party AdvisoryVDB Entry |
| http://www.securitytracker.com/id/1040372 | Third Party AdvisoryVDB Entry |
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-0840 | PatchVendor Advisory |
| https://www.exploit-db.com/exploits/44077/ | ExploitThird Party AdvisoryVDB Entry |
Track CVE-2018-0840 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-0840), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.