# CVE-2024-21887: Ivanti CPS - RCE

> Live exploitation tracking for CVE-2024-21887 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2024-21887

## Key facts

- **Exploitation phase:** Background Noise. Continuous low-level scanning or exploitation attempts are observed, mostly opportunistic and automated.
- **CVSS score:** 9.1
- **Public exploit available:** Yes
- **Affected products:** Ivanti Ips
- **Weaknesses:** CWE-77 (Improper Neutralization of Special Elements used in a Command ('Command Injection'))
- **Tags:** sslvpn

## 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.

## CrowdSec analysis

[CVE-2024-21887](https://euvd.enisa.europa.eu/vulnerability/CVE-2024-21887) is a command injection vulnerability affecting Ivanti Connect Secure and Ivanti Policy Secure, which allows authenticated administrators to execute arbitrary commands on a vulnerable appliance through crafted requests.

CrowdSec has been tracking this vulnerability and its exploits since 18th of January 2024.

CrowdSec network data shows that most actors exploiting CVE-2024-21887 rely on broad, untargeted scans with minimal filtering. The activity is largely automated and opportunistic in nature.
In addition, according to the CrowdSec network, attack volume against CVE-2024-21887 has dipped slightly compared to the previous week. Although still commonly targeted, the decline suggests a cooling-off period. Long-term relevance remains, but attention is waning.

Observed attack attempts frequently involve requests to URLs containing `/api/v1/totp/user-backup-code/../../`.

## Timeline

- 2024-01-10: CISA KEV. CVE-2024-21887 is added to the Known Exploited Vulnerabilities catalog by CISA.
- 2024-01-12: CVE Published. CVE-2024-21887 is published to NVD.
- 2024-01-18: Rule Released. CrowdSec releases a rule to detect CVE-2024-21887 exploitation attempts against the CrowdSec Network.
- 2024-01-22: CISA Remediation Deadline. Expiration of the CISA remediation deadline as described in [BOD 22-01](https://www.cisa.gov/news-events/directives/bod-22-01-reducing-significant-risk-known-exploited-vulnerabilities).
- 2025-03-18: CrowdSec First Seen. CrowdSec observes in-the-wild exploitation of CVE-2024-21887 for the first time.

## 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
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-21887.yaml

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2024-21887) follows observed exploitation activity for CVE-2024-21887. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
