Don’t let overlooked obligations become incidents. Learn how.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    Infostealers
    Infostealers
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    What Gets Overlooked Gets Exploited

    Most days, nothing happens. But one day, something will.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    Ebooks
    Ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeThreat LibraryVulnerabilities
CVE-2023-27997

CVE-2023-27997 Vulnerability

Published: 10/20/2026

Written by: Nadine Rozell

Glitch effectGlitch effect

What is CVE-2023-27997 vulnerability?

CVE-2023-27997, frequently referred to as XORtigate, is a critical remote code execution (RCE) vulnerability affecting Fortinet FortiOS and FortiProxy devices.

It is a heap-based buffer overflow located in the SSL-VPN web portal. The flaw allows an unauthenticated, remote attacker to execute arbitrary code or commands on the device by sending specifically crafted HTTP requests. Because this vulnerability is reachable pre-authentication, it bypasses security controls like Multi-Factor Authentication (MFA), making it an extremely dangerous entry point for attackers. It has been assigned a CVSS score of 9.8 (Critical).

When was it discovered?

CVE-2023-27997 was discovered by security researchers Charles Fol and Dany Bach from the French cybersecurity firm Lexfo. The vulnerability was responsibly disclosed to Fortinet, who released a security advisory (FG-IR-23-097) and patches on June 12, 2023. Public disclosure and technical details followed shortly thereafter, with researchers noting that it may have been exploited in a limited number of cases prior to the public release.

Affected products & versions

The vulnerability affects a wide range of Fortinet products that have the SSL-VPN web portal enabled.

Product

Versions Affected

Fixed Versions / Patch Links

FortiOS

7.2.0 through 7.2.4

Upgrade to 7.2.5 or above

FortiOS

7.0.0 through 7.0.11

Upgrade to 7.0.12 or above

FortiOS

6.4.0 through 6.4.12

Upgrade to 6.4.13 or above

FortiOS

6.2.0 through 6.2.13

Upgrade to 6.2.14 or above

FortiOS

6.0.0 through 6.0.16

Upgrade to 6.0.17 or above

FortiProxy

7.2.0 through 7.2.3

Upgrade to 7.2.4 or above

FortiProxy

7.0.0 through 7.0.9

Upgrade to 7.0.10 or above

FortiProxy

2.0.0 through 2.0.12

Upgrade to 2.0.13 or above

CVE-2023-27997 technical description

The vulnerability resides in the way the SSL-VPN portal processes specific HTTP parameters, particularly within the /remote/hostcheck_validate and /remote/logincheck endpoints.

The root cause is a heap-based buffer overflow triggered by an incorrect length check when decoding the enc parameter. The application allocates a buffer based on the input size but fails to validate the payload length correctly due to a truncation error where the length is stored in an 8-bit variable instead of a larger type.

An attacker can exploit this by crafting a request with a payload length that appears valid to the truncated check but actually exceeds the allocated buffer size. This allows the attacker to write data out-of-bounds on the heap. By manipulating the heap layout—often using techniques involving "heap smashing"—attackers can overwrite critical memory structures (such as function pointers or SSL structures) to hijack the execution flow and gain control of the device.

Tactics, Techniques & Procedures (TTPs)

Attackers exploit CVE-2023-27997 primarily for Initial Access and Defense Evasion.

  • Reconnaissance: Threat actors scan the internet for FortiGate devices returning the Server: xxxxxxxx-xxxxx header or specific SSL certificate details to identify vulnerable firmware versions.

  • Exploitation: They send malicious HTTP GET or POST requests containing crafted enc parameters to the SSL-VPN interface.

  • Persistence: Once code execution is achieved, attackers often download lightweight binaries (like BusyBox) to open an interactive shell, allowing them to install webshells, steal configuration files, or move laterally into the internal network.

Indicators of compromise

Detecting this exploit can be challenging because the traffic is encrypted within the SSL-VPN tunnel, but several indicators exist:

  • System Crashes: Failed exploit attempts often cause the SSL-VPN process or the entire device to crash and reboot. Frequent, unexplained system restarts are a strong indicator.

  • Suspicious HTTP Requests: Look for requests to /remote/hostcheck_validate or /remote/logincheck with unusually long or malformed enc parameters in web logs.

  • Unknown Binaries: The presence of unrecognized files or binaries in the /tmp or other temporary directories on the appliance.

  • Log Anomalies: Review logs for "application crashed" events or unexpected administrative login sessions originating from the device itself.

Known proof-of-concepts & exploits

Proof-of-Concept (PoC) exploits are widely available and have been verified by multiple security firms.

Security researchers at Bishop Fox and WatchTowr developed fully functional exploits shortly after disclosure, demonstrating the ability to smash the heap and open a reverse shell on vulnerable devices. Exploitation campaigns have been observed in the wild, often targeting unpatched edge devices to deploy ransomware or conduct espionage.

How to detect CVE-2023-27997 vulnerability?

  • Version Checking: The most reliable detection method is to check the firmware version of your FortiGate or FortiProxy device against the "Affected Products" table above. If the version is listed, the device is vulnerable.

  • Response Header Analysis: Tools can query the HTTP Last-Modified header of the device's web server; dates prior to May/June 2023 suggest an unpatched firmware.

  • Integrity Checks: Administrators can run the diagnose sys fortiguard-service status or built-in integrity commands to check for unauthorized modifications to the file system.

Impact & risk of CVE-2023-27997 vulnerability

The risk posed by CVE-2023-27997 is Critical.

Successful exploitation grants an attacker Remote Code Execution (RCE) with the highest privileges on the device. Since Fortinet devices often sit at the perimeter of a network, a compromise here provides a perfect bridgehead for attackers to inspect traffic, decrypt VPN connections, steal credentials, and launch attacks against internal servers. It completely bypasses authentication, meaning even strong passwords and MFA offer no defense against the initial exploit.

Mitigation & remediation strategies

The only complete remediation is to patch immediately.

  • Upgrade Firmware: Update FortiOS or FortiProxy to the latest non-vulnerable version (e.g., 7.4.0, 7.2.5, 7.0.12, 6.4.13).

  • Disable SSL-VPN: If patching is not immediately possible, the only effective workaround is to disable the SSL-VPN functionality entirely. Firewall rules limiting access to the VPN portal are helpful but do not fix the underlying vulnerability if the port remains accessible to attackers.

CVE-2023-27997 Vulnerability FAQs

CVE-2023-27997 is a critical vulnerability in Fortinet SSL-VPN devices that allows remote code execution (RCE). It works by sending a malicious request that causes a "heap buffer overflow," confusing the device's memory management and allowing the attacker to run their own commands.

It does not "infect" a system like a virus but serves as a doorway for attackers. An attacker sends a specially crafted web request to the VPN login page, which crashes the memory safeguards and allows them to install malware or open a "shell" to control the device.

Yes, it remains a significant threat for any organization running outdated firmware. Because the exploit is public and easy to automate, attackers continue to scan the internet for unpatched Fortinet devices to use as entry points for ransomware attacks.

The primary protection is to upgrade the device firmware to a patched version immediately. If that is not possible, organizations must disable the SSL-VPN feature completely until the update can be applied.

Glitch effectBlurry glitch effect

Protect What Matters

Secure endpoints, email, and employees with the power of our 24/7 SOC. Try Huntress for free and deploy in minutes to start fighting threats.
Try Huntress for Free
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingManaged ISPMManaged ESPMBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy