Skip to content
RCE Advisory Advanced CVE-2022-22012

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

A remote code execution flaw exists in Windows LDAP when the MaxReceiveBuffer policy is set above its default value. An unauthenticated attacker could send a crafted request to run code as the SYSTEM account.

Yuki Chen Follow

Originally disclosed on Microsoft

High 9.8 View original

FAQ

Are there any special conditions necessary for this vulnerability to be exploitable? Yes. This vulnerability is only exploitable if the MaxReceiveBuffer LDAP policy is set to a value higher than the default value. Systems with the default value of this policy would not be vulnerable. For more information, please see LDAP policies .

FAQ

How could an attacker exploit this vulnerability? An unauthenticated attacker could send a specially crafted request to a vulnerable server. Successful exploitation could result in the attacker's code running in the context of the SYSTEM account.

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-safety error in how Windows LDAP handles incoming requests when the receive buffer is configured larger than the default.

Impact

An unauthenticated attacker could run code as the SYSTEM account, but only on servers where the MaxReceiveBuffer policy is above its default.

What the attacker needed

MaxReceiveBuffer policy above default; Network access to the LDAP service; No authentication needed

The fix

Microsoft released a security update; administrators should apply it and keep the MaxReceiveBuffer policy at its default value.

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 and manage directory information, such as users and computers, on a network. This bug means a server running Windows LDAP could be tricked by a malicious network message into running the attacker's code with very high privileges. It only affects servers where an administrator has changed a specific buffer-size setting from its default.

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.