CVE-2024-21887

CRITICAL KEV RANSOMWARE NUCLEI

Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x) - Command Injection

Title source: nuclei
STIX 2.1

Exploitation Summary

CVE-2024-21887 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added January 10, 2024, with confirmed use in ransomware campaigns. EIP tracks 16 public exploits from researchers including Chocapikk, duy-31, seajaysec, including a Metasploit module exploits/linux/http/ivanti_connect_secure_rce_cve_2024_21893. A Nuclei detection template is also available.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2024-21887, a command injection vulnerability in Ivanti Connect and Policy Secure systems. The exploit includes both scanning and interactive shell capabilities, demonstrating the ability to execute arbitrary commands on vulnerable systems.

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.

Exploits (16)

nomisec WORKING POC 57 stars
by Chocapikk · remote
https://github.com/Chocapikk/CVE-2024-21887

This repository contains a functional exploit for CVE-2024-21887, a command injection vulnerability in Ivanti Connect and Policy Secure systems. The exploit includes both scanning and interactive shell capabilities, demonstrating the ability to execute arbitrary commands on vulnerable systems.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure, Ivanti Policy Secure
Auth required
Prerequisites: Authenticated admin access to the target system
devstral-2 · analyzed Feb 18, 2026 Full analysis →
github WORKING POC 26 stars
by Chocapikk · pythonremote
https://github.com/Chocapikk/CVE-2024-21893-to-CVE-2024-21887

This repository contains a functional exploit for chaining CVE-2024-21893 (SSRF) and CVE-2024-21887 (command injection) in Ivanti Connect Secure appliances. The exploit includes a Python script for RCE and Nuclei templates for detection.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure
No auth needed
Prerequisites: Python 3 · requests · pwncat · rich
devstral-2 · analyzed Feb 19, 2026 Full analysis →
nomisec WORKING POC 23 stars
by duy-31 · poc
https://github.com/duy-31/CVE-2023-46805_CVE-2024-21887

The repository contains functional exploit scripts for CVE-2023-46805 (authentication bypass) and CVE-2024-21887 (command injection) in Ivanti Connect Secure and Policy Secure. The scripts demonstrate path traversal and command injection via crafted API requests.

Classification
Working Poc 95%
Attack Type
Auth Bypass | Rce
Complexity
Trivial
Reliability
Reliable
Target: Ivanti Connect Secure (9.x, 22.x), Ivanti Policy Secure
No auth needed
Prerequisites: Network access to the target Ivanti appliance · Curl and other basic Unix utilities
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER 12 stars
by seajaysec · infoleak
https://github.com/seajaysec/Ivanti-Connect-Around-Scan

The repository contains a Python script designed to scan Ivanti Connect Secure & Policy Secure appliances for vulnerabilities related to CVE-2023-46805 and CVE-2024-21887. It performs multiple checks to detect authentication bypass and command injection vulnerabilities without exploiting them.

Classification
Scanner 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure & Policy Secure
No auth needed
Prerequisites: Network access to the target Ivanti appliance
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER 7 stars
by oways · infoleak
https://github.com/oways/ivanti-CVE-2024-21887

The repository contains a Python script that checks for the presence of CVE-2024-21887 by sending a GET request to a specific endpoint and analyzing the response. It does not exploit the vulnerability but scans for its presence.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Ivanti Connect Secure
No auth needed
Prerequisites: List of target hosts in a file
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 5 stars
by Hexastrike · poc
https://github.com/Hexastrike/Ivanti-Connect-Secure-Logs-Parser

This repository provides a Python script to parse Ivanti Secure Connect .vc0 log files into CSV format for forensic analysis, specifically targeting CVE-2025-0282. The tool extracts timestamps, converts hex values to human-readable formats, and maps message codes to descriptions.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Secure Connect (affected by CVE-2025-0282)
No auth needed
Prerequisites: Access to .vc0 log files from Ivanti Secure Connect · Python environment
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 5 stars
by raminkarimkhani1996 · poc
https://github.com/raminkarimkhani1996/CVE-2023-46805_CVE-2024-21887

The repository contains a functional Python script that exploits CVE-2023-46805 (authentication bypass) and CVE-2024-21887 (remote code execution) in Ivanti Connect Secure. It includes both vulnerability checking and command execution capabilities via crafted API requests.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure
No auth needed
Prerequisites: Network access to the target Ivanti Connect Secure instance
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec TROJAN 2 stars
by tucommenceapousser · poc
https://github.com/tucommenceapousser/CVE-2024-21887

The repository claims to be an exploit for CVE-2024-21887 but contains obfuscated Python code that uses marshal.loads to execute a hidden payload, which is highly suspicious and indicative of malicious intent.

Classification
Trojan 95%
Attack Type
Other
Complexity
Complex
Reliability
Theoretical
Target: Ivanti Connect and Policy Secure systems
Auth required
Prerequisites: Authenticated admin access to the target system
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER 1 stars
by rxwx · poc
https://github.com/rxwx/pulse-meter

This repository provides a Python script to decrypt and parse Ivanti Connect Secure system snapshots for IOCs related to CVE-2025-0282 and other vulnerabilities. It uses YARA rules to detect malware artifacts and parses process lists for suspicious activity.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure
Auth required
Prerequisites: Admin access to Ivanti Connect Secure appliance · System snapshot file · Hardcoded decryption key
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC
by dyeat · pythonpoc
https://github.com/dyeat/cve-reproduction/tree/main/Ivanti/Connect-Secure/CVE-2024-21887

