CVE-2024-21762 — Fortinet FortiOS Out-of-Bound Write Vulnerability

CVE-2024-21762

Fortinet FortiOS SSL VPN — Out-of-Bounds Write → Pre-Auth RCE; CVSS 9.8; KEV Same Day as Patch (7-Day Deadline); Actively Exploited

What is Fortinet FortiOS SSL VPN?

Fortinet FortiOS is the operating system for FortiGate next-generation firewalls. Its SSL VPN feature is one of the most widely deployed remote access VPN solutions in the world, used by hundreds of thousands of organizations for corporate remote access. FortiGate SSL VPN is internet-facing by design — appliances expose the VPN portal on HTTPS (typically port 443 or 4433) to allow remote users to connect. This makes SSL VPN vulnerabilities especially dangerous: the attack surface is directly reachable from the internet without any prior access, and successful exploitation yields immediate VPN gateway access — a direct entry point into the protected internal network.

Overview

CVE-2024-21762 is an out-of-bounds write vulnerability (CWE-787) in Fortinet FortiOS's SSL-VPN web management component. A remote unauthenticated attacker can send specially crafted HTTP requests to the FortiOS SSL VPN web interface to trigger the out-of-bounds write, achieving arbitrary code execution on the FortiGate appliance. Fortinet disclosed the vulnerability on February 8, 2024 and simultaneously confirmed that it was being exploited in the wild — making it a disclosed zero-day at time of publication. CISA added it to the KEV catalog the following day (February 9) with an extremely short 7-day remediation deadline, reflecting the severity and confirmed exploitation.

Affected Versions

FortiOS Version Vulnerable Fixed
7.4.x 7.4.0–7.4.2 7.4.3
7.2.x 7.2.0–7.2.6 7.2.7
7.0.x 7.0.0–7.0.13 7.0.14
6.4.x 6.4.0–6.4.14 6.4.15
6.2.x All Migrate to newer branch
6.0.x All Migrate to newer branch

Workaround: Disable SSL-VPN on the device (config vpn ssl settingsset status disable). This eliminates the attack surface but disables remote access.

Technical Details

The out-of-bounds write (CWE-787) is in the HTTP request processing code of the FortiOS SSL-VPN web component — the HTTPS listener that handles VPN client authentication and the SSL-VPN web portal. A specially crafted HTTP request with a malformed header or body field causes a write operation to proceed beyond an allocated buffer boundary on the heap or stack.

Exploitation mechanism: The out-of-bounds write overwrites adjacent memory — potentially function pointers, vtable entries, or stored return addresses — with attacker-controlled data. By crafting the overflow contents carefully, the attacker can redirect execution to shellcode or a return-oriented programming (ROP) chain, achieving code execution as root on the FortiOS Linux operating system.

No authentication required: The vulnerable code path is reached before any authentication check — the request handler processes the malformed HTTP data before authenticating the request. This makes it exploitable by any internet-connected attacker.

Companion CVE-2024-23113: Also published in February 2024, CVE-2024-23113 (format string vulnerability in fgfmd) affects multiple Fortinet products. Organizations should apply patches for both.

Exploitation Context

Fortinet explicitly confirmed active exploitation at the time of the February 8, 2024 advisory — one of the relatively rare cases where a vendor discloses a vulnerability and simultaneously confirms it is being actively exploited (i.e., a 0-day at time of disclosure). CISA responded with a 7-day deadline — one of the shortest in KEV history for a non-emergency directive — reflecting the urgency. Ransomware groups and nation-state actors targeted unpatched FortiGate appliances to gain initial VPN access and then lateral movement into internal networks.

Remediation

  1. Upgrade FortiOS to a patched version (7.4.3+, 7.2.7+, 7.0.14+, 6.4.15+) immediately. The CISA deadline was February 16, 2024.
  2. If patching cannot be completed immediately, disable SSL-VPN entirely as a temporary workaround — better to lose remote access than to be compromised.
  3. Check FortiGate for indicators of compromise: look for new or modified admin accounts, unexpected scheduled tasks, or modified files in the SSL-VPN web directory.
  4. Review SSL-VPN session logs for connections from unexpected IP addresses or unusual authentication patterns in the weeks preceding the patch.
  5. Rotate VPN user credentials — if the appliance was internet-exposed before patching, assume credential interception was possible.
  6. Implement IP allowlisting for the SSL-VPN management interface — restrict which source IPs can access the VPN portal (if operationally feasible).

Key Details

PropertyValue
CVE ID CVE-2024-21762
Vendor / Product Fortinet — FortiOS
NVD Published2024-02-09
NVD Last Modified2025-10-24
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-787 find similar ↗
CISA KEV Added2024-02-09
CISA KEV Deadline2024-02-16
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2024-02-16. Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Timeline

DateEvent
2024-02-08Fortinet publishes FG-IR-24-015; confirms active exploitation
2024-02-09CVE published; CISA adds to KEV same day with 7-day deadline
2024-02-16CISA BOD 22-01 remediation deadline (7 days — emergency pace)

References

ResourceType
Fortinet PSIRT FG-IR-24-015 Vendor Advisory
NVD — CVE-2024-21762 Vulnerability Database
CISA KEV Catalog Entry US Government