XORtigate: Pre-authentication RCE in Fortinet SSL-VPN
CVE-2023-27997, also known as XORtigate, is a heap-based buffer overflow in the SSL-VPN functionality of Fortinet FortiOS and FortiProxy, including affected FortiOS-6K7K releases. A remote, unauthenticated attacker can trigger the overflow through specially crafted requests and execute arbitrary code or commands on the appliance. Fortinet confirmed active exploitation in June 2023, including exploitation before patches were released. The vulnerability has subsequently been exploited for initial access in espionage and ransomware operations.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthenticated remote code execution on an affected security appliance, compromising its confidentiality, integrity, and availability. Appliance compromise can enable theft of configurations, credentials, and cryptographic material; unauthorized configuration changes; installation of persistence mechanisms; and pivoting into internal networks. Post-exploitation persistence deployed after exploitation of this and other Fortinet vulnerabilities has survived subsequent patching, so updating an already compromised appliance does not necessarily restore trust.
If you can’t patch tonight, do this now.
Disable SSL-VPN until a fixed release can be installed. Restrict network reachability to necessary, trusted sources to reduce exposure while remediation is pending. MFA does not prevent exploitation because the vulnerable processing occurs before authentication.
Patch, then assume compromise.
Upgrade to a vendor-fixed, supported release following Fortinet's recommended upgrade path. Listed fixed FortiOS versions include 6.0.17, 6.2.15, 6.4.13, 7.0.12, and 7.2.5; FortiOS 7.4 is listed as unaffected. Use Fortinet advisory FG-IR-23-097 for the applicable FortiOS-6K7K and FortiProxy fixed releases. FortiProxy 1.1 and 1.2 installations must migrate to a fixed release. Investigate previously exposed appliances for compromise rather than relying on patching alone. If compromise is identified, isolate the appliance, preserve evidence, replace or otherwise restore it to a trusted state, rotate configured and potentially intercepted secrets, and investigate downstream lateral movement.
3 exploits validated by Mallory's analysis. Hidden: 7 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
61 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.