# CVE-2023-36640: Use of externally-controlled format string in FortiOS, FortiProxy and others

- Vendor: Fortinet, FortiOS, FortiProxy, FortiPAM
- Severity: MEDIUM (CVSS 3.1 6.2)
- Exploited (CISA KEV): not listed
- EPSS: 0.3% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-23-137, https://fortiguard.com/psirt/FG-IR-23-137
- Published: 2024-05-14; updated: 2026-10-22
- Page: https://patchtonight.com/cve/CVE-2023-36640/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiOS 7.4 | 7.4.1 or later |
| FortiOS 7.2.0 to 7.2.5 | 7.2.6 or later |
| FortiOS 7.0.0 to 7.0.19 | Upgrade past 7.0.19; see the advisory |
| 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 |
| FortiOS 6.0.0 to 6.0.16 | Upgrade past 6.0.16; see the advisory |
| FortiPAM 1.1 | 1.1.1 or later |
| FortiPAM 1.0.0 to 1.0.3 | Upgrade past 1.0.3; see the advisory |
| FortiProxy 7.2.0 to 7.2.5 | 7.2.6 or later |
| FortiProxy 7.0.0 to 7.0.11 | 7.0.12 or later |
| FortiProxy 2.0.0 to 2.0.14 | Upgrade past 2.0.14; see the advisory |
| FortiProxy 1.2.1 to 1.2.13 | Upgrade past 1.2.13; see the advisory |
| FortiProxy 01.02 | See the advisory |
| FortiProxy 1.1.4 to 1.1.6 | Upgrade past 1.1.6; see the advisory |
| FortiProxy 01.01.00 to 01.01.03 | Upgrade past 01.01.03; see the advisory |
| FortiProxy 01.00.00 to 01.00.07 | Upgrade past 01.00.07; see the advisory |

## The vendor's description

A use of externally-controlled format string vulnerability in Fortinet FortiOS 7.4.0, FortiOS 7.2.0 through 7.2.5, FortiOS 7.0 all versions, FortiOS 6.4 all versions, FortiOS 6.2 all versions, FortiOS 6.0.0 through 6.0.16, FortiPAM 1.1.0, FortiPAM 1.0 all versions, FortiProxy 7.2.0 through 7.2.5, FortiProxy 7.0.0 through 7.0.11, FortiProxy 2.0 all versions, FortiProxy 01.02 all versions, FortiProxy 1.2 all versions, FortiProxy 01.01 all versions, FortiProxy 1.1 all versions, FortiProxy 01.00 all versions allows attacker to execute unauthorized code or commands via specially crafted commands

## Sources

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

---

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.
