# CVE-2023-27997: FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow

- Vendor: Fortinet, FortiOS, FortiOS-6K7K, FortiProxy
- Severity: CRITICAL (CVSS 3.1 9.2)
- Exploited (CISA KEV): yes, added 2023-06-13, known ransomware use
- EPSS: 86.8% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-23-097, https://fortiguard.com/psirt/FG-IR-23-097
- Published: 2023-06-13; updated: 2023-06-13
- Page: https://patchtonight.com/cve/CVE-2023-27997/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiOS-6K7K 7.0 | 7.0.12 or later |
| FortiOS-6K7K 6.4 | 6.4.13 or later |
| FortiOS-6K7K 6.2.9 to 6.2.13 | 6.2.15 or later |
| FortiOS-6K7K 6.2.6 to 6.2.7 | 6.2.15 or later |
| FortiOS-6K7K 6.2 | 6.2.15 or later |
| FortiOS-6K7K 6.0.12 to 6.0.16 | 6.0.17 or later |
| FortiOS-6K7K 6.0 | 6.0.17 or later |
| FortiProxy 7.2.0 to 7.2.3 | 7.2.4 or later |
| FortiProxy 7.0.0 to 7.0.9 | 7.0.10 or later |
| FortiProxy 2.0.0 to 2.0.12 | Upgrade past 2.0.12; see the advisory |
| FortiProxy 1.2.0 to 1.2.13 | Upgrade past 1.2.13; see the advisory |
| FortiProxy 1.1.0 to 1.1.6 | Upgrade past 1.1.6; see the advisory |
| FortiOS 7.2.0 to 7.2.4 | 7.2.5 or later |
| FortiOS 7.0.0 to 7.0.11 | 7.0.12 or later |
| FortiOS 6.4.0 to 6.4.12 | 6.4.13 or later |
| FortiOS 6.2.0 to 6.2.13 | 6.2.14 or later |
| FortiOS 6.0.0 to 6.0.16 | 6.0.17 or later |

## The vendor's description

A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, version 6.4.12 and below, version 6.0.16 and below and FortiProxy version 7.2.3 and below, version 7.0.9 and below, version 2.0.12 and below, version 1.2 all versions, version 1.1 all versions SSL-VPN may allow a remote attacker to execute arbitrary code or commands via specifically crafted requests.

## Sources

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

---

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.
