Skip to content
RCE Advisory Advanced CVE-2022-30153

Windows Lightweight Directory Access Protocol (LDAP) Remote Code Execution Vulnerability (CVE-2022-30153)

A vulnerability in the Windows LDAP client allows a malicious LDAP server to execute arbitrary code on a victim's machine when the victim connects to it. An attacker could exploit this by tricking a user into connecting their LDAP client to a malicious server, leading to remote code execution within the client's context.

Yuki Chen Follow

Originally disclosed on Microsoft

High 8.8 View original

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.

FAQ

How could an attacker exploit this vulnerability? An attacker could exploit the vulnerability by convincing a user to connect a Lightweight Directory Access Protocol (LDAP) client to a malicious LDAP server. When the vulnerability is successfully exploited this could allow the malicious server to gain remote code execution within the LDAP client.

Windows LDAP - Lightweight Directory Access Protocol

Windows LDAP - Lightweight Directory Access Protocol

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Yuki Chen with Cyber KunLun. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 corruption or input validation flaw in the Windows LDAP client when processing specially crafted replies from a server.

Impact

An attacker could gain remote code execution within the context of the user's LDAP client application, but the victim must be tricked into connecting to a malicious server.

What the attacker needed

Victim connects to malicious LDAP server; attacker controls an LDAP server

The fix

Microsoft released a security update to fix this vulnerability; customers should apply it.

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 information in directories, like a phone book for computers. This bug means that if you use a program that talks to an LDAP server and you connect to a bad server, that server can run harmful code on your computer. The attacker has to trick you into connecting to their 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.

More by Yuki Chen

View all

90 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.