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.
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
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.