CVE-2023-27997: Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow Vulnerability
Yes. CVE-2023-27997 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 13 June 2023. It is known to have been used in ransomware campaigns. We found no public exploit code for it in Exploit-DB, Metasploit or Nuclei, so the attacks rely on tooling that is not openly published in those sources. EPSS puts the chance of further exploitation attempts in the next 30 days at 86.8%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 13 June 2023
- Used in ransomware
- Yes, known ransomware use
- Public exploit code
- None found in Exploit-DB, Metasploit or Nuclei
- Chance of exploitation (EPSS)
- 86.8% in the next 30 days, higher than 99.7% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 9.2 Critical (version 3.1)
- Affects
- Fortinet FortiOS and FortiProxy SSL-VPN
- Type of flaw
- Heap-based buffer overflow (CWE-122)
- Published
- 13 June 2023
- US federal patch deadline
- 4 July 2023
What it is
Fortinet FortiOS and FortiProxy SSL-VPN contain a heap-based buffer overflow vulnerability which can allow an unauthenticated, remote attacker to execute code or commands via specifically crafted requests.
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.
Description from the CVE record.
Is CVE-2023-27997 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2023-27997 on 13 June 2023. That was on or before the day the CVE record was published, which usually means attackers were using it before defenders had a patch. CISA also marks it as known to be used in ransomware campaigns.
Affected products
- Fortinet FortiOS-6K7K: 7.0.10; 7.0.5; 6.4.12; 6.4.10; 6.4.8; 6.4.6; 6.4.2; 6.2.9 through 6.2.13
- Fortinet FortiProxy: 7.2.0 through 7.2.3; 7.0.0 through 7.0.9; 2.0.0 through 2.0.12; 1.2.0 through 1.2.13; 1.1.0 through 1.1.6
- Fortinet FortiOS: 7.2.0 through 7.2.4; 7.0.0 through 7.0.11; 6.4.0 through 6.4.12; 6.2.0 through 6.2.13; 6.0.0 through 6.0.16
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
CISA's required action: Apply updates per vendor instructions.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Fortinet FortiOS and FortiProxy SSL-VPN runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in FortiOS and FortiProxy SSL-VPN. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in Fortinet products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2025-61624 | Fortinet Multiple Products | No public exploit found | 1.3% | 14 April 2026 |
| CVE-2026-104286 | Fortinet FortiMail | Public exploit | 48.4% | 1 October 2026 |
| CVE-2025-25249 | Fortinet Multiple Products | No public exploit found | 3.7% | 13 January 2026 |
| CVE-2025-68686 | Fortinet FortiOS | No public exploit found | 29.5% | 10 February 2026 |
| CVE-2026-39808 | Fortinet FortiSandbox | Public exploit | 93.6% | 14 April 2026 |
| CVE-2026-25089 | Fortinet FortiSandbox | No public exploit found | 76.7% | 9 June 2026 |
Sources
- CVE record for CVE-2023-27997
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- fortiguard.com
Machine-readable: /api/cve/CVE-2023-27997.json