Skip to content
RCE Advisory Advanced CVE-2017-0039

Windows DLL Loading Remote Code Execution Vulnerability (CVE-2017-0039)

Windows failed to properly validate input before loading DLL files, which could let an attacker who already has local access and can run a malicious application take full control of the system. The update corrects how Windows validates that input before loading DLLs.

lywang Follow

Originally disclosed on Microsoft

High 7.8 View original

Description

A remote code execution vulnerability exists when Windows improperly validates input before loading dynamic link library (DLL) files. An attacker who successfully exploited the vulnerability 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. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights. To exploit the vulnerability, an attacker must first gain access to the local system and have the ability to execute a malicious application. The security update addresses the vulnerability by correcting how Windows validates input before loading DLL files.

Windows DLL Loading

Windows DLL Loading

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by lywang of Tencent 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 Windows did not sufficiently validate input before loading DLL files, allowing a locally executed malicious application to influence which library gets loaded.

Impact

An attacker with local access and the ability to run a malicious application could take control of the system, install programs, view or change data, or create accounts with full user rights; accounts with fewer rights would be less affected.

What the attacker needed

Local access to the system; ability to run a malicious application

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 DLL is a file of shared code that programs load when they start. Here, Windows did not check something properly before loading such a file, so a malicious program already running on the machine could get the system to load the wrong code and gain full control. The attacker first needs a way to run a program on the machine, so this is not something reachable purely over the internet.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.