CVE-2024-21887: Ivanti Connect Secure and Policy Secure Command Injection Vulnerability
CVE-2024-21887 is a critical-severity flaw (CVSS 9.1) affecting connect secure, policy secure, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A command injection vulnerability in web components of Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x) allows an authenticated administrator to send specially crafted requests and execute arbitrary commands on the appliance.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Used in ransomware campaigns
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.1 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 100.0% (top 1%) |
| CISA exploited list | Yes, fix due 2024-01-22, used in ransomware |
| Weakness | CWE-77 |
| Published | 2024-01-12 |
| Last modified | 2026-08-04 |
Last updated 2026-08-04 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Published CVE record published
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: Chocapikk/CVE-2024-21887 (58 stars)
- GitHub PoC: duy-31/CVE-2023-46805_CVE-2024-21887 (23 stars)
- GitHub PoC: seajaysec/Ivanti-Connect-Around-Scan (12 stars)
- GitHub PoC: Chocapikk/CVE-2024-21893-to-CVE-2024-21887
- Metasploit: Ivanti Connect Secure Unauthenticated Remote Code Execution
- Metasploit: Ivanti Connect Secure Unauthenticated Remote Code Execution
- Nuclei scan template: Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x) - Command Injection
Advisories and coverage
Research and news
- Mandiant / Google Cloud Threat Intel: ARMORY CASTLE Exploits BeyondTrust 2026-10-15
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-21887?
connect secure: downgrade or apply the listed mitigation; policy secure: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-21887 being exploited?
Yes. CVE-2024-21887 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2024-21887 affect?
CVE-2024-21887 affects connect secure, policy secure. Severity is critical (CVSS 9.1). A command injection vulnerability in web components of Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x) allows an authenticated administrator to send specially crafted requests and execute arbitrary commands on the ap
How urgent is CVE-2024-21887?
Priority 92/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference
Software pages
Related CVEs
- CVE-2026-118527 MEDIUM 4.3 EXPLOITED UPGRADE Ivanti Connect Secure Generation of Predictable Numbers or Identifiers Vulnerability
- CVE-2026-111357 HIGH 7.0 EXPLOITED UPGRADE Ivanti Connect Secure Missing Authentication for Critical Function Vulnerability
- CVE-2025-55141 HIGH 8.8 UPGRADE UPGRADE Missing authorization in Ivanti Connect Secure before 22.7R2.9 or 22.8R2, Ivanti Policy Secure before 22.7R1.6
- CVE-2025-55142 HIGH 8.8 UPGRADE UPGRADE Missing authorization in Ivanti Connect Secure before 22.7R2.9 or 22.8R2, Ivanti Policy Secure before 22.7R1.6
- CVE-2025-55145 HIGH 8.9 UPGRADE UPGRADE Missing authorization in Ivanti Connect Secure before 22.7R2.9 or 22.8R2, Ivanti Policy Secure before 22.7R1.6