{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-40587 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-40587 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-40587 is a medium-severity command injection vulnerability in Fortinet FortiVoice, published on 14 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-40587 and fix it if it is affected.\n\nWhat it is: CVE-2024-40587 is a medium-severity command injection vulnerability in Fortinet FortiVoice, published on 14 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-40587 in the wild and no public exploit code.\n\nAffected product: Fortinet FortiVoice. 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-40587/ (Markdown: https://insights.sbomify.com/CVE-2024-40587/index.md)","id":"CVE-2024-40587","markdown":"https://insights.sbomify.com/CVE-2024-40587/index.md","name":"CVE-2024-40587","record":{"aliases":["GHSA-54qm-4vvg-ch55"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Fortinet FortiVoice","requires_auth":"high_privilege","summary":"Authenticated privileged attackers can execute unauthorized commands via crafted CLI requests in FortiVoice, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"fortinet","cpe":[{"product":"fortivoice","vendor":"fortinet"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:X/RC:C","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"An improper neutralization of special elements used in an OS command ('OS Command Injection') vulnerability [CWE-78] in Fortinet FortiVoice version 7.0.0 through 7.0.4 and before 6.4.9 allows an authenticated privileged attacker to execute unauthorized code or commands via crafted CLI requests.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Command injection in FortiVoice","id":"CVE-2024-40587","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"Path traversal in FortiCamera","id":"CVE-2024-40588"},"packages":[],"prev":{"headline":"Privilege escalation in FortiClientWindows","id":"CVE-2024-40586"},"products":["FortiVoice"],"published":"2025-01-14","related":[{"cvss_score":8.6,"headline":"SQL injection in FortiVoice","id":"CVE-2023-37931","kev_date_added":null,"published":"2025-01-14"},{"cvss_score":7.7,"headline":"Path traversal in FortiVoice","id":"CVE-2025-60024","kev_date_added":null,"published":"2025-12-09"},{"cvss_score":7.7,"headline":"SQL injection in FortiVoice","id":"CVE-2025-58692","kev_date_added":null,"published":"2025-11-18"},{"cvss_score":7.2,"headline":"Command injection in FortiVoice","id":"CVE-2025-47856","kev_date_added":null,"published":"2025-10-14"},{"cvss_score":6.8,"headline":"SQL injection in FortiVoice","id":"CVE-2025-64156","kev_date_added":null,"published":"2025-12-09"},{"cvss_score":6.7,"headline":"Auth bypass in FortiVoice","id":"CVE-2023-40720","kev_date_added":null,"published":"2024-05-14"}],"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-14","vendors":["Fortinet"]},"summary":"Authenticated privileged attackers can execute unauthorized commands via crafted CLI requests in FortiVoice, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2024-40587/"}