Skip to content
RCE Advisory Advanced CVE-2021-34518

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

A specially crafted Excel file could trigger remote code execution when opened by a user. An attacker could send the file by email or host it on a website and convince the user to open it.

Quan Jin 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

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Jinquan(@jq0904) of DBAPPSecurity Lieying Lab. 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

Impact

An attacker could execute arbitrary code on the victim's system, but only if the user opens the crafted file; the Preview Pane is not an attack vector.

What the attacker needed

Victim opens a crafted Excel file; attacker convinces victim via email or link

The fix

Microsoft should fix the flaw so that opening a crafted file cannot lead to code execution; the text does not state that a fix was released.

How it was found

  1. An attacker creates a specially crafted Excel file.
  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 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 emailing it to you or linking to it on a website. Once opened, the file can take control of the program and potentially the whole 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 by Quan Jin

View all

9 more disclosed reports, best first.

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.