CVE-2021-31177: Microsoft Office Remote Code Execution Vulnerability
CVE-2021-31177 is a remote code execution vulnerability in Microsoft Office, rated Important by Microsoft, with a CVSS 3.1 base score of 7.8 (High). An attacker can exploit it by an attacker with local access, without any privileges and only if a user takes an action. Microsoft has not reported exploitation in the wild and rates exploitation as less likely. The EPSS model estimates a 3.06% probability of exploitation activity in the next 30 days, higher than 88% of all scored vulnerabilities. Microsoft released the fix on 11 May 2021 in the May 2021 Patch Tuesday, delivered through 4 security updates (KB5001914, KB5001918, KB5001936, KB5001928). It affects 12 products in 1 product family (Microsoft Office).
Key facts
- CVE ID
- CVE-2021-31177
- Severity
- High CVSS 7.8
- Microsoft severity
- Important
- Impact
- Remote Code Execution
- Exploited in the wild
- No
- Publicly disclosed
- No
- Exploitation likelihood
- Less Likely
- Weakness
- CWE-416
- EPSS
- 3.06% (percentile 88%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- May 2021 Patch Tuesday
- Product families
- Microsoft Office
CVSS score and vector
Microsoft scores CVE-2021-31177 at 7.8 (temporal 6.8) using CVSS 3.1. Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
| Metric | Value |
|---|---|
| Attack vector | Local |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
| Exploit code maturity | Unproven |
| Remediation level | Official fix |
| Report confidence | Confirmed |
Frequently asked questions (Microsoft)
Is the Preview Pane an attack vector for this vulnerability?
No, the Preview Pane is not an attack vector.
According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do?
Exploitation of the vulnerability requires that a user open a specially crafted file with an affected version of Microsoft Excel.
- In an email attack scenario, an attacker could exploit the vulnerability by sending the specially crafted file to the user and convincing the user to open the file.
- In a web-based attack scenario, an attacker could host a website (or leverage a compromised website that accepts or hosts user-provided content) containing a specially crafted file designed to exploit the vulnerability.
An attacker would have no way to force users to visit the website. Instead, an attacker would have to convince users to click a link, typically by way of an enticement in an email or instant message, and then convince them to open the specially crafted file.
Affected products (12)
Microsoft Office
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| Microsoft Office 2019 for 32-bit editions | Click to Run | Security Update | https://aka.ms/OfficeSecurityReleases | No |
| Microsoft Office 2019 for 64-bit editions | Click to Run | Security Update | https://aka.ms/OfficeSecurityReleases | No |
| Microsoft Office 2019 for Mac | Release Notes | Security Update | No | |
| Microsoft Office Online Server | KB5001914 | Security Update | 16.0.10374.20000 | Maybe |
| Microsoft 365 Apps for Enterprise for 32-bit Systems | Click to Run | Security Update | https://aka.ms/OfficeSecurityReleases | No |
| Microsoft 365 Apps for Enterprise for 64-bit Systems | Click to Run | Security Update | https://aka.ms/OfficeSecurityReleases | No |
| Microsoft Excel 2016 (32-bit edition) | KB5001918 | Security Update | 16.0.5161.1000 | Maybe |
| Microsoft Excel 2016 (64-bit edition) | KB5001918 | Security Update | 16.0.5161.1000 | Maybe |
| Microsoft Excel 2013 RT Service Pack 1 | KB5001936 | Security Update | 15.0.5345.1000 | Maybe |
| Microsoft Excel 2013 Service Pack 1 (32-bit editions) | KB5001936 | Security Update | 15.0.5345.1000 | Maybe |
| Microsoft Excel 2013 Service Pack 1 (64-bit editions) | KB5001936 | Security Update | 15.0.5345.1000 | Maybe |
| Microsoft Office Web Apps Server 2013 Service Pack 1 | KB5001928 | Security Update | 15.0.5345.1000 | Maybe |
Security updates (4)
NIST NVD data
- NVD status
- Modified
- NVD CVSS
- 7.8 (HIGH)
- NVD weakness
- CWE-416
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| 365 apps | all listed versions |
| excel 2013 | all listed versions |
| excel 2013 | all listed versions |
| excel 2016 | all listed versions |
| office 2013 | all listed versions |
| office 2013 | all listed versions |
| office 2016 | all listed versions |
| office 2019 | all listed versions |
| office online server | all listed versions |
| office web apps server 2013 | all listed versions |
| word 2013 | all listed versions |
| word 2013 | all listed versions |
| word 2016 | all listed versions |
References
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31177 (Patch, Vendor Advisory)
- https://www.zerodayinitiative.com/advisories/ZDI-21-576/ (Third Party Advisory)
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31177 (Patch, Vendor Advisory)
- https://www.zerodayinitiative.com/advisories/ZDI-21-576/ (Third Party Advisory)
Acknowledgments
- kdot working with Trend Micro Zero Day Initiative
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. |