A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-59221

CVE-2025-59221: Microsoft 365 Apps Use-After-Free Bug

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

Published: May 26, 2026

CVE-2025-59221 Overview

CVE-2025-59221 is a use-after-free vulnerability [CWE-416] in Microsoft Office Word that allows an unauthorized attacker to execute code locally. The flaw affects multiple Microsoft Office products, including Microsoft 365 Apps, Office 2019, Office Long Term Servicing Channel (LTSC) 2021 and 2024, SharePoint Server 2016 and 2019, and Word 2016. Exploitation requires user interaction, typically opening a malicious document. Successful exploitation results in arbitrary code execution in the context of the current user.

Critical Impact

An attacker who successfully exploits this vulnerability can execute arbitrary code locally, leading to full compromise of confidentiality, integrity, and availability on the affected system.

Affected Products

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

Discovery Timeline

  • 2025-10-14 - CVE-2025-59221 published to NVD
  • 2025-10-16 - Last updated in NVD database

Technical Details for CVE-2025-59221

Vulnerability Analysis

The vulnerability is a use-after-free condition in Microsoft Office Word's document parsing logic. A use-after-free occurs when a program continues to reference memory after it has been released, allowing an attacker to influence the contents of that memory region. When Word processes a crafted document, dangling pointers can be reused after the underlying object has been freed.

An attacker controlling the freed memory can replace it with a forged object containing attacker-supplied virtual function pointers or data. When the original code path dereferences the freed pointer, execution can be redirected into attacker-controlled memory. The result is arbitrary code execution within the user context of the Word process.

The vulnerability is reachable through SharePoint Server as well, because SharePoint shares Office rendering components when handling Word documents server-side. This expands the impact beyond traditional desktop deployments.

Root Cause

The root cause is improper memory management within Word's handling of complex document objects. Object lifetime tracking fails to invalidate references when a dependent object is released, leaving a stale pointer that is later dereferenced during further processing of the document.

Attack Vector

The attack vector is local with user interaction required. An attacker delivers a crafted .docx, .doc, or RTF file via email, web download, or shared storage. When the victim opens the file in a vulnerable version of Word, the use-after-free is triggered. The Preview Pane can also serve as an attack vector in some Office vulnerability classes, depending on parser invocation.

No verified exploit code is publicly available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Technical details are referenced in the Microsoft CVE-2025-59221 Advisory.

Detection Methods for CVE-2025-59221

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 (.exe, .dll, .js, .hta) to user-writable directories such as %TEMP%, %APPDATA%, or %LOCALAPPDATA%.
  • Crash events in the Windows Event Log referencing WINWORD.EXE with access violation exceptions during document open.
  • Inbound documents from untrusted external senders containing embedded OLE objects or unusual XML structures.

Detection Strategies

  • Monitor process lineage where WINWORD.EXE is the parent of script interpreters or LOLBins.
  • Apply behavioral detection logic for Office applications performing memory injection, suspicious thread creation, or loading unsigned DLLs.
  • Correlate document open events with subsequent network connections to unfamiliar external hosts.

Monitoring Recommendations

  • Enable Microsoft Defender Attack Surface Reduction (ASR) rules that block Office applications from creating child processes and from injecting code into other processes.
  • Forward Sysmon Event IDs 1 (process create), 7 (image load), and 11 (file create) for WINWORD.EXE to a centralized SIEM for analysis.
  • Track SharePoint server-side document processing for anomalous worker process crashes or unusual outbound traffic.

How to Mitigate CVE-2025-59221

Immediate Actions Required

  • Apply the security update referenced in the Microsoft CVE-2025-59221 Advisory to all affected Office, Microsoft 365 Apps, and SharePoint Server installations.
  • Inventory endpoints and servers running affected versions, prioritizing internet-exposed SharePoint deployments and high-privilege users.
  • Block or quarantine Office documents from untrusted external sources at the email gateway until patches are deployed.

Patch Information

Microsoft has released security updates addressing CVE-2025-59221 for all impacted products. Administrators should consult the Microsoft Security Update Guide for the specific KB articles and channel-specific build numbers. Microsoft 365 Apps updates are delivered through the Click-to-Run service, while perpetual Office and SharePoint versions require the corresponding monthly security update package.

Workarounds

  • Enforce Protected View and Office Application Guard for documents originating from the internet or email attachments.
  • Disable the Outlook Preview Pane to reduce automatic parser invocation on incoming attachments.
  • Configure Group Policy to block macros and OLE object activation in documents from untrusted locations.
  • Apply ASR rule D4F940AB-401B-4EFC-AADC-AD5F3C50688A to block Office apps from creating child processes.
bash
# Configuration example: Enable Microsoft Defender ASR rule 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.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechMicrosoft

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Vendor Resources
  • Microsoft CVE-2025-59221 Advisory
  • Related CVEs
  • CVE-2026-46722: File Indexer OOXML XXE Vulnerability

  • CVE-2026-41086: Windows Admin Center Privilege Escalation

  • CVE-2026-40380: Windows 10 1607 Buffer Overflow Vulnerability

  • CVE-2026-32209: Windows 10 1607 Auth Bypass Vulnerability
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.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English