Skip to content
Memory corruption Advisory Advanced CVE-2017-8737

Windows PDF Remote Code Execution Vulnerability (CVE-2017-8737)

The Microsoft Windows PDF Library mishandled objects in memory, allowing memory corruption that could let an attacker execute arbitrary code with the current user's rights. On Windows 10 with Edge as the default browser, visiting a malicious website hosting a crafted PDF could trigger the flaw; on other systems the victim had to open a malicious PDF.

Ke Liu Follow

Originally disclosed on Microsoft

Critical 4.2 View original

Description

A remote code execution vulnerability exists when Microsoft Windows PDF Library improperly handles objects in memory. The vulnerability could corrupt memory in a way that enables an attacker to execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain the same user rights as the current user. If the current user is logged on with administrative user rights, an attacker could take control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To exploit the vulnerability on Windows 10 systems with Microsoft Edge set as the default browser, an attacker could host a specially crafted website that contains malicious PDF content and then convince users to view the website. The attacker could also take advantage of compromised websites, or websites that accept or host user-provided content or advertisements, by adding specially crafted PDF content to such sites. Only Windows 10 systems with Microsoft Edge set as the default browser can be compromised simply by viewing a website. The browsers for all other affected operating systems do not automatically render PDF content, so an attacker would have no way to force users to view attacker-controlled content. Instead, an attacker would have to convince users to open a specially crafted PDF document, typically by way of an enticement in an email or instant message or by way of an email attachment. The update addresses the vulnerability by modifying how affected systems handle objects in memory.

Microsoft Windows PDF

Microsoft Windows PDF

The original report as published on the Microsoft Security Response Center, by Ke Liu of Tencent’s Xuanwu Lab. 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 the PDF library failed to properly validate or handle objects in memory, leading to memory corruption.

Impact

An attacker could execute arbitrary code with the current user's rights, and if that user is an administrator, could take control of the system; on Windows 10 with Edge as the default browser, viewing a malicious website was enough, while other systems required the user to open a crafted PDF.

What the attacker needed

Windows 10 with Edge as default browser: visit site; Other systems: open a crafted PDF; Victim must be convinced to view content

The fix

The update addresses the vulnerability by modifying how affected systems handle objects in memory.

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 memory corruption bug in a component that reads PDF files. If a victim opens a specially crafted PDF, the bug can let an attacker run their own code on the victim's computer with the same permissions as that user. On Windows 10 with Edge as the default browser, simply viewing a website that hosts the malicious PDF was enough, but on other systems the user had to open the PDF 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.

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.