Skip to content
Memory corruption Advisory Advanced CVE-2022-30173

Microsoft Excel Remote Code Execution Vulnerability (CVE-2022-30173)

A specially crafted Excel file could trigger a memory corruption flaw in Microsoft Office Excel, allowing an attacker to run arbitrary code on the victim's machine. The attacker must convince the user to open the file, either from an email attachment or a website.

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.

FAQ

According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. For example, when the score indicates that the Attack Vector is Local and User Interaction is Required , this could describe an exploit in which an attacker, through social engineering, convinces a victim to download and open a specially crafted file from a website which leads to a local attack on their computer.

Microsoft Office Excel

Microsoft Office Excel

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Quan Jin with DBAPPSecurity. 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

Root cause

Likely a memory handling error in Excel when parsing a crafted file, though the text does not state the specific flaw.

Impact

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

What the attacker needed

Victim opens a crafted file; social engineering to deliver the file

The fix

Microsoft addressed the flaw; the text lists customer action as required but does not describe the patch itself.

How it was found

  1. The attacker creates a specially crafted Excel file.
  2. The attacker sends the file by email or hosts it on a website.
  3. The attacker convinces the victim to open the file.
  4. Opening the file triggers the exploit and runs the attacker's code locally.

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.

Excel has a bug where a file built in a particular way can make the program misbehave and run the attacker's instructions on your computer. The attacker cannot do this on their own; they have to trick you into opening the file, for example by emailing it to you or linking to it. Opening the file is what sets the attack off.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Quan Jin

View all

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

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.