CVE-2023-36884 — Microsoft Windows Search Remote Code Execution Vulnerability

CVE-2023-36884

Office/Windows HTML — MOTW Bypass and RCE via Malicious Office Document; Used by Storm-0978 at NATO Summit

What is the Windows Mark of the Web?

The Mark of the Web (MOTW) is a Windows security mechanism that tags files downloaded from the internet with a Zone Identifier, causing Windows to treat them as potentially unsafe. When a user opens an Office document bearing the internet zone MOTW, Office's Protected View activates — displaying the document in a read-only sandbox that prevents macros and active content from executing without user confirmation. Bypassing MOTW causes Office to open documents as if they came from a trusted local source, enabling malicious content (macros, OLE objects, embedded scripts) to execute immediately without Protected View. MOTW bypasses are therefore a critical capability for phishing-based malware delivery.

Overview

CVE-2023-36884 is a remote code execution vulnerability in Microsoft Office and Windows HTML processing that allows an attacker to bypass Mark of the Web protections and execute code when a user opens a malicious Office document delivered via phishing. Microsoft disclosed it on July 11, 2023, without an immediate patch — providing only interim mitigations — while attributing active exploitation to Storm-0978 (RomCom), a threat actor with both espionage and ransomware operations. The full patch was not released until the August 2023 Patch Tuesday. CISA added it to KEV on July 17, 2023.

Affected Versions

Product Affected Fixed
Microsoft Office 2016 Yes August 2023 security update
Microsoft Office 2019 Yes August 2023 security update
Microsoft Office LTSC 2021 Yes August 2023 security update
Microsoft 365 Apps for Enterprise Yes August 2023 Channel update
Windows (all supported versions, HTML processing component) Yes August 2023 cumulative update

Technical Details

CVE-2023-36884 (CWE-362 — race condition) involves a race condition in how Windows processes specially crafted HTML content embedded in Office documents. The vulnerability enables bypassing of the Mark of the Web check: despite the document being tagged as internet-origin, Office's MOTW validation can be defeated through the race condition, causing Office to open the document in full-fidelity mode rather than Protected View.

With Protected View bypassed and the document executing in full-fidelity mode, maliciously embedded OLE objects, RTF structures, or remote template references can trigger execution of attacker-controlled code. The initial exploitation vector is a phishing email containing a malicious .docx or similar Office document attachment.

Microsoft's interim mitigation (published July 11 without a patch) involved adding Office applications to the FEATURE_BLOCK_CROSS_PROTOCOL_FILE_NAVIGATION registry key, which blocks certain cross-protocol navigation sequences used in the exploit chain.

Discovery

Microsoft's Threat Intelligence team identified active exploitation by Storm-0978 targeting organizations related to the NATO Ukraine Defense Contact Group summit, timed to coincide with the actual summit in Vilnius, Lithuania in July 2023.

Exploitation Context

Storm-0978 (also called RomCom, DEV-0978, and UNC2596) is a threat actor with dual operations:

  • Espionage: Targeting European government entities, military organizations, and entities involved in Ukraine support
  • Financial crime: Operating Cuba ransomware and conducting financial theft

In July 2023, Storm-0978 used CVE-2023-36884 in spear-phishing campaigns targeting attendees and organizations connected to the NATO Summit — sending documents themed around NATO agenda items, Ukrainian support materials, and related topics. The goal was intelligence collection from European defense and government networks.

The ransomware flag (marked true) reflects Storm-0978's dual-use of the same infrastructure for both espionage and financially-motivated ransomware deployment.

Remediation

  1. Apply the August 2023 cumulative Windows update and Office security update — the July 2023 disclosure had no patch; the August 2023 Patch Tuesday delivered the fix.
  2. Apply the interim registry mitigation if still unpatched — add Word, Excel, PowerPoint, Outlook, and other Office applications to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_CROSS_PROTOCOL_FILE_NAVIGATION with a DWORD value of 1. See MSRC advisory for the exact registry configuration.
  3. Enable Attack Surface Reduction (ASR) rules — specifically "Block all Office applications from creating child processes" and rules targeting Office macro execution.
  4. Enable Protected View for internet-origin files and ensure it cannot be disabled by users in high-risk environments.
  5. Deploy Microsoft Defender for Office 365 — ATP Safe Attachments detonates Office documents in a sandbox before delivery, detecting malicious content before users can open it.
  6. Educate users about NATO/Ukraine-themed phishing — in geopolitical campaigns, lure documents are specifically designed to be plausible and interesting to the intended target population.

Key Details

PropertyValue
CVE ID CVE-2023-36884
Vendor / Product Microsoft — Windows
NVD Published2023-07-11
NVD Last Modified2025-10-28
CVSS 3.1 Score7.5
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-362 find similar ↗
CISA KEV Added2023-07-17
CISA KEV Deadline2023-08-29
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2023-08-29. Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Timeline

DateEvent
2023-07-11Microsoft discloses CVE-2023-36884 on Patch Tuesday without a patch; provides mitigations
2023-07-11Microsoft publishes Storm-0978 attribution for exploitation targeting NATO Summit-related organizations
2023-07-17Added to CISA Known Exploited Vulnerabilities catalog
2023-08-08Microsoft releases out-of-band patch for CVE-2023-36884 via August 2023 Patch Tuesday
2023-08-29CISA BOD 22-01 remediation deadline