← Vulnerability feed

Vulnerability record · CVE-2018-8174 · published 9 May 2018

CVE-2018-8174: Windows VBScript Engine Out-of-Bounds Write RCE

Microsoft · Windows 10 1607

The Windows VBScript engine mishandles objects in memory, causing an out-of-bounds write (CWE-787) that can corrupt memory and lead to remote code execution. It affects a broad set of Windows client and server versions, and because VBScript is reachable through browsers and documents, it is a practical target for drive-by and document-based attacks.

7.5 CVSS 3.1 High CISA KEV since 15 Feb 2022 Known ransomware use EPSS 88% · top 0.2% CWE-787 · Out-of-bounds write
7.5CVSS 3.1 base score, v2 7.6
88%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
10Affected product versions listed by NVD
9References, 4 tagged exploit
13 Aug 2026Last modified by NVD

Description

A remote code execution vulnerability exists in the way that the VBScript engine handles objects in memory, aka "Windows VBScript Engine Remote Code Execution Vulnerability." This affects Windows 7, Windows Server 2012 R2, Windows RT 8.1, Windows Server 2008, Windows Server 2012, Windows 8.1, Windows Server 2016, Windows Server 2008 R2, Windows 10, Windows 10 Servers.

CVSS:3.1/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 17 September 2026. Confidence: high.

critical priorityIt is in the CISA KEV catalog with known ransomware use, has a very high EPSS score, and public exploits exist, so unpatched systems face active exploitation risk.

What it is

The Windows VBScript engine mishandles objects in memory, causing an out-of-bounds write (CWE-787) that can corrupt memory and lead to remote code execution. It affects a broad set of Windows client and server versions, and because VBScript is reachable through browsers and documents, it is a practical target for drive-by and document-based attacks.

Impact

An attacker who triggers the flaw can execute arbitrary code in the context of the affected process, typically the logged-on user, giving full control of the host. This includes installing programs, changing or deleting data, and creating accounts with full user rights.

Attack surface

Reached over the network (AV:N) with no privileges required (PR:N), but exploitation requires user interaction (UI:R), such as visiting a crafted page or opening a malicious document that invokes the VBScript engine. Attack complexity is rated high (AC:H), reflecting the memory-corruption work needed for reliable code execution.

Exploitation

CISA added this to the Known Exploited Vulnerabilities catalog on 2022-02-15 with a 2022-08-15 remediation due date and flags known ransomware campaign use. EPSS is very high (0.88332, 99.762 percentile), and public references include Exploit-DB and a technical micro-patch writeup, indicating mature public exploitation.

What to do

  • Apply the Microsoft security update for CVE-2018-8174 on all affected Windows versions as the first action.
  • Disable or restrict VBScript execution where it is not required, and block legacy script engine use in browsers and document handlers.
  • Enforce attachment and web content controls so untrusted documents and pages cannot invoke the VBScript engine.
  • Prioritize remediation on internet-facing and user-workstation systems, and verify patch state against the CISA KEV due date.
  • Monitor for and remove unsupported or end-of-life Windows systems that cannot receive the patch.

Detection

  • Hunt for processes such as wscript.exe, cscript.exe, or browser processes spawning script engines or unexpected child processes.
  • Monitor for Office or browser processes loading VBScript-related modules and for anomalous memory-corruption crash patterns.
  • Review endpoint and network telemetry for known exploit artifacts tied to public PoCs and the referenced Exploit-DB entry.
  • Alert on execution of VBScript from temporary or user-writable directories and on suspicious script file creation.

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-8174 to the Known Exploited Vulnerabilities catalog on 15 February 2022 as "Microsoft Windows VBScript Engine Out-of-Bounds Write Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 15 August 2022.

Affected products

10 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-8174 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

Related vulnerabilities

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

9.8CVE-2017-8543Windows Search memory handling flaw allows remote code executionWindows Search fails to properly handle objects in memory, allowing an unauthenticated remote attacker to execute code on affected Windows systems. T…KEVEPSS 74%analysed8.8CVE-2021-40444Microsoft MSHTML remote code execution via malicious Office documentCVE-2021-40444 is a remote code execution flaw in the MSHTML browser rendering engine on Microsoft Windows. An attacker can embed a malicious ActiveX…KEVEPSS 98%analysed8.8CVE-2021-34527Windows Print Spooler privileged file operation RCE (PrintNightmare)The Windows Print Spooler service improperly performs privileged file operations, allowing an attacker to execute arbitrary code as SYSTEM. This is t…KEVEPSS 100%analysed8.8CVE-2020-1020Windows Adobe Type Manager Library font parsing out-of-bounds write RCEMicrosoft Windows Adobe Type Manager Library mishandles a specially crafted multi-master font in Adobe Type 1 PostScript format, causing an out-of-bo…KEVEPSS 65%analysed8.8CVE-2019-0903Windows GDI memory handling remote code executionWindows Graphics Device Interface (GDI) mishandles objects in memory, allowing remote code execution. The record gives no root-cause detail beyond th…KEVEPSS 22%analysed8.8CVE-2018-8414Windows Shell path validation flaw allows remote code executionThe Windows Shell fails to properly validate file paths, which can lead to remote code execution. The flaw affects Windows 10 and Windows Server buil…KEVEPSS 73%analysed8.8CVE-2018-0824Microsoft COM for Windows deserialization remote code executionMicrosoft COM for Windows fails to properly handle serialized objects, allowing untrusted data deserialization (CWE-502). A crafted serialized object…KEVEPSS 73%analysed8.8CVE-2017-8464Windows Shell .LNK icon parsing remote code executionWindows Shell fails to properly handle a crafted .LNK shortcut when its icon is parsed by Windows Explorer or any other application that reads shortc…KEVEPSS 90%analysed

Source: NIST National Vulnerability Database (record CVE-2018-8174), CISA KEV, FIRST EPSS (scores of 2026-11-30). This page is refreshed as NVD updates the record.