CVE-2023-27997
CONFIRMED EXPLOITEDKNOWN RANSOMWARE CAMPAIGN USEFortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow Vulnerability
Is Fortinet FortiOS and FortiProxy SSL-VPN affected by CVE-2023-27997?
Fortinet FortiOS and FortiProxy SSL-VPN is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2023-27997, added on 2023-06-13. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (23 vulnerable CPE entries): fortinet fortios and fortinet fortiproxy.
Published CPE version bounds mark releases up to and including 1.1.6, 1.2.13, 2.0.12, 6.0.16, 6.2.13, 6.4.12, 7.0.9, 7.0.11, 7.2.3 and 7.2.4 as vulnerable. Confirm the patched release in the vendor advisory below before treating any upgrade as complete.
The CISA remediation deadline for this entry is 2023-07-04, and CISA records known ransomware campaign use against it.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2025-61624Same vendorFortinet Multiple Products
Fortinet Multiple Products Path Traversal Vulnerability
- CVE-2026-104286Same vendorFortinet FortiMail
Fortinet FortiMail Path Traversal Vulnerability
- CVE-2025-25249Same vendorFortinet Multiple Products
Fortinet Multiple Products Heap-based Buffer Overflow Vulnerability
- CVE-2025-68686Same vendorFortinet FortiOS
Fortinet FortiOS Exposure of Sensitive Information to an Unauthorized Actor Vulnerability
- CVE-2023-3079Neighboring entryGoogle Chromium V8
Google Chromium V8 Type Confusion Vulnerability
- CVE-2016-0165Neighboring entryMicrosoft Win32k
Microsoft Win32k Privilege Escalation Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
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.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2023-06-13. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Known".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of FortiOS and FortiProxy SSL-VPN has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Perimeter appliance / gateway surface (Fortinet FortiOS and FortiProxy SSL-VPN): stream syslog, NetFlow, and authentication telemetry off-box to an independent collector (`Zeek`, `Suricata`, `Wazuh`) so logs survive appliance tampering. Inspect `conn.log` / `ssl.log` for unauthenticated probes against exposed VPN or management interfaces.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Memory corruption class (CWE-119/416/787): monitor system logs (`dmesg`, `journalctl`, Windows Event ID 1000, crash dumps) for segmentation faults (`SIGSEGV`/`SIGABRT`) or worker process restarts.
- Inventory all hosts running Fortinet FortiOS and FortiProxy SSL-VPN and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- https://fortiguard.com/psirt/FG-IR-23-097Vendor Advisory
- https://fortiguard.com/psirt/FG-IR-23-097Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-27997US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
Modern, cryptographically opinionated kernel-space VPN tunnel
Endpoint visibility, digital forensics, and incident response (DFIR) platform