Windows PDF Remote Code Execution Vulnerability (CVE-2017-0023)
The Microsoft Windows PDF Library mishandles objects in memory, allowing an attacker to corrupt memory and execute arbitrary code with the victim's privileges. On Windows 10 with Edge as the default browser, visiting a malicious website could trigger the flaw; otherwise, a user must open a crafted PDF.
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
Microsoft
Microsoft
Customer Action Required
Yes
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 fails to properly validate or manage 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 full control of the system; however, only Windows 10 with Edge as the default browser can be compromised simply by viewing a website, while other systems require the user to open a crafted PDF.
What the attacker needed
Windows 10 with Edge as default browser, or user opens a PDF; victim visits a malicious or compromised website; or victim opens a crafted PDF attachment
The fix
The vulnerability was fixed 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 Windows component that reads PDF files. If a victim opens a malicious PDF, or on some systems just visits a web page, the attacker can run their own code on the victim's computer with the same rights as that user. The fix changes how the library handles memory so the corruption no longer happens.
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.