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

Microsoft Word Remote Code Execution Vulnerability (CVE-2023-21716)

A heap corruption flaw in Microsoft Word could be triggered when the application opens a specially crafted RTF file, including via the Preview Pane. An unauthenticated attacker could send such a file by email and potentially run commands in the context of the user who opens it.

Joshua J. Drake Follow

Originally disclosed on Microsoft

Critical 9.8 View original

FAQ

What is the attack vector for this vulnerability? An unauthenticated attacker could send a malicious e-mail containing an RTF payload that would allow them to gain access to execute commands within the application used to open the malicious file.

FAQ

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

FAQ

I am running SharePoint Enterprise Server 2013 Service Pack 1. Do I need to install all the updates that are listed for SharePoint Enterprise Server 2013 Service Pack 1? No. Customers running SharePoint Enterprise Server 2013 Service Pack 1 should install either of the following: Cumulative update (ubersrv13). Note that this update also includes the *srvloc2013 update Both of the security updates (sts2013 AND *loc2013), which are the same updates as for Foundation Server 2013 Please note that this is a clarification of the existing servicing model for SharePoint Server 2013 and applies for all previous updates.

FAQ

I am running SharePoint Foundation 2013 Service Pack 1. Do I need to install all the updates that are listed for SharePoint Foundation 2013 Service Pack 1 ? Yes, customers running SharePoint Foundation 2013 Service Pack 1 should install both of the security updates. The updates can be installed in any order.

Microsoft Office Word

Microsoft Office Word

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Joshua J. Drake. 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-safety error in Word's RTF parser that corrupts heap memory when processing a crafted document.

Impact

An attacker could potentially execute arbitrary commands on the victim's machine, and the Preview Pane alone was enough to trigger it.

What the attacker needed

Victim opens or previews a crafted RTF file; attacker can send email to the victim

The fix

Microsoft released security updates for the affected products; the text does not describe the code change itself.

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.

Rich Text Format (RTF) is an old document format that Word can open. A bug in how Word handled certain RTF content let a booby-trapped document corrupt memory, which can sometimes let an attacker run their own commands on the victim's computer. The victim only had to open the file, or even just preview it.

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 Joshua J. Drake

View all

1 more disclosed report, 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.