LDAPNightmare, a PoC exploit targets Windows LDAP flaw CVE-2024
Vulnerabilities mentionedAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2024-49112 +1 in the same advisory: …49113 | Unauthenticated RCE in Microsoft Windows LDAP (CVE-2024-49112) CVE-2024-49112 is an integer overflow (CWE-190) in the Windows Lightweight Directory Access Protocol (LDAP) implementation that permits remote code execution. It is triggered by network traffic sent to the LDAP service, with no authentication or user interaction required (CVSS 3.1 network vector, low complexity, no privileges). A successful attacker gains arbitrary code execution in the context of the LDAP service process on the target, and on Active Directory domain controllers this typically means compromising a core infrastructure host with high confidentiality, integrity, and availability impact. All listed Windows 10 and Windows 11 client versions and Windows Server 2008 through 2022 are affected, making virtually every unpatched Windows environment — especially those running domain controllers — exposed. Per related coverage, the flaw was addressed in Microsoft's December 2024 Patch Tuesday (72 flaws fixed, four rated critical); no public proof-of-concept or confirmed in-the-wild exploitation is known for this specific RCE yet, though a related Windows LDAP flaw ('LDAPNightmare') has a public PoC that crashes LSASS and reboots domain controllers, and the ~71% EPSS score signals a high likelihood of exploitation within 30 days. Do: Apply Microsoft's December 2024 (or later) Windows security updates immediately, prioritizing domain controllers and any server with LDAP reachable from untrusted networks. Until fully patched, restrict inbound LDAP/LDAPS traffic (TCP and UDP 389 and 636) to trusted sources and monitor for LSASS crashes or restarts on domain controllers. Because fixes are version-specific cumulative updates, verify each Windows release against Microsoft's advisory to confirm the correct KB is installed. | 9.8 group max | 71% |
| massorder of millions of systems |
Indicators of compromiseauto-extracted · verify before use · export allAll →
| Type | Indicator | Context |
|---|---|---|
| domain | safebreachlabs.pro | chine The Victim is triggered to send a DNS SRV query about SafeBreachLabs.pro The Attacker’s DNS server responds with the Attacker’s host |
Full article474 words · extracted from securityaffairs.com · click to collapse
Experts warn of a new PoC exploit, LDAPNightmare, that targets a Windows LDAP flaw (CVE-2024-49113), causing crashes & reboots.
The vulnerability CVE-2024-49113 (CVSS score of 7.5), named LDAPNightmare, is a Windows Lightweight Directory Access Protocol (LDAP) Denial of Service flaw that was discovered by the researcher Yuki Chen.
An attacker can exploit the now-patched vulnerability to trigger a denial of service condition.
On December 10, 2024, two critical LDAP vulnerabilities (CVE-2024-49112, CVSS 9.8, and CVE-2024-49113) were disclosed by Yuki Chen in Microsoft’s Patch Tuesday update.
Researchers at SafeBreach Labs developed a proof of concept exploit for this vulnerability that crashes any unpatched Windows Server (not just Domain Controllers) with Internet connectivity.
“SafeBreach Labs developed a proof of concept exploit for CVE-2024-49113 that crashes any unpatched Windows Server (not just DCs) with no pre-requisites except that the DNS server of the victim DC has Internet connectivity.” states the report published by SafeBreach.
The attack devised by the researchers involves an attacker manipulating a victim server to send DNS and LDAP requests, culminating in a crafted LDAP response that crashes the LSASS process and reboots the server.
Below is the attack sequence devised by the researchers:
- The Attacker sends a CLDAP referral response packet with a specific value resulting in LSASS to crash and force a reboot of the Victim server
- The attacker sends a DCE/RPC request to the Victim Server Machine
- The Victim is triggered to send a DNS SRV query about SafeBreachLabs.pro
- The Attacker’s DNS server responds with the Attacker’s hostname machine and LDAP port
- The Victim sends a broadcast NBNS request to find the IP address of the received hostname (of the Attacker’s)
- The Attacker sends an NBNS response with its IP Address
- The Victim becomes an LDAP client and sends a CLDAP request to the Attacker’s machine
The researchers speculate that the same attack could allow a remote attacker to execute arbitrary code on vulnerable servers by modifying the CLDAP packet.
“This research set out to explore whether the LDAP CVE-2024-49113 vulnerability could be exploited. Our research proved that not only can it be exploited against Domain Controllers, it also affects any unpatched Windows Server.” concludes SafeBreach. “In addition, we provided an exploit PoC for testing purposes, noted in the section above.
We also believe that this will make exploitation of CVE-2024-49112 more likely in the near future, so we recommend patching both vulnerabilities.”
Organizations are urged to apply Microsoft’s patch to address the vulnerability. Due to the critical nature of patching domain controllers and Windows Servers, organizations should proceed cautiously. In the interim, implementing detections for suspicious CLDAP referral responses, DsrGetDcNameEx2 calls, and DNS SRV queries is recommended until the patch is applied.
The report includes a technical deep dive for CVE-2024-49113.
Follow me on Twitter: @securityaffairs and Facebook and Mastodon
(SecurityAffairs – hacking, newsletter)
Text extracted automatically; images, tables and formatting may be missing. Original: https://securityaffairs.com/172618/security/ldapnightmare-exploit-cve-2024-49113.html