{"answers":{"affected":"It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2024-21887 in the wild since at least 10 Jan 2024, including in ransomware campaigns.","fix":"No fix has been published for CVE-2024-21887 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 22 Jan 2024.","what":"CVE-2024-21887 is a critical command injection vulnerability in Ivanti Connect Secure, published on 12 Jan 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-21887 and fix it if it is affected.\n\nWhat it is: CVE-2024-21887 is a critical command injection vulnerability in Ivanti Connect Secure, published on 12 Jan 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2024-21887 in the wild since at least 10 Jan 2024, including in ransomware campaigns.\n\nAffected product: Ivanti Connect Secure. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-21887/ (Markdown: https://insights.sbomify.com/CVE-2024-21887/index.md)","id":"CVE-2024-21887","markdown":"https://insights.sbomify.com/CVE-2024-21887/index.md","name":"CVE-2024-21887","record":{"aliases":["GHSA-87qj-c5f7-6c8q"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ivanti Secure Gateway","requires_auth":"high_privilege","summary":"An authenticated administrator can execute arbitrary commands on Ivanti Connect Secure and Policy Secure appliances via crafted web requests.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"connect_secure","vendor":"ivanti"},{"product":"policy_secure","vendor":"ivanti"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-01-10","github_poc":8,"max_poc_stars":58,"metasploit":2,"nuclei":1,"refs":[{"date":"2024-01-16T20:59:38Z","kind":"github_poc","ref":"https://github.com/Chocapikk/CVE-2024-21887","stars":58,"title":"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."},{"date":"2024-01-16T19:40:59Z","kind":"github_poc","ref":"https://github.com/duy-31/CVE-2023-46805_CVE-2024-21887","stars":23,"title":"An authentication bypass vulnerability in the web component of Ivanti ICS 9.x, 22.x and Ivanti Policy Secure allows a remote attacker to access restricted resources by bypassing control checks."},{"date":"2024-01-19T02:12:11Z","kind":"github_poc","ref":"https://github.com/seajaysec/Ivanti-Connect-Around-Scan","stars":12,"title":"Mitigation validation utility for the Ivanti Connect Around attack chain. Runs multiple checks. CVE-2023-46805, CVE-2024-21887."},{"date":"2024-01-14T09:25:56Z","kind":"github_poc","ref":"https://github.com/oways/ivanti-CVE-2024-21887","stars":7,"title":"POC Checker for ivanti CVE-2024-21887 Command injcetion"},{"date":"2025-01-19T09:02:37Z","kind":"github_poc","ref":"https://github.com/Hexastrike/Ivanti-Connect-Secure-Logs-Parser","stars":6,"title":"A Python script for examining Ivanti Secure Connect (ICS) event logs, designed to support investigations into vulnerabilities CVE-2025-0282, CVE-2023-46805, and CVE-2024-21887."},{"date":"2024-01-18T13:25:46Z","kind":"github_poc","ref":"https://github.com/raminkarimkhani1996/CVE-2023-46805_CVE-2024-21887","stars":5,"title":"The script in this repository only checks whether the vulnerabilities specified in the Ivanti Connect Secure product exist."},{"date":"2025-01-14T12:54:19Z","kind":"github_poc","ref":"https://github.com/rxwx/pulse-meter","stars":1,"title":"Parses the System Snapshot from an Ivanti Connect Secure applicance to identify possible IOCs related to CVE-2023-46805, CVE-2024-21887 and CVE-2025-0282."},{"date":"2024-01-10","kind":"metasploit","ref":"exploit/linux/http/ivanti_connect_secure_rce_cve_2023_46805","stars":null,"title":"Ivanti Connect Secure Unauthenticated Remote Code Execution"}],"tier":"exploited"},"has_fix":null,"headline":"Ivanti Connect Secure and Policy Secure Command Injection","id":"CVE-2024-21887","indexable":true,"kev":{"dateAdded":"2024-01-10","dueDate":"2024-01-22","knownRansomwareCampaignUse":"Known","product":"Connect Secure and Policy Secure","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"Ivanti","vulnerabilityName":"Ivanti Connect Secure and Policy Secure Command Injection Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"ivanti:connect_secure","products":["ivanti:connect_secure","ivanti:policy_secure"],"type":"command_injection","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Privilege escalation in ICS","id":"CVE-2024-21888"},"packages":[],"prev":{"headline":"Xorg-x11-server: heap buffer overflow in disabledevice","id":"CVE-2024-21886"},"products":["ICS","IPS"],"published":"2024-01-12","related":[{"cvss_score":10,"headline":"Ivanti Pulse Connect Secure Use-After-Free","id":"CVE-2021-22893","kev_date_added":"2021-11-03","published":"2021-04-23"},{"cvss_score":9.9,"headline":"Ivanti Pulse Connect Secure Arbitrary File Read","id":"CVE-2019-11510","kev_date_added":"2021-11-03","published":"2019-05-08"},{"cvss_score":9,"headline":"Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow","id":"CVE-2025-22457","kev_date_added":"2025-04-04","published":"2025-04-03"},{"cvss_score":9,"headline":"Ivanti Connect Secure, Policy Secure, and ZTA Gateways Stack-Based Buffer Overflow","id":"CVE-2025-0282","kev_date_added":"2025-01-08","published":"2025-01-08"},{"cvss_score":8.8,"headline":"Ivanti Pulse Connect Secure Collaboration Suite Buffer Overflow","id":"CVE-2021-22894","kev_date_added":"2021-11-03","published":"2021-05-27"},{"cvss_score":8.8,"headline":"Ivanti Pulse Connect Secure Command Injection","id":"CVE-2021-22899","kev_date_added":"2021-11-03","published":"2021-05-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-04","vendors":["Ivanti"]},"summary":"An authenticated administrator can execute arbitrary commands on Ivanti Connect Secure and Policy Secure appliances via crafted web requests.","url":"https://insights.sbomify.com/CVE-2024-21887/"}