Skip to content
Memory corruption Advisory Advanced CVE-2018-8225

Windows DNSAPI Remote Code Execution Vulnerability (CVE-2018-8225)

Windows DNSAPI.dll failed to properly handle DNS responses, allowing a malicious DNS server to send corrupted responses. An attacker could exploit this to run arbitrary code as the Local System Account.

Nick Freeman Follow

Originally disclosed on Microsoft

Critical 8.1 View original

Description

A remote code execution vulnerability exists in Windows Domain Name System (DNS) DNSAPI.dll when it fails to properly handle DNS responses. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the Local System Account. To exploit the vulnerability, the attacker would use a malicious DNS server to send corrupted DNS responses to the target. The update addresses the vulnerability by modifying how Windows DNSAPI.dll handles DNS responses.

Microsoft Windows

Microsoft Windows

The original report as published on the Microsoft Security Response Center, by Nick Freeman. 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-safety error in DNSAPI.dll when parsing DNS responses, though the text does not specify the exact coding mistake.

Impact

An attacker could run arbitrary code as the Local System Account, but only if the target uses a malicious DNS server.

What the attacker needed

Target uses a malicious DNS server

The fix

The vulnerability was fixed by modifying how Windows DNSAPI.dll handles DNS responses.

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 a Windows component that processes replies from DNS servers, which translate website names into addresses. A malicious DNS server could send a malformed reply that tricks the component into running the attacker's code with high privileges.

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 Nick Freeman

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.