Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2025-47168

CVE-2025-47168: Microsoft 365 Apps Use-After-Free Flaw

CVE-2025-47168 is a use-after-free vulnerability in Microsoft Office Word that enables unauthorized attackers to execute code locally. This article covers technical details, affected versions, impact, and mitigation.

Published:

CVE-2025-47168 Overview

CVE-2025-47168 is a use-after-free vulnerability in Microsoft Office Word that allows an unauthorized attacker to execute code locally. The flaw is tracked under CWE-416 and affects multiple Office and SharePoint products, including Microsoft 365 Apps, Office 2019, Office LTSC 2021 and 2024, Word 2016, SharePoint Server 2019, and SharePoint Enterprise Server 2016. Successful exploitation requires user interaction, typically opening a crafted Word document. Microsoft published guidance through the Microsoft Security Update CVE-2025-47168 advisory.

Critical Impact

Attackers who convince a user to open a malicious Word document can execute arbitrary code in the context of the user, leading to full compromise of confidentiality, integrity, and availability on the local system.

Affected Products

  • Microsoft 365 Apps (Enterprise)
  • Microsoft Office 2019, Office LTSC 2021, and Office LTSC 2024 (Windows and macOS)
  • Microsoft Word 2016, SharePoint Server 2019, and SharePoint Enterprise Server 2016

Discovery Timeline

  • 2025-06-10 - CVE-2025-47168 published to the National Vulnerability Database
  • 2025-07-09 - Last updated in NVD database

Technical Details for CVE-2025-47168

Vulnerability Analysis

The vulnerability is a use-after-free condition [CWE-416] in Microsoft Office Word. Use-after-free defects occur when an application continues to reference memory after that memory has been freed. An attacker who controls the contents of the reclaimed memory region can redirect program flow to attacker-supplied code.

In this case, parsing a maliciously crafted Word document triggers the dangling reference. Because Word processes complex object structures, fonts, embedded OLE content, and rich formatting, attackers have multiple primitives for shaping heap layout before the freed object is reused. The condition gives an attacker arbitrary code execution within the Word process, inheriting the user's privileges.

Root Cause

The root cause is improper object lifetime management in Word's document parsing routines. A freed object is dereferenced during subsequent processing, allowing reuse of the stale pointer. Attacker-controlled data placed in the reclaimed allocation determines the virtual function call target or data interpreted by the affected code path.

Attack Vector

Exploitation requires local access and user interaction. An attacker delivers a malicious .doc, .docx, or .rtf file through email, web download, SharePoint share, or chat. When the victim opens the file in an affected Word version, the use-after-free fires and runs the attacker's payload. Preview pane processing in mail clients can also serve as a trigger surface for Office document parsers.

No public proof-of-concept code is referenced in the advisory, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. See the Microsoft Security Update CVE-2025-47168 for vendor technical details.

Detection Methods for CVE-2025-47168

Indicators of Compromise

  • Unexpected child processes spawned by winword.exe, such as cmd.exe, powershell.exe, rundll32.exe, or mshta.exe.
  • Word writing executable content to user-writable locations like %APPDATA%, %TEMP%, or %PUBLIC%.
  • Crash dumps or Windows Error Reporting events referencing access violations inside Word modules during document open.
  • Inbound Word documents from untrusted senders containing embedded objects, unusual ActiveX controls, or malformed structured storage.

Detection Strategies

  • Hunt for parent-child process relationships where winword.exe launches scripting interpreters or LOLBins.
  • Apply YARA and content-inspection rules at the mail gateway for malformed Office documents and suspicious OLE streams.
  • Correlate Office application crashes with subsequent network connections or persistence creation on the same host.

Monitoring Recommendations

  • Forward Microsoft-Windows-Sysmon process, network, and file events plus Office Telemetry logs to a centralized SIEM for analysis.
  • Alert on Office processes performing token impersonation, memory allocation patterns consistent with shellcode, or loading unsigned DLLs.
  • Track document provenance using Mark-of-the-Web and flag execution of macros or active content from documents lacking it.

How to Mitigate CVE-2025-47168

Immediate Actions Required

  • Apply the Microsoft security updates for all affected channels referenced in the Microsoft Security Update CVE-2025-47168 advisory.
  • Inventory endpoints running Microsoft 365 Apps, Office 2019, Office LTSC 2021/2024, Word 2016, and SharePoint Server 2016/2019 to confirm patch coverage.
  • Block inbound Office documents from external sources at the mail gateway until patching completes, or quarantine for sandbox detonation.

Patch Information

Microsoft has released security updates addressing CVE-2025-47168 across the affected products. Administrators should deploy updates through Microsoft Update, Windows Server Update Services (WSUS), Microsoft Intune, or the Office Click-to-Run update channel. SharePoint Server administrators must apply both the security update package and run the SharePoint Products Configuration Wizard on each server. Verify build numbers post-deployment against the versions listed in the MSRC advisory.

Workarounds

  • Enable Protected View and Office Application Guard to isolate documents originating from the internet or email attachments.
  • Configure Attack Surface Reduction rules to block Office applications from creating child processes and from injecting code into other processes.
  • Disable preview pane rendering of Office attachments in Outlook for high-risk user populations.
  • Enforce blocking of macros from documents sourced from the internet via Group Policy until patches are deployed.
bash
# Example: enable ASR rule to block Office child process creation via PowerShell
Set-MpPreference -AttackSurfaceReductionRules_Ids D4F940AB-401B-4EFC-AADC-AD5F3C50688A `
                 -AttackSurfaceReductionRules_Actions Enabled

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.