# CVE-2024-40584: OS command injection in FortiAnalyzer, FortiManager

- Vendor: Fortinet, FortiAnalyzer, FortiManager
- Severity: MEDIUM (CVSS 3.1 6.8)
- Exploited (CISA KEV): not listed
- EPSS: 2.1% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-24-220, https://fortiguard.fortinet.com/psirt/FG-IR-24-220
- Published: 2025-02-11; updated: 2025-02-11
- Page: https://patchtonight.com/cve/CVE-2024-40584/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiAnalyzer 7.4.0 to 7.4.3 | 7.4.4 or later |
| FortiAnalyzer 7.2.0 to 7.2.5 | 7.2.6 or later |
| FortiAnalyzer 7.0.0 to 7.0.13 | Upgrade past 7.0.13; see the advisory |
| FortiAnalyzer 6.4.0 to 6.4.15 | Upgrade past 6.4.15; see the advisory |
| FortiAnalyzer 6.2.2 to 6.2.13 | Upgrade past 6.2.13; see the advisory |
| FortiManager 7.4.0 to 7.4.3 | 7.4.4 or later |
| FortiManager 7.2.0 to 7.2.5 | 7.2.6 or later |
| FortiManager 7.0.0 to 7.0.13 | Upgrade past 7.0.13; see the advisory |
| FortiManager 6.4.0 to 6.4.15 | Upgrade past 6.4.15; see the advisory |
| FortiManager 6.2.2 to 6.2.13 | Upgrade past 6.2.13; see the advisory |

## The vendor's description

An improper neutralization of special elements used in an OS command ('OS Command Injection') vulnerability [CWE-78] in Fortinet FortiAnalyzer version 7.4.0 through 7.4.3, 7.2.0 through 7.2.5, 7.0.0 through 7.0.13, 6.4.0 through 6.4.15 and 6.2.2 through 6.2.13, Fortinet FortiManager version 7.4.0 through 7.4.3, 7.2.0 through 7.2.5, 7.0.0 through 7.0.13, 6.4.0 through 6.4.15 and 6.2.2 through 6.2.13, Fortinet FortiAnalyzer BigData version 7.4.0, 7.2.0 through 7.2.7, 7.0.1 through 7.0.6, 6.4.5 through 6.4.7 and 6.2.5, Fortinet FortiAnalyzer Cloud version 7.4.1 through 7.4.3, 7.2.1 through 7.2.5, 7.0.1 through 7.0.13 and 6.4.1 through 6.4.7 and Fortinet FortiManager Cloud version 7.4.1 through 7.4.3, 7.2.1 through 7.2.5, 7.0.1 through 7.0.13 and 6.4.1 through 6.4.7 GUI allows an authenticated privileged attacker to execute unauthorized code or commands via crafted HTTPS or HTTP requests.

## Sources

- [Fortinet advisory](https://fortiguard.fortinet.com/psirt/FG-IR-24-220)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
