CVE-2024-21887: Command Injection in Ivanti Connect Secure and Policy Secure
- Vendor
- Ivanti
CVE-2024-21887 is an operating system command injection vulnerability in the web components of Ivanti Connect Secure and Ivanti Policy Secure releases 9.x and 22.x. An authenticated administrator can submit specially crafted requests to execute arbitrary commands on the appliance. Vulnerable backend APIs, including license-status functionality, invoke Python subprocess operations with shell processing enabled, allowing attacker-controlled input to be interpreted as commands. Chaining the flaw with authentication bypass CVE-2023-46805 or server-side request forgery CVE-2024-21893 enables unauthenticated remote command execution. Exploitation began by at least early December 2023, before public disclosure on January 10, 2024.
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 compromises appliance confidentiality, integrity, and availability through arbitrary command execution. Observed exploitation chains enabled theft of appliance configurations and credentials, deployment of web shells and other malware, persistent access, and lateral movement into enterprise networks. Payloads deployed following exploitation included KrustyLoader delivering Sliver, Mirai botnet malware, and cryptominers. Credential theft and downstream access have enabled full domain compromise in some incidents. Attackers can conceal compromise from integrity-checking tools, and root-level persistence may survive factory resets.
Mitigation
If you can’t patch tonight, do this now.
If patching cannot be completed immediately, apply Ivanti's latest applicable interim mitigation and consider disconnecting affected gateways until secured. The original mitigation could be bypassed through a chain involving CVE-2024-21893. Deploy available intrusion-prevention coverage for Ivanti command injection and authentication bypass, inspect appliances for unusual ports or services, and review outbound traffic. Use internal and external integrity checks according to current Ivanti guidance, but supplement them with broader compromise investigation because attackers have evaded both tools.
Remediation
Patch, then assume compromise.
Apply the latest Ivanti-supported security updates for the affected Connect Secure or Policy Secure release, addressing both CVE-2024-21887 and associated authentication-bypass or SSRF vulnerabilities. Historical fixed Connect Secure releases include 9.1R14.4, 9.1R17.2, 9.1R18.3, 22.4R2.2, and 22.5R1.1; use current vendor guidance to select the appropriate supported release. Investigate potentially exposed appliances and connected systems for compromise, reset exposed credentials, and follow Ivanti recovery and reset guidance. Patching alone does not remove an established attacker foothold, and neither a clean integrity-check result nor a factory reset conclusively establishes that an appliance is uncompromised.
Exploits
8 exploits validated by Mallory's analysis. Hidden: 4 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-2024-21887 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 Jan 10, 2024.
- Is there a public exploit for CVE-2024-21887?
- Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2024-21887, the earliest disclosed Jan 10, 2024.
- Is there a patch for CVE-2024-21887?
- Apply the latest Ivanti-supported security updates for the affected Connect Secure or Policy Secure release, addressing both CVE-2024-21887 and associated authentication-bypass or SSRF vulnerabilities. Historical fixed Connect Secure releases include 9.1R14.4, 9.1R17.2, 9.1R18.3, 22.4R2.2, and 22.5R1.1; use current vendor guidance to select the appropriate supported release.
- What products are affected by CVE-2024-21887?
- Ivanti Connect Secure and Ivanti Policy Secure.
- How severe is CVE-2024-21887?
- CVE-2024-21887 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 4, 2026.
Recent activity
149 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.