Windows Lightweight Directory Access Protocol (LDAP) Remote Code Execution Vulnerability (CVE-2022-30141)
An unauthenticated attacker could send a specially crafted request to a Windows LDAP server whose MaxReceiveBuffer policy is above the default, and if successful the attacker's code would run as the SYSTEM account. The text states exploitation also requires the attacker to prepare the target environment to improve reliability.
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.
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
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.
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 service handles a specially crafted request when its receive buffer policy is raised above the default.
Impact
Successful exploitation could let an unauthenticated attacker run code as the SYSTEM account, but only on servers where the MaxReceiveBuffer policy is above the default and after the attacker prepares the environment.
What the attacker needed
MaxReceiveBuffer policy above default; attacker prepares target environment; network access to LDAP service
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 directory service that Windows servers use to store and look up user and computer information. This flaw means a remote person who has not logged in could send a malformed network message and, if the server is configured in a non-default way, get their own code to run with the highest local privileges. Most servers with the default setting are not affected.
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.