The repository contains a functional exploit script for CVE-2024-21887, an RCE vulnerability in Ivanti Connect Secure. The script crafts a malicious payload using command injection via a path traversal technique and sends it to the target API endpoint.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Ivanti Connect Secure
No auth needed
Prerequisites: Target URL with vulnerable Ivanti Connect Secure instance
devstral-2 · analyzed May 22, 2026 Full analysis →
gitlab TROJAN
by mdelaclaire · poc
https://gitlab.com/mdelaclaire/CVE-2024-21887

The repository claims to be an exploit for CVE-2024-21887 but contains obfuscated Python code that uses marshal.loads to execute a hidden payload, which is highly suspicious and indicative of malicious intent.

Classification
Trojan 95%
Attack Type
Other
Complexity
Complex
Reliability
Theoretical
Target: Ivanti Connect and Policy Secure systems
Auth required
Prerequisites: authenticated admin access
devstral-2 · analyzed Feb 23, 2026 Full analysis →
nomisec WORKING POC
by pwniel · poc
https://github.com/pwniel/ivanti_shell

This repository contains a functional Python script that exploits CVE-2024-21887 in Ivanti Connect Secure gateways by leveraging a path traversal vulnerability to execute a reverse shell via Ngrok. The script automates the setup of an Ngrok tunnel, constructs a malicious payload, and delivers it to the target system using a crafted curl command.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure
No auth needed
Prerequisites: Python 3.x · Ngrok account and client · requests and pyngrok libraries · Target Ivanti host URL
devstral-2 · analyzed Feb 19, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by sfewer-r7 · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ivanti_connect_secure_rce_cve_2024_21893.rb

This Metasploit module chains CVE-2024-21893 (SSRF) and CVE-2024-21887 (command injection) to achieve unauthenticated RCE on Ivanti Connect Secure/Policy Secure. It leverages an SSRF in the xmltooling library to target a vulnerable internal service for command execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure, Ivanti Policy Secure (versions 9.x, 22.x prior to Feb 2024 patch)
No auth needed
Prerequisites: Network access to target · Vulnerable Ivanti Connect Secure/Policy Secure instance
devstral-2 · analyzed Apr 22, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by sfewer-r7 · rubypoclinux
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ivanti_connect_secure_rce_cve_2023_46805.rb

This Metasploit module chains CVE-2023-46805 (auth bypass) and CVE-2024-21887 (command injection) to achieve unauthenticated RCE on Ivanti Connect Secure/Policy Secure. It exploits a path traversal flaw to bypass authentication and injects commands via a JSON payload to the cloud-server-test-connection endpoint.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure, Ivanti Policy Secure (versions 9.x, 22.x prior to mitigation)
No auth needed
Prerequisites: Network access to target · Vulnerable Ivanti Connect Secure/Policy Secure instance
devstral-2 · analyzed Apr 22, 2026 Full analysis →
vulncheck_xdb WRITEUP
remote
https://github.com/7aRanchi/PublicPoC

The repository contains detailed technical writeups for multiple CVEs, including CVE-2024-21887 (Ivanti Connect Secure RCE). Each writeup includes vulnerability descriptions, affected versions, and payload examples, demonstrating a clear understanding of the vulnerabilities.

Classification
Writeup 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ivanti Connect Secure (9.x, 22.x)
Auth required
Prerequisites: Authenticated admin access · Crafted HTTP request
devstral-2 · analyzed Feb 25, 2026 Full analysis →
vulncheck_xdb WORKING POC
remote
https://github.com/zwxxb/CVE-2024-21887

This repository contains a functional exploit for CVE-2024-21887, which targets a path traversal vulnerability in an unspecified API endpoint to achieve remote code execution (RCE) via a reverse shell payload.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Unknown (API endpoint /api/v1/totp/user-backup-code/../../license/keys-status/)
No auth needed
Prerequisites: List of target URLs in a file · Python environment with httpx library
devstral-2 · analyzed Feb 25, 2026 Full analysis →

Nuclei Templates (1)

Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x) - Command Injection
CRITICALby pdresearch,parthmalhotra,iamnoooob
Shodan: html:"welcome.cgi?p=logo" || http.title:"ivanti connect secure" || http.html:"welcome.cgi?p=logo"
FOFA: body="welcome.cgi?p=logo" || title="ivanti connect secure"

Scores

CVSS v3 9.1
EPSS 0.9441
EPSS Percentile 100.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation active
Automatable no
Technical Impact total

Details

CISA KEV 2024-01-10
VulnCheck KEV 2024-01-10
InTheWild.io 2024-01-10
ENISA EUVD EUVD-2024-19498
Ransomware Use Confirmed
CWE
CWE-77
Status published
Products (10)
ivanti/connect_secure 9.0
ivanti/connect_secure 9.1 r1 (32 CPE variants)
ivanti/connect_secure 22.1 r1 (2 CPE variants)
ivanti/connect_secure 22.2 (2 CPE variants)
ivanti/connect_secure 22.3 r1
ivanti/connect_secure 22.4 r1 (2 CPE variants)
ivanti/connect_secure 22.5 r2.1
ivanti/connect_secure 22.6 (3 CPE variants)
ivanti/policy_secure 9.0
ivanti/policy_secure 9.1 r1 (5 CPE variants)
Published Jan 12, 2024
KEV Added Jan 10, 2024
Tracked Since Feb 18, 2026