
这是一个用于防御巡检的 CVE-2026-41089 检测脚本。该漏洞是 Microsoft 在 2026 年 5 月安全更新中披露的 Windows Netlogon 远程代码执行漏洞。
This is a CVE-2026-41089 detection script for defense audits. The vulnerability is a Windows Netlogon remote code execution vulnerability disclosed by Microsoft in the May 2026 security update.
The script does not send exploit packets or attempt to trigger Netlogon exceptions. It prioritizes reading the file version of the affected component netlogon.dll, then checks installed KBs, and finally uses the system complete build number as a fallback, reducing false positives from relying solely on OS version numbers.
Detect the local Windows host:
python .\cve_2026_41089_check.py
Detect a remote Windows host via CIM/WMI:
python .\cve_2026_41089_check.py --target dc01.example.com --format json
Detect using offline asset information:
python .\cve_2026_41089_check.py --input-json .\sample_facts.json --format csv
View MSRC current fix information:
python .\cve_2026_41089_check.py --update-msrc
Exit codes:
0: No vulnerable hosts found1: Execution or query failed2: At least one potentially affected host foundEvidence priority:
netlogon.dll file version: directly checks the version of the vulnerability-related component, highest priority.Result status:
patched: component version reaches the fix version, or matching KB is installed.vulnerable: on domain controllers, netlogon.dll component version is lower than the fix version, or component version unavailable but system build and KB evidence still show below the fix level.not_affected: not within affected product/component scope, or host is not a domain controller.unknown: insufficient information to determine.The evidence field in the output explains the basis of judgment, for example:
netlogon.dll_versioninstalled_kbos_build_fallbackdomain_roleData source: Microsoft MSRC 2026-May CVRF.
{
"target": "dc01",
"caption": "Microsoft Windows Server 2019 Standard",
"version": "10.0.17763",
"build_number": "17763",
"ubr": "8000",
"product_type": 2,
"domain_role": 5,
"netlogon_file_version": "10.0.17763.8000",
"installed_kbs": []
}
This project does not provide exploit-based probing, crash verification, or request construction that can be used to reproduce RCE. For production domain controllers, such verification carries high risk and is not suitable for public repositories.
If you need to further reduce false positives, it is recommended to combine the following defensive evidence:
C:\Windows\System32\netlogon.dllThis project is intended only for defense audits in authorized environments. Before taking production action, please cross-check results with Microsoft official announcements, patch management systems, and change records.
| Product | Fix Version | Update |
|---|
| Windows Server 2012 | 6.2.9200.26079 | KB5087470 |
| Windows Server 2012 R2 | 6.3.9600.23181 | KB5087471 |
| Windows Server 2016 | 10.0.14393.9140 | KB5087537 |
| Windows Server 2019 | 10.0.17763.8755 | KB5087538 |
| Windows Server 2022 | 10.0.20348.5139 | KB5087545 |
| Windows Server 2022 Hotpatch | 10.0.20348.5074 | KB5087424 |
| Windows Server 2022 23H2 | 10.0.25398.2330 | KB5087541 |
| Windows Server 2025 | 10.0.26100.32860 | KB5087539 |
| Windows Server 2025 Hotpatch | 10.0.26100.32772 | KB5087423 |