title: 'CVE-2024-21887 Exploit Attempt: Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x) -'
id: 'c8fab4f2-aaf8-5f2b-ba3b-e799e5076848'
status: 'experimental'
description: 'A web request matching the public nuclei template for CVE-2024-21887 (Ivanti Connect Secure (9.x, 22.x) and Ivanti Policy Secure (9.x, 22.x) - Command Injection). The attack is visible in the URL. The rule matches the path and the parameters it uses, not the template''s exact payload, so a variant still hits and so can ordinary use of the same parameters. A hit means someone sent this request: an exploit attempt or a scanner. It does not mean the attempt worked. Derived from the template by fixed rules, not written by hand; read it before you rely on it.'
references:
    - 'https://github.com/projectdiscovery/nuclei-templates/blob/f3230325748bc22e9a3319dc01a1692687170d99/http/cves/2024/CVE-2024-21887.yaml'
    - 'https://nvd.nist.gov/vuln/detail/CVE-2024-21887'
author: 'thrunt.me, derived from projectdiscovery/nuclei-templates (MIT)'
date: '2026-11-12'
modified: '2026-11-12'
tags:
    - 'attack.initial-access'
    - 'attack.t1190'
    - 'cve.2024-21887'
    - 'detection.emerging-threats'
logsource:
    category: 'webserver'
detection:
    selection:
        cs-method: 'GET'
        cs-uri-stem|contains: '/api/v1/totp/user-backup-code/../../license/keys-status/%3bcurl%20'
    condition: 'selection'
falsepositives:
    - 'Vulnerability scanners and penetration tests that send the same template request.'
level: 'medium'
