CVE-2021-40539: Zoho ManageEngine ADSelfService Plus Authentication Bypass Vulnerability
Zoho ManageEngine ADSelfService Plus contains an authentication bypass vulnerability affecting the REST API URLs which allow for remote code execution.
CVE-2021-40539 is an authentication bypass vulnerability in Zoho ManageEngine ADSelfService Plus. It affects REST API URLs and can allow an unauthenticated attacker to achieve remote code execution on the host. The flaw has been used in ransomware operations, so organizations running this product should treat it as a high-priority exposure until they confirm they are patched and clean.
Public detail is limited to the CISA description and the stated weakness class. Confirm exact product builds, fixed releases, and any configuration prerequisites directly against the vendor advisory before acting.
How it works
The vulnerability is classified under CWE-55 and is described as an authentication bypass that targets REST API URLs in ADSelfService Plus. In practical terms, the product fails to enforce proper authentication on certain API endpoints. An attacker who can reach those endpoints can bypass the normal login controls.
Once authentication is bypassed, the same access path can be leveraged to execute code on the underlying system. The precise request format, parameters, or secondary steps are not provided in the available facts; defenders should treat any unauthenticated interaction with the REST API surface as potentially sufficient for full compromise. Because the end result is remote code execution, successful exploitation typically yields the privileges of the service account running ADSelfService Plus, which is often highly privileged in Active Directory environments.
Am I affected? How to find it in your systems
ADSelfService Plus is commonly deployed as an on-premises self-service password-reset and identity portal, usually reachable from internal networks and sometimes exposed to the internet for remote users. Inventory every instance by searching configuration-management databases, software inventories, and network scans for hosts listening on the ports or virtual directories associated with ManageEngine ADSelfService Plus.
- Identify running processes, installed services, and web applications whose banners or file paths reference ADSelfService Plus.
- Compare the installed build against the fixed versions listed in the vendor advisory; do not rely on generic version ranges.
- Review web-server and application logs for unauthenticated requests to REST API paths, especially any that return success codes or unusual payloads.
- Look for new or unexpected child processes spawned by the ADSelfService Plus service account, outbound connections from that host, or creation of unfamiliar scheduled tasks and services—common post-exploitation artifacts after remote code execution.
If the product is internet-facing, prioritize those instances first. Confirm exposure and version status against the official vendor advisory rather than third-party summaries.
How to remediate
The required action is to apply the updates issued by Zoho for ADSelfService Plus, following the vendor’s installation and verification instructions exactly. Patching removes the authentication-bypass condition on the affected REST API URLs and is the only complete fix.
- Schedule and deploy the vendor-supplied update on every identified instance.
- After patching, restart the service as directed and verify that the new build number matches the fixed release.
- Re-validate that previously reachable unauthenticated API endpoints now correctly reject unauthenticated requests.
- As hardening for this class of flaw, restrict administrative and API interfaces to management networks, enforce strong authentication on all remaining endpoints, and ensure the service account runs with least privilege.
Document the change and retain pre- and post-patch configuration snapshots for later incident review.
If you can't patch immediately
Until the vendor update can be applied, reduce the attack surface with compensating controls.
- Segment the host so that only authorized management stations and necessary clients can reach the ADSelfService Plus ports; block direct internet access if it is not required.
- Place a web-application firewall or reverse-proxy rule in front of the service to drop or challenge requests to REST API URLs that do not carry valid session material; tune the rule against the vendor’s description of the vulnerable paths.
- Temporarily disable any self-service or API features that are not business-critical, if the product configuration allows it.
- Increase monitoring: alert on anomalous request patterns to API endpoints, unexpected process creation by the service account, and any new local accounts or persistence mechanisms.
These measures lower risk but do not eliminate it; treat them as temporary bridges to full patching.
If your data may have been exposed
Actively exploited vulnerabilities that enable remote code execution are frequently used to stage ransomware and data theft. If logs or other indicators suggest compromise, isolate the host, preserve forensic images, and begin incident-response procedures that include credential rotation and Active Directory review. As a quick additional check, you can run a free exposure scan of your email addresses against known breach data sets to see whether associated credentials have already appeared in public leaks.
AICompiled with AI assistance from public sources and published under our editorial standards.