Skip to content
RCE Advisory Advanced CVE-2017-8509

Microsoft Office Remote Code Execution Vulnerability (CVE-2017-8509)

Microsoft Office failed to properly handle objects in memory, allowing a specially crafted file to run code in the security context of the logged-on user. An attacker could exploit this by convincing a user to open a malicious file, for example via an email attachment or a link to a website hosting it.

Haifei Li Follow

Originally disclosed on Microsoft

Description

A remote code execution vulnerability exists in Microsoft Office software when it fails to properly handle objects in memory. An attacker who successfully exploited the vulnerability could use a specially crafted file to perform actions in the security context of the current user. For example, the file could then take actions on behalf of the logged-on user with the same permissions as the current user. To exploit the vulnerability, a user must open a specially crafted file with an affected version of Microsoft Office software. 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) that contains a specially crafted file that is designed to exploit the vulnerability. However, an attacker would have no way to force the user to visit the website. Instead, an attacker would have to convince the user to click a link, typically by way of an enticement in an email or Instant Messenger message, and then convince the user to open the specially crafted file. The security update addresses the vulnerability by correcting how Microsoft Office handles files in memory.

FAQ

The affected software table contains the link to the SharePoint Server 2013 cumulative update, KB 3203430, which includes all of the required SharePoint Server 2013 updates for CVE-2017-8509. As an alternative to installing the cumulative update, you may install the individual security updates from the following links. You must install all packages applicable to your environment to be protected from the vulnerability described in CVE-2017-8509. 3203384 3203388 3203390 3203397 3203385 3172445 Microsoft has also released an update for Microsoft Office for Mac 2011 and Microsoft Office for Mac 2016 as a defense-in-depth measure. I have Microsoft Word 2010 installed. Why am I not being offered the KB3203463 update? The KB3203463 update only applies to systems running specific configurations of Microsoft Office 2010. Other systems will not be offered the update.

Microsoft Office

Microsoft Office

The original report as published on the Microsoft Security Response Center, by Haifei Li of the McAfee Security Team. 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 how Office processes objects in a crafted file, which the text does not describe in technical detail.

Impact

An attacker could run code with the same permissions as the logged-on user, but only if the user opens the crafted file; the text notes an attacker cannot force a user to visit a website.

What the attacker needed

Victim opens a crafted file; affected Office version

How it was found

  1. An attacker creates a specially crafted file.
  2. The attacker sends the file by email or hosts it on a website.
  3. The attacker convinces the user to open the file.
  4. The file runs actions in the security context of the current user.

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 Office that lets a malicious document run code on your computer. The attacker has to trick you into opening the file, for example from an email attachment or a link. If you open it, the code runs with your own permissions, so it can do whatever you could do.

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 Haifei Li

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.

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.