Microsoft Office Excel WorksheetOptions Code Execution Vulnerability
A use-after-free vulnerability exists in Microsoft Office Excel when handling a specially crafted XLS file containing HTML/XML tags. An attacker could provide a malformed file to a victim to trigger the vulnerability and potentially achieve remote code execution.
Originally disclosed on Cisco Talos
An exploitable use-after-free vulnerability exists in the mso.dll of Microsoft Office. A specially crafted XLS file can cause a use after free, resulting in a remote code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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, the vulnerability is caused by an object related to the ExcelWorkbook element being reused after it has been freed when a WorksheetOptions element lacks valid subelements, leading to a use-after-free.
Impact
An attacker could potentially achieve remote code execution by exploiting this use-after-free, though the report only demonstrates a crash and states that proper heap grooming could lead to code execution.
What the attacker needed
Victim opens a malicious XLS file; attacker provides the file
How it was found
- Create an XLS file containing HTML/XML with an ExcelWorkbook element and a WorksheetOptions element that has no valid subelements.
- Include a second ExcelWorkbook element with an empty WorksheetOptions element to trigger reuse of the freed object.
- Open the crafted XLS file in Microsoft Excel to cause a use-after-free and potentially a crash.
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 report describes a memory corruption bug in Microsoft Excel. When Excel opens a specially crafted file, it frees some memory but then keeps using it, which can crash the program or let an attacker run their own code. The attacker needs to trick a victim into opening the malicious file.
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.