Skip to content
Memory corruption Advisory Advanced CVE-2019-0765

Comctl32 Remote Code Execution Vulnerability (CVE-2019-0765)

A memory corruption flaw in the Windows comctl32.dll component could let an attacker run arbitrary code with the rights of the logged-in user. The attacker would need to lure a victim to a crafted website or attachment, and could only gain higher privileges if that user already had administrative rights.

j00sean Follow

Originally disclosed on Microsoft

High 7.5 View original

Description

A remote code execution vulnerability exists in the way that comctl32.dll handles objects in memory. The vulnerability could corrupt memory in such a way that an attacker could 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, the 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. An attacker could host a specially crafted website designed to exploit the vulnerability through Internet Explorer and then convince a user 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 content that could exploit the vulnerability. However, in all cases an attacker would have no way to force a user to view the attacker-controlled content. Instead, an attacker would have to convince a user to take action, typically by an enticement in an email or instant message, or by getting the user to open an attachment sent through email. The security update addresses the vulnerability by modifying how comctl32.dll handles objects in memory.

Microsoft Windows

Microsoft Windows

The original report as published on the Microsoft Security Response Center, by @j00sean based on the previous work of @magicmac2000. 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 corruption bug in how comctl32.dll handles objects in memory, though the text does not describe the specific coding mistake.

Impact

An attacker could execute arbitrary code as the current user, and could take full control of the system if that user is an administrator; the text notes the attacker cannot force a victim to view the crafted content.

What the attacker needed

Victim uses Internet Explorer; victim visits crafted site or opens attachment

The fix

It was fixed by a security update that changes how comctl32.dll handles 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.

comctl32.dll is a Windows library that draws common screen controls such as buttons and lists. A bug in how it handles data in memory means a malicious web page or file could make it misbehave and run the attacker's code. The attacker cannot force you to visit the page, so they rely on tricking you into clicking a link or opening an attachment.

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 j00sean

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.