# CVE-2024-26012: OS command injection in FortiAP-S, FortiAP-W2 and others

- Vendor: Fortinet, FortiAP-S, FortiAP-W2, FortiAP
- Severity: MEDIUM (CVSS 3.1 6.3)
- Exploited (CISA KEV): not listed
- EPSS: 0.7% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-23-405, https://fortiguard.fortinet.com/psirt/FG-IR-23-405
- Published: 2025-01-14; updated: 2025-01-14
- Page: https://patchtonight.com/cve/CVE-2024-26012/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiAP-S 6.4.0 to 6.4.9 | 6.4.10 or later |
| FortiAP-S 6.2.0 to 6.2.6 | Upgrade past 6.2.6; see the advisory |
| FortiAP-W2 7.4.0 to 7.4.2 | 7.4.3 or later |
| FortiAP-W2 7.2.0 to 7.2.3 | 7.2.4 or later |
| FortiAP-W2 7.0.0 to 7.0.8 | Upgrade past 7.0.8; see the advisory |
| FortiAP-W2 6.4.0 to 6.4.10 | Upgrade past 6.4.10; see the advisory |
| FortiAP 7.4.0 to 7.4.2 | 7.4.3 or later |
| FortiAP 7.2.0 to 7.2.3 | 7.2.4 or later |
| FortiAP 7.0.0 to 7.0.7 | Upgrade past 7.0.7; see the advisory |
| FortiAP 6.4.3 to 6.4.9 | Upgrade past 6.4.9; see the advisory |

## The vendor's description

A improper neutralization of special elements used in an os command ('os command injection') in Fortinet FortiAP-S 6.2 all verisons, and 6.4.0 through 6.4.9, FortiAP-W2 6.4 all versions, 7.0 all versions, 7.2.0 through 7.2.3, and 7.4.0 through 7.4.2, FortiAP 6.4 all versions, 7.0 all versions, 7.2.0 through 7.2.3, and 7.4.0 through 7.4.2 allow a local authenticated attacker to execute unauthorized code via the CLI.

## Sources

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

---

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.
