CVE-2024-21887 in Ivanti Connect Secure and 1 more product
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.
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ivanti | Connect Secure | 9.0 9.1 22.1 22.2 22.3 22.4+2 more22.5 22.6 |
| Ivanti | Policy Secure | 9.0 9.1 22.1 22.2 22.3 22.4+2 more22.5 22.6 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Yes added 2024-01-10 |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-21887 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-269386-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| Published | 2024-01-12 |
| Last modified | 2026-08-04 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-15 Command Delimiters via CWE-77
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
Show all 8
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical command injection vulnerability exists in the web components of Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x). An authenticated administrator can exploit this vulnerability to execute arbitrary commands on the affected appliances, leading to potential full system compromise. Given the high CVSS score and the presence of a public proof-of-concept, immediate attention is required to mitigate this risk.
The vulnerability is exploitable via the network (AV:N) and requires low complexity (AC:L) for an authenticated user (PR:H) to execute arbitrary commands on the target system. The impact is severe, affecting confidentiality (C:H), integrity (I:H), and availability (A:H) of the system.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for all web components, especially those handling user input. Enforce least privilege access controls and monitor for unusual administrative activities.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-21887?
A critical command injection vulnerability exists in the web components of Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x). An authenticated administrator can exploit this vulnerability to execute arbitrary commands on the affected appliances, leading to potential full system compromise. Given the high CVSS score and the presence of a public proof-of-concept, immediate attention is required to mitigate this risk.
What is the CVSS score for CVE-2024-21887?
CVE-2024-21887 has CVSS 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H. EPSS: 90.8%.
Is CVE-2024-21887 actively exploited?
Yes. CVE-2024-21887 is in the CISA known-exploited catalog (added 2024-01-10). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2024-21887?
Priority: IMMEDIATE. Advisory: https://forums.ivanti.com/s/article/CVE-2023-46805-Authentication-Bypass-CVE-2024-21887-Command-Injection-for-Ivanti-Connect-Secure-and-Ivanti-Policy-Secure-Gateways?language=en_US PSIRT: [email protected]
What systems are affected by CVE-2024-21887?
CVE-2024-21887 affects Ivanti Connect Secure, Policy Secure.
What NERC-CIP standard applies to CVE-2024-21887?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 by allowing unauthorized command execution, which could compromise the security of the electronic security perimeter and the systems within it.
What IEC 62443 requirement maps to CVE-2024-21887?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 as it involves a command injection vulnerability that can lead to unauthorized control of the system, violating the requirement for secure software development practices.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ivanti","product":"Connect Secure","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-08-04.