# CVE-2023-40721: Use of externally-controlled format string in FortiPAM, FortiSwitchManager and others

- Vendor: Fortinet, FortiPAM, FortiSwitchManager, FortiOS, FortiProxy
- Severity: MEDIUM (CVSS 3.1 6.3)
- Exploited (CISA KEV): not listed
- EPSS: 0.2% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-23-261, https://fortiguard.com/psirt/FG-IR-23-261
- Published: 2025-02-11; updated: 2026-01-14
- Page: https://patchtonight.com/cve/CVE-2023-40721/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiPAM 1.1.0 to 1.1.2 | Upgrade past 1.1.2; see the advisory |
| FortiPAM 1.0.0 to 1.0.3 | Upgrade past 1.0.3; see the advisory |
| FortiSwitchManager 7.2.0 to 7.2.2 | 7.2.3 or later |
| FortiSwitchManager 7.0.0 to 7.0.2 | 7.0.3 or later |
| FortiOS 7.4 | 7.4.2 or later |
| FortiOS 7.2.0 to 7.2.5 | 7.2.7 or later |
| FortiOS 7.0.0 to 7.0.13 | 7.0.14 or later |
| FortiOS 6.4.0 to 6.4.16 | Upgrade past 6.4.16; see the advisory |
| FortiOS 6.2.0 to 6.2.17 | Upgrade past 6.2.17; see the advisory |
| FortiProxy 7.4 | 7.4.1 or later |
| FortiProxy 7.2.0 to 7.2.6 | 7.2.8 or later |
| FortiProxy 7.0.0 to 7.0.14 | 7.0.15 or later |
| FortiProxy 2.0.0 to 2.0.14 | Upgrade past 2.0.14; see the advisory |
| FortiProxy 1.2.0 to 1.2.13 | Upgrade past 1.2.13; see the advisory |

## The vendor's description

A use of externally-controlled format string vulnerability [CWE-134] vulnerability in Fortinet  allows a privileged attacker to execute arbitrary code or commands via specially crafted requests.

## Sources

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

---

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.
