Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-31179

CVE-2021-31179: Microsoft 365 Apps RCE Vulnerability

CVE-2021-31179 is a remote code execution vulnerability in Microsoft 365 Apps that allows attackers to execute arbitrary code. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2021-31179 Overview

CVE-2021-31179 is a Remote Code Execution vulnerability affecting Microsoft Office products. This vulnerability allows attackers to execute arbitrary code on target systems when a user opens a specially crafted Office document. The attack requires user interaction, specifically opening a malicious file, but once triggered, it can lead to complete system compromise with the same privileges as the logged-in user.

Critical Impact

Successful exploitation enables attackers to execute arbitrary code with user-level privileges, potentially leading to data theft, malware installation, and lateral movement within enterprise environments.

Affected Products

  • Microsoft 365 Apps (Enterprise)
  • Microsoft Excel 2013 SP1, 2016
  • Microsoft Office 2013 SP1, 2016, 2019
  • Microsoft Office Online Server
  • Microsoft Office Web Apps Server 2013 SP1

Discovery Timeline

  • May 11, 2021 - CVE-2021-31179 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-31179

Vulnerability Analysis

This Remote Code Execution vulnerability exists within Microsoft Office's document processing functionality. The flaw allows attackers to craft malicious Office documents that, when opened by a victim, trigger code execution within the context of the current user. The vulnerability requires local access to the malicious file and user interaction to open it, but no prior authentication or privileges are required from the attacker's perspective.

The impact is significant as it affects the confidentiality, integrity, and availability of the target system. An attacker who successfully exploits this vulnerability could install programs, view, change, or delete data, or create new accounts with full user rights. Users whose accounts are configured with fewer user rights on the system could be less impacted than those who operate with administrative privileges.

Root Cause

Microsoft has not disclosed specific technical details about the root cause of this vulnerability. The vulnerability exists in the way Microsoft Office handles certain document elements during file parsing. When processing specially crafted content, the Office application fails to properly validate input, allowing malicious code to execute.

Attack Vector

The attack vector for CVE-2021-31179 is local, requiring an attacker to deliver a malicious Office document to the victim. Common delivery methods include:

  • Email attachments containing weaponized Office files
  • Malicious documents hosted on compromised or attacker-controlled websites
  • Documents shared through file-sharing platforms or collaboration tools
  • USB drives or other removable media containing malicious files

The victim must be convinced to open the malicious document, typically through social engineering tactics. Once the document is opened in a vulnerable version of Microsoft Office, the exploit executes with the permissions of the current user.

Detection Methods for CVE-2021-31179

Indicators of Compromise

  • Unusual child processes spawned by Microsoft Office applications (e.g., cmd.exe, powershell.exe, mshta.exe)
  • Office applications making unexpected network connections to unknown external IP addresses
  • Suspicious Office documents with embedded macros, OLE objects, or unusual file structures
  • Unexpected process behavior from WINWORD.EXE, EXCEL.EXE, or POWERPNT.EXE

Detection Strategies

  • Monitor for Office applications spawning child processes that are commonly used for exploitation (cmd.exe, powershell.exe, wscript.exe, cscript.exe)
  • Implement email attachment scanning to identify potentially malicious Office documents before delivery
  • Deploy endpoint detection rules to identify suspicious Office document behaviors during file opening
  • Enable Microsoft Office Protected View and Application Guard to sandbox untrusted documents

Monitoring Recommendations

  • Enable enhanced logging for Microsoft Office applications and Windows process creation events
  • Configure SIEM rules to alert on Office applications exhibiting suspicious process lineage
  • Monitor file system activity for temporary files created by Office applications in unusual locations
  • Track network connections initiated by Office processes, especially to external IP addresses

How to Mitigate CVE-2021-31179

Immediate Actions Required

  • Apply the latest Microsoft security updates for all affected Office products immediately
  • Enable Microsoft Office Protected View for documents originating from the internet or email
  • Configure Microsoft Office to block macros from running in files from the internet
  • Educate users about the risks of opening Office documents from unknown or untrusted sources
  • Consider deploying Microsoft Defender Application Guard for Office to isolate untrusted documents

Patch Information

Microsoft has released security updates to address this vulnerability as part of their May 2021 security updates. Administrators should apply the appropriate patches for their Office installations. For detailed patch information and download links, refer to the Microsoft Security Advisory for CVE-2021-31179.

Organizations using Microsoft 365 Apps should ensure automatic updates are enabled to receive the latest security fixes. For on-premises deployments of Office 2013, 2016, and 2019, manual deployment of security updates through WSUS or SCCM may be required.

Workarounds

  • Enable Protected View for all Office documents to prevent automatic execution of potentially malicious content
  • Configure Group Policy to disable Active Content (macros, ActiveX, DDE) in Office documents from untrusted sources
  • Use Microsoft Office Application Guard to open untrusted documents in an isolated container
  • Restrict Office file associations to open documents in read-only mode by default
  • Implement email filtering rules to quarantine or block Office attachments from external senders
bash
# Group Policy configuration to enable Protected View
# Navigate to: User Configuration > Administrative Templates > Microsoft Office > Security Settings
# Enable: "Protected View for files originating from the Internet"
# Enable: "Protected View for files located in potentially unsafe locations"

# Registry key to enable Protected View (per application)
reg add "HKCU\Software\Microsoft\Office\16.0\Excel\Security\ProtectedView" /v DisableInternetFilesInPV /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Office\16.0\Word\Security\ProtectedView" /v DisableInternetFilesInPV /t REG_DWORD /d 0 /f

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft 365 Apps

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability9.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-31179
  • Related CVEs
  • CVE-2020-16918: Microsoft 365 Apps RCE Vulnerability

  • CVE-2024-21413: Microsoft Outlook RCE Vulnerability

  • CVE-2024-38189: Microsoft Project RCE Vulnerability

  • CVE-2025-21354: Microsoft Excel RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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