Windows Lightweight Directory Access Protocol (LDAP) Remote Code Execution Vulnerability (CVE-2022-30149)
A flaw in the Windows LDAP client allowed a malicious LDAP server to send specially crafted replies that could execute arbitrary code in the context of the victim's LDAP client application. An attacker could achieve remote code execution if an authenticated victim was tricked into connecting to the attacker's 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 the Windows LDAP client did not properly validate specially crafted replies from a server, leading to memory corruption during processing.
Impact
An attacker could execute arbitrary code within the context of the user's LDAP client application, though exploitation requires preparing the target environment to improve reliability.
What the attacker needed
Authenticated victim; victim connects to malicious LDAP server; attacker prepares target environment
How it was found
- Set up a malicious LDAP server.
- Trick or persuade an authenticated victim to connect to it with their LDAP client application.
- Send specially crafted replies from the server to the client to trigger the vulnerability.
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. In this case the Windows program that talks to LDAP servers had a bug in how it handled replies, so a fake server could take over the program. The attacker still needed the victim to connect to that fake server first.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.