Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-41096: Windows DNS Client Heap Buffer Overflow Remote Code Execution

Published May 12, 2026 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS0.97%61st percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Microsoft Corporation
IdentifiersCVE-2026-41096CWE-122 · Heap-based Buffer Overflow

CVE-2026-41096 is a heap-based buffer overflow in the Microsoft Windows DNS Client. Improper processing of specially crafted DNS responses can corrupt heap memory and allow an unauthenticated remote attacker to execute arbitrary code on a vulnerable Windows system without user interaction. Exploitation requires the attacker to influence DNS responses processed by the target. Remote code execution is possible in certain configurations, but the susceptible configurations and exact vulnerable function are not established. The vulnerability is rated Critical with a CVSS score of 9.8.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise affected Windows workstations or servers through unauthenticated remote code execution. Resulting endpoint compromise could enable credential harvesting, ransomware deployment, further network intrusion, and operational disruption. The execution privilege level is not established. The widespread use of the Windows DNS Client creates a broad potential attack surface, particularly where endpoints receive DNS responses through untrusted networks or compromised DNS infrastructure.

Mitigation

If you can’t patch tonight, do this now.

Where patching is delayed, restrict outbound DNS resolution to trusted resolvers and prevent direct use of unapproved resolvers. This reduces exposure but does not eliminate risk from compromised trusted resolvers or attackers able to manipulate DNS traffic. Monitor for abnormal child processes spawned by background network services. No complete vendor-provided workaround is established.

Remediation

Patch, then assume compromise.

