CVE-2023-27997: Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow Vulnerability
CVE-2023-27997 is a critical-severity flaw (CVSS 9.8) affecting fortiproxy, fortios, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Used in ransomware campaigns
- Public exploit reference
- Covered by 3 security sources
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-07-31 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Published CVE record published
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: BishopFox/CVE-2023-27997-check (134 stars)
- GitHub PoC: lexfo/xortigate-cve-2023-27997 (63 stars)
- GitHub PoC: rio128128/CVE-2023-27997-POC (27 stars)
- GitHub PoC: Aicks/FortiGate-CVE-2023-27997
Advisories and coverage
Official advisories
- CERT.at Austria: Multiple FortiGate devices compromised with a persistent read-only access 2025-04-16
- IPA Japan Security Alerts: 更新:Fortinet 製 FortiOS および FortiProxy の脆弱性対策について(CVE-2023-27997) 2023-06-13
Research and news
- Vulners Bulletins: cve-2023-27997 2026-11-01
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-27997?
fortiproxy: upgrade to newer than 7.2.3; fortios: upgrade to newer than 7.2.4. Exact commands for each OS are on this page.
Is CVE-2023-27997 being exploited?
Yes. CVE-2023-27997 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2023-27997 affect?
CVE-2023-27997 affects fortiproxy, fortios. Severity is critical (CVSS 9.8). 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
How urgent is CVE-2023-27997?
Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference; Covered by 3 security sources; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Fortinet FortiOS vulnerabilities · Fortinet vulnerabilities
Related CVEs
- CVE-2026-59837 MEDIUM 6.6 UPGRADE UPGRADE A stack-based buffer overflow vulnerability in Fortinet FortiOS 7.4.0 through 7.4.1, FortiOS 7.2 all versions,
- CVE-2023-46718 MEDIUM 6.7 UPGRADE UPGRADE A stack-based buffer overflow in Fortinet FortiOS version 7.4.0 through 7.4.1 and 7.2.0 through 7.2.7 and 7.0.
- CVE-2024-50571 HIGH 7.2 UPGRADE UPGRADE A heap-based buffer overflow vulnerability in Fortinet FortiAnalyzer 7.6.0 through 7.6.2, FortiAnalyzer 7.4.0
- CVE-2026-23573 MEDIUM 6.1 UPGRADE UPGRADE An Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability [CWE-79]
- CVE-2026-59839 MEDIUM 5.5 UPGRADE UPGRADE A improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Fortinet For