CVE-2023-27997: Pre-authentication RCE in Fortinet FortiOS and FortiProxy SSL-VPN
- Vendor
- Fortinet
CVE-2023-27997 is a heap-based buffer overflow in the SSL-VPN functionality of Fortinet FortiOS and FortiProxy. A remote, unauthenticated attacker can trigger the flaw using specially crafted requests and potentially execute arbitrary code or commands on the affected appliance. Identified affected branches include FortiOS 7.2.4 and earlier, 7.0.11 and earlier, 6.4.12 and earlier, and 6.0.16 and earlier; FortiProxy 7.2.3 and earlier, 7.0.9 and earlier, 2.0.12 and earlier, and all 1.1 and 1.2 releases. FortiOS 7.4 is listed as unaffected. The vulnerability has been exploited in the wild, including before patches became available.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthorized code or command execution before authentication, compromising the appliance independently of VPN credentials or MFA. Appliance compromise can enable access to sensitive configurations, credentials and cryptographic material, installation of persistent access mechanisms, and subsequent movement into connected networks. Post-exploitation activity associated with this and other FortiGate vulnerabilities has included malicious symbolic links providing read-only access to device files even after vulnerability patches were applied.
Mitigation
If you can’t patch tonight, do this now.
Disable SSL-VPN until fixed firmware can be installed. Restrict network reachability to the affected service as an additional exposure-reduction measure. MFA does not prevent exploitation because the vulnerability is reachable before authentication.
Remediation
Patch, then assume compromise.
Upgrade affected FortiOS, FortiOS-6K7K and FortiProxy installations to fixed releases specified in Fortinet advisory FG-IR-23-097 or later supported releases, following Fortinet's recommended upgrade path. FortiProxy 1.1 and 1.2 installations must migrate to a fixed release. Investigate previously exposed appliances for compromise: patching does not remove every possible persistence mechanism or invalidate stolen secrets. For confirmed compromise, isolate the appliance, preserve forensic evidence, restore device integrity, rotate configured and potentially exposed authentication secrets and certificates, and investigate connected systems for lateral movement.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 7 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2023-27997 exploited in the wild?
- Yes. As of Nov 25, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 13, 2023.
- Is there a public exploit for CVE-2023-27997?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2023-27997, the earliest disclosed Oct 12, 2023.
- Is there a patch for CVE-2023-27997?
- Upgrade affected FortiOS, FortiOS-6K7K and FortiProxy installations to fixed releases specified in Fortinet advisory FG-IR-23-097 or later supported releases, following Fortinet's recommended upgrade path. FortiProxy 1.1 and 1.2 installations must migrate to a fixed release.
- What products are affected by CVE-2023-27997?
- Fortinet Fortios, Fortinet Fortiproxy, and Fortinet Fortios-6k7k.
- How severe is CVE-2023-27997?
- CVE-2023-27997 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 13.8% (97th percentile) as of Nov 25, 2026.
Recent activity
69 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.