
Technical analysis and PoC demonstration of CVE-2024-38063, an IPv6 TCP/IP remote code execution vulnerability in Windows, including root cause, lab reproduction, and mitigation strategies.
This project presents a technical analysis and practical demonstration of the critical vulnerability CVE-2024-38063, disclosed by Microsoft during Patch Tuesday (August 13, 2024).
The vulnerability affects the Windows TCP/IP stack, specifically the IPv6 component implemented in the kernel driver:
C:\Windows\System32\drivers\tcpip.sys
Discovered by security researcher XiaoWei from Kunlun Lab, this vulnerability may allow attackers to perform Remote Code Execution (RCE) by exploiting incorrect processing of IPv6 extension headers.
Integer Underflow → Buffer Overflow → Remote Code Execution
The vulnerability is located in the function:
Ipv6pProcessOptions()
inside the Windows kernel driver:
tcpip.sys
IPv6 introduces extension headers, which allow additional instructions to be included in network packets.
Improper handling of specially crafted IPv6 packets may cause:
Attackers exploit this weakness by sending malicious IPv6 fragmented packets containing manipulated extension headers.
The vulnerability impacts Windows operating systems where IPv6 is enabled by default:
| Machine | Role |
|---|---|
| Kali Linux | Attacker machine |
| Windows Server 2019 | Target machine |
| VirtualBox NAT Network | Internal network |
Both virtual machines must belong to the same internal network.
VirtualBox configuration:
Tools → Network → NAT Network → Create
Example configuration:
Network address: 192.168.100.0/24
DHCP: Enabled
Both virtual machines must use the same NAT Network interface.
Manual configuration ensures stable connectivity.
Confirm IP addresses are correctly assigned.
Test communication between both machines.
The exploit demonstrates how malformed IPv6 packets can cause memory corruption.
Administrator privileges are required:

Successful exploitation causes memory corruption leading to system crash.

This project was conducted strictly in a controlled and isolated virtual lab environment using virtual machines.
This work is part of an ethical hacking learning process and is intended solely for:
🚫 Do NOT attempt to reproduce this attack on systems without explicit authorization.
Any misuse of this information is strictly discouraged.