← Vulnerability feed

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.

7.5 CVSS 3.0 High EPSS 53% · top 1.1% CWE-787 · Out-of-bounds write
7.5CVSS 3.0 base score, v2 9.3
53%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
10References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

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

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.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2015-0313Adobe Flash Player use-after-free allows remote code executionAdobe Flash Player contains a use-after-free (CWE-416) flaw reachable through unspecified vectors. It affects Flash Player before 13.0.0.269 and 14.x…KEVEPSS 95%analysed9.8CVE-2015-0311Adobe Flash Player unspecified flaw allows remote code executionCVE-2015-0311 is an unspecified vulnerability in Adobe Flash Player affecting versions through 13.0.0.262, 14.x, 15.x, and 16.x through 16.0.0.287 on…KEVEPSS 86%analysed9.8CVE-2014-1776Internet Explorer use-after-free in CMarkup::IsConnectedToPrimaryMarkupMicrosoft Internet Explorer 6 through 11 contains a use-after-free in the CMarkup::IsConnectedToPrimaryMarkup function that allows remote code execut…KEVEPSS 83%analysed9.6CVE-2024-7971Google Chrome V8 type confusion enables heap corruptionChrome's V8 JavaScript engine contains a type confusion flaw (CWE-843) that lets a crafted HTML page corrupt the heap. It affects Chrome before 128.0…KEVEPSS 21%analysed9.6CVE-2022-4135Google Chrome GPU heap buffer overflow enables sandbox escapeChrome's GPU component contains a heap buffer overflow (CWE-787) fixed in version 107.0.5304.121. An attacker who already controls the renderer proce…KEVEPSS 32%analysed8.8CVE-2023-5217libvpx VP8 encoding heap buffer overflow exploited via crafted HTMLA heap buffer overflow in the VP8 encoder in libvpx affects Google Chrome before 117.0.5938.132 and libvpx 1.13.1, and is reachable through a crafted…KEVEPSS 49%analysed8.8CVE-2021-27085Microsoft Internet Explorer remote code execution flawCVE-2021-27085 is a remote code execution vulnerability in Microsoft Internet Explorer. The record gives only a one-line description and no root-caus…KEVEPSS 5.4%analysed8.8CVE-2021-26411Microsoft Internet Explorer and Edge use-after-free memory corruptionCVE-2021-26411 is a use-after-free (CWE-416) memory corruption flaw in Microsoft Internet Explorer, with Microsoft Edge also listed as an affected pr…KEVEPSS 81%analysed

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.