CVE-2021-40539: Authentication Bypass and Remote Code Execution in Zoho ManageEngine ADSelfService Plus
- Vendor
- Zoho Corporation
CVE-2021-40539 is a critical authentication bypass vulnerability affecting Zoho ManageEngine ADSelfService Plus builds 6113 and earlier. Incorrect URL normalization before validation allows specially crafted requests to bypass the security filter protecting REST API endpoints. Unauthenticated attackers can access protected functionality and chain API operations to upload a JavaServer Pages webshell and execute arbitrary code remotely. The vulnerability has been actively exploited for initial access in espionage and ransomware campaigns.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the ADSelfService Plus host, allowing arbitrary command execution, malware installation, persistent webshell access, and theft of application data and credentials. Observed follow-on activity includes administrator credential compromise, lateral movement, theft of Active Directory databases and registry hives, data exfiltration, and ransomware preparation. Domain-wide compromise is possible when attackers subsequently obtain domain administrator credentials or domain controller credential material; these outcomes depend on the surrounding environment and further attacker actions.
Mitigation
If you can’t patch tonight, do this now.
Remove direct internet access to ADSelfService Plus and restrict network access to trusted systems. Monitor application access logs, Java exceptions associated with certificate configuration, unexpected web application artifacts, suspicious child processes, unauthorized accounts, credential dumping, and lateral movement. Hunt for persistent webshells and campaign tools as well as evidence of the initial exploit, because attackers may remove exploitation traces.
Remediation
Patch, then assume compromise.
Upgrade ADSelfService Plus to build 6114, which fixes the vulnerability, or a later supported release. Investigate potentially exposed installations using the vendor's updated exploit detection tool, application logs, and webshell detection guidance. If compromise is identified, isolate the host, preserve evidence and necessary application data, rebuild the compromised system, reinstall a patched version, and restore validated backups. Investigate compromised Active Directory accounts and lateral movement. If Active Directory database compromise is indicated, perform domain-wide password resets and reset the Kerberos ticket-granting account password twice. Patching alone does not remove existing attacker access.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-40539 exploited in the wild?
- Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2021-40539?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2021-40539, the earliest disclosed Sep 7, 2021.
- Is there a patch for CVE-2021-40539?
- Upgrade ADSelfService Plus to build 6114, which fixes the vulnerability, or a later supported release. Investigate potentially exposed installations using the vendor's updated exploit detection tool, application logs, and webshell detection guidance.
- What products are affected by CVE-2021-40539?
- Zoho Corporation Manageengine Adselfservice Plus.
- How severe is CVE-2021-40539?
- CVE-2021-40539 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.0% (100th percentile) as of Nov 4, 2026.
Recent activity
37 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.