# CVE-2023-37937: OS command injection in FortiSwitch

- Vendor: Fortinet, FortiSwitch
- Severity: HIGH (CVSS 3.1 7.6)
- Exploited (CISA KEV): not listed
- EPSS: 0.5% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-23-258, https://fortiguard.com/psirt/FG-IR-23-258
- Published: 2025-01-14; updated: 2025-01-14
- Page: https://patchtonight.com/cve/CVE-2023-37937/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiSwitch 7.4 | 7.4.1 or later |
| FortiSwitch 7.2.0 to 7.2.5 | 7.2.6 or later |
| FortiSwitch 7.0.0 to 7.0.7 | 7.0.8 or later |
| FortiSwitch 6.4.0 to 6.4.13 | 6.4.14 or later |
| FortiSwitch 6.2.0 to 6.2.7 | 6.2.8 or later |
| FortiSwitch 6.0.0 to 6.0.7 | Upgrade past 6.0.7; see the advisory |

## The vendor's description

An improper neutralization of special elements used in an os command ('os command injection') in Fortinet FortiSwitch version 7.4.0 and 7.2.0 through 7.2.5 and 7.0.0 through 7.0.7 and 6.4.0 through 6.4.13 and 6.2.0 through 6.2.7 and 6.0.0 through 6.0.7 allows attacker to execute unauthorized code or commands via the FortiSwitch CLI.

## Sources

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

---

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.
