Skip to content
RCE Advisory Intermediate CVE-2021-31939

Microsoft Excel Remote Code Execution Vulnerability (CVE-2021-31939)

A specially crafted Excel file could trigger a remote code execution vulnerability when opened by a user. An attacker could convince a victim to open the file, potentially allowing code execution on the victim's system.

b2ahex Follow

Originally disclosed on Microsoft

High 7.8 View original

FAQ

Is the Preview Pane an attack vector for this vulnerability? No, the Preview Pane is not an attack vector.

FAQ

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. 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.

Microsoft Office Excel

Microsoft Office Excel

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Ryelv with Tencent. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

What the attacker needed

Victim opens a specially crafted file; attacker convinces victim to click a link

How it was found

  1. An attacker creates a specially crafted Excel file designed to exploit the vulnerability.
  2. In an email attack, the attacker sends the file to the user and convinces them to open it.
  3. In a web-based attack, the attacker hosts the file on a website or a compromised site.
  4. The attacker convinces the user to click a link and then open the specially crafted file.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a flaw in Microsoft Excel that lets an attacker run their own code on your computer if you open a malicious spreadsheet file. The attacker has to trick you into opening the file, for example by sending it as an email attachment or linking to it on a website. Once opened, the file could let the attacker take control of your machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.