Skip to content
Memory corruption Advisory Advanced CVE-2023-36041

Microsoft Office Professional Plus 2019 FCommitHtmlPivotCacheElement use-after-free vulnerability

A use-after-free vulnerability exists in Microsoft Excel when parsing a malformed ElementType element within a PivotCache, leading to a dangling pointer that is later reused. An attacker could exploit this to achieve arbitrary code execution by tricking a user into opening a specially crafted spreadsheet file.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 7.8 View original

A use-after-free vulnerability exists in the ElementType attribute parsing in Microsoft Office Professional Plus 2019 Excel ver 2307 Build 16626.20170. A specially crafted excel spreadsheet document can exploit this vulnerability to achieve arbitrary code execution.

Marcin 'Icewall' Noga, on Cisco Talos

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 pointer to the HtmlPivotTableInfo structure is not set to NULL after the memory is freed, leading to a dangling reference that is later dereferenced.

Impact

With precise heap grooming, an attacker could achieve full control of this use-after-free vulnerability, which could result in further memory corruption and ultimately arbitrary code execution.

What the attacker needed

Victim opens a malicious 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.

A use-after-free is a type of memory bug where a program frees some memory but keeps a pointer to it, then later uses that pointer as if the memory still belongs to it. In this case, Excel frees a structure while reading a malformed part of a spreadsheet, but doesn't clear the pointer, so it later reads from the freed memory. An attacker could craft a file that exploits this to run their own code on the victim's computer.

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 Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

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.