Windows Lightweight Directory Access Protocol (LDAP) Remote Code Execution Vulnerability (CVE-2022-30146)
A flaw in the Windows LDAP client application allows a malicious LDAP server to send specially crafted replies that can lead to arbitrary code execution. An attacker could exploit this by tricking an authenticated victim into connecting to a malicious LDAP server.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to prepare the target environment to improve exploit reliability.
FAQ
According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). What is the target context of the remote code execution? An authenticated victim who is connected to the network must be tricked or persuaded to connect to a malicious LDAP server using their LDAP client application. After the connection is made, the server can send specially crafted replies to the client that exploit the vulnerability and permit execution of arbitrary code within the context of the user's LDAP client application.
Windows LDAP - Lightweight Directory Access Protocol
Windows LDAP - Lightweight Directory Access Protocol
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a memory-safety flaw in how the Windows LDAP client parses specially crafted replies from a server.
Impact
An attacker who prepares the environment and persuades an authenticated victim to connect to a malicious LDAP server could execute arbitrary code in the context of the victim's LDAP client application.
What the attacker needed
Attacker controls a malicious LDAP server; victim is authenticated and on the network; victim is tricked into connecting
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
LDAP is a protocol used to look up directory information, such as users and groups, on a network. In this case the client program that connects to an LDAP server has a bug, so a server controlled by an attacker can send back a malicious reply that makes the client run the attacker's code. The attacker cannot do this alone; they must first persuade a logged-in user to connect to their server.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.