CVE DatabaseCVE-2021-27059
한국어 권고문 →
CVE-2021-270597.6/HIGHCISA KEV

Microsoft Office Remote Code Execution Vulnerability (CVE-2021-27059) Technical Advisory

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
office, excel
Published Date
2021-03-11
CVSS v3.1
7.6
HIGH
EPSS (30d)
6.1%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Unpatched versions of Microsoft Office and Excel suites

Impact

Remote attackers can execute arbitrary code under the context of the current user via crafted Office documents

Mitigation

Apply the official Microsoft security patches immediately and restrict opening untrusted attachments

Affected Products & Version Scope

Microsoft Office 2013, 2016, 2019, Microsoft 365 Apps, and affected Excel editions

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the official security updates provided by Microsoft. In enterprise environments, deploy the patches via WSUS or SCCM. For individual endpoints, you can force Windows Update using the following PowerShell commands:

powershell
# Install PSWindowsUpdate module and force install updates
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, enforce 'Protected View' for all Office documents originating from untrusted locations. Use the following registry modifications to harden the environment:

powershell
# Enforce Protected View settings for Excel via Registry
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Office\16.0\Excel\Security\ProtectedView' -Name 'DisableInternetFilesInPV' -Value 0 -PropertyType DWord -Force
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Office\16.0\Excel\Security\ProtectedView' -Name 'DisableUnsafeLocationsInPV' -Value 0 -PropertyType DWord -Force
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Office\16.0\Excel\Security\ProtectedView' -Name 'DisableAttachmentsInPV' -Value 0 -PropertyType DWord -Force

3. Log Audit & IoC Verification Commands

Verify the currently installed Office version to determine if the system is running a vulnerable build using the following PowerShell script:

powershell
# Query registry to check the installed Office ClickToRun version
$officePath = 'HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration'
if (Test-Path $officePath) {
    $version = Get-ItemProperty -Path $officePath -Name 'ClientVersionToReport'
    Write-Host 'Currently Installed Office Version:' $version.ClientVersionToReport
} else {
    Write-Host 'ClickToRun Office registry path not found. Manual audit required.'
}
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
As this vulnerability is actively exploited in the wild (CISA KEV), immediately apply the official Microsoft security updates to secure your endpoints.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

CVE-2021-27059 is a critical remote code execution (RCE) vulnerability existing in Microsoft Office products. The root cause lies in a memory corruption flaw during the parsing of specific file formats or object structures within the Office application. When a user opens a specially crafted Office document, the application fails to properly validate memory offsets or buffer boundaries, allowing an attacker to hijack the execution flow.

2. Exploitation Mechanics & Attack Scenario

An attacker typically crafts a malicious Office document (such as .xlsx or .docx) containing malformed OLE objects or corrupted formula structures. This document is then distributed via spear-phishing emails or malicious web downloads. Once the victim opens the document, the parsing engine triggers the memory corruption, executing the embedded shellcode. Since this vulnerability is listed in the CISA KEV catalog, active in-the-wild exploitation has been observed, making immediate remediation critical.

3. Infrastructure & Business Impact

Successful exploitation grants the attacker the same privileges as the logged-in user. If the victim has administrative privileges, the attacker can gain full control of the compromised system, install malicious software, and perform lateral movement within the enterprise network. This poses severe risks of data exfiltration, ransomware deployment, and operational disruption.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-27059)

FAQ

Q1. How critical is CVE-2021-27059 and is it actively exploited in the wild?

CVE-2021-27059 is rated CVSS 7.6 (HIGH) with a 30-day EPSS exploitation probability of 6.1%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-27059?

Primary impacted vendors include microsoft across office, excel. Scope summary: Microsoft Office 2013, 2016, 2019, Microsoft 365 Apps, and affected Excel editions

Q3. What temporary mitigations or workarounds exist for CVE-2021-27059 before patching?

[Mitigation] Apply the official Microsoft security patches immediately and restrict opening untrusted attachments Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-27059

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (microsoft)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-27059 Microsoft Office Remote Code Execution Vulnerability (CVE-2021-27059) Technical Advisory (CVSS 7.6) - Patch & Workaround | CVE Pulse