Apply the Microsoft security updates released on May 12, 2026, or applicable superseding cumulative updates for the affected Windows release. KB5089548 is identified as addressing this vulnerability for applicable systems; select the appropriate update for each operating system version rather than treating a single KB as universal. Prioritize endpoints using untrusted networks and systems exposed to attacker-influenced DNS responses.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
CVE-2026-41096This repository is a compact two-component proof-of-concept for CVE-2026-41096, described as a heap overflow in Microsoft dnsapi.dll within DnsRawTruncateMessageForUdp(). The repo contains three files: a README with usage and expected outcomes, a Python rogue DNS server, and a Win32 C trigger client. The exploit flow is straightforward: rogue_dns_server.py binds UDP/53 on 0.0.0.0 and answers every received DNS query with a deliberately malformed DNS response whose header sets QDCOUNT=0 and ARCOUNT=1, followed by a single oversized OPT record. The response is 623 bytes total (12-byte DNS header + 11-byte OPT RR header + 600 bytes of RDATA), intentionally exceeding normal UDP DNS truncation expectations. trigger_client.c is the victim-side trigger. It loads dnsapi.dll dynamically, resolves DnsQueryRaw, configures a custom UDP DNS server using the operator-supplied IP, and submits an asynchronous query for trigger.cve202641096.test. A completion callback records the result, while SetUnhandledExceptionFilter is used to catch process-wide crashes, including those on callback threads. The client interprets outcomes as: patched if queryStatus is DNS_ERROR_BAD_PACKET (0x251E), vulnerable if a crash occurs or if status 0 indicates the malformed response was processed. This is not a weaponized RCE exploit; it is an operational crash/verification PoC intended to confirm the presence of the heap overflow via network-triggered malformed DNS parsing.m0n1x90 · Disclosed May 24, 2026 · python · c · networkOperationalCVE-2026-41096-Attack-SurfaceThis repository is a small Visual Studio C++ project that builds a Windows dynamic-link library acting as a dnsapi.dll proxy/hijack implant. The structure is minimal: a solution file, a VC++ project file, one main source file (dllmain.cpp), and standard precompiled-header scaffolding. The README references CVE-2026-41096 and describes the repository as a real-world attack surface example rather than a polished exploit framework. The core logic is in dllmain.cpp. The DLL uses many linker export-forwarding directives to preserve the dnsapi export surface by forwarding calls to a renamed backing DLL identified as 'tmpbwnkjl'. This is a classic proxy DLL pattern intended to keep the host application functioning while allowing attacker code to run when the malicious DLL is loaded. The code explicitly exports DnsQueryRaw and overrides its behavior. When DnsQueryRaw is invoked, it emits a debug string, calls LogProcessInfo(), records the current process filename and PID to C:\tmp\rlog.txt, and returns DNS_STATUS_TIMEOUT. Operationally, this is not a remote network exploit by itself; it is a local execution primitive/persistence or hijack component that depends on DLL search-order abuse, side-loading, or replacement of dnsapi.dll in a vulnerable application context. Its main capability is code execution inside any process that loads the malicious DLL, with lightweight telemetry/logging and behavior tampering for DnsQueryRaw. There is no shell, downloader, C2, or external network infrastructure embedded in the visible code. The observable artifacts are primarily the local log path and the forwarding target name used to chain to the legitimate DLL.TwoSevenOneT · Disclosed Jun 4, 2026 · cpp · xml · local · fileOperationalCVE-2026-41096-POCThis repository is a small proof-of-concept for a Windows DNS client-side vulnerability in the DnsQueryRaw path, specifically noted in DnsRawTruncateMessageForUdp. It contains two code files and a README. client.c is the victim-side trigger: a minimal Windows program using the WinDNS API to repeatedly call DnsQueryRaw for example.com over UDP with DNS_QUERY_BYPASS_CACHE, asynchronously waiting on a callback. The code requires manual configuration of the network interface index and appears intended to force the vulnerable parsing path on Windows 11 / certain Windows Server builds. poc.py is the attacker-side network trigger built with Scapy. It sniffs UDP/53 traffic on a specified interface, looks for DNS queries for www.example.com., extracts the DNS transaction ID, and sends back a handcrafted raw DNS response rather than using Scapy's DNS builder. The malformed response is notable for qdcount=0 and inclusion of only an OPT RR (EDNS0 type 41) with a large 0xff-length data section padded with 0x42 bytes, which the README states is necessary to trigger the bug. Overall, the repository is not a complete RCE exploit; it is a targeted network-triggering PoC intended to crash or otherwise exercise the vulnerable DNS parsing logic. There is no persistence, shell payload, or post-exploitation logic. The structure is straightforward: README for setup notes, client.c to invoke the vulnerable API on the target, and poc.py to generate the malicious DNS response.satchfunky · Disclosed May 24, 2026 · c · python · networkPoCCVE-2026-41096-POCThis three-file proof-of-concept repository targets a suspected flaw in Microsoft Windows 11 DNS raw-query handling, identified by the author as DnsRawTruncateMessageForUdp within DnsQueryRaw. client.c is a Windows C program that repeatedly issues asynchronous UDP DnsQueryRaw requests with cache bypassing, providing a local path to invoke the affected API because the author states no default Windows 11 service was known to use it. poc.py is a Scapy-based network responder: it sniffs UDP DNS traffic on a configured interface and injects a manually assembled malformed DNS response containing an EDNS OPT record and an oversized data section. The README explicitly states that completing exploitation is left as an exercise, so this is a trigger PoC rather than a complete exploit. Windows 10 is described as unaffected; a specific but unnamed Windows Server release may also be affected. Notably, the supplied C client requests example.com whereas the Python responder only handles www.example.com, so the files may require adjustment to operate together.wuyou6956-glitch · Disclosed Sep 30, 2026 · c · python · network · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationWindows 11 23h2operating_system
Microsoft CorporationWindows 11 24h2operating_system
Microsoft CorporationWindows 11 25h2operating_system
Microsoft CorporationWindows 11 26h1operating_system
Microsoft CorporationWindows Server 2022 23h2operating_system
Microsoft CorporationWindows Server 2025operating_system
Microsoft CorporationWindows Server 23h2operating_system
FAQ

Frequently asked questions

Is CVE-2026-41096 exploited in the wild?
As of Oct 25, 2026, Mallory has no reports of CVE-2026-41096 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-41096?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2026-41096, the earliest disclosed May 24, 2026.
Is there a patch for CVE-2026-41096?
Apply the Microsoft security updates released on May 12, 2026, or applicable superseding cumulative updates for the affected Windows release. KB5089548 is identified as addressing this vulnerability for applicable systems; select the appropriate update for each operating system version rather than treating a single KB as universal.
What products are affected by CVE-2026-41096?
Microsoft Corporation Windows 11 23h2, Microsoft Corporation Windows 11 24h2, Microsoft Corporation Windows 11 25h2, Microsoft Corporation Windows 11 26h1, Microsoft Corporation Windows Server 2022 23h2, and 2 more.
How severe is CVE-2026-41096?
CVE-2026-41096 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 0.97% (61st percentile) as of Oct 25, 2026.
Activity feed

Recent activity

64 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+16 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity41Community discussion across Reddit, Mastodon, and other social sources.