Ferritaas Incident Intelligence
PSIRT Advisory Intelligence CVE-2024-21762 FG-IR-24-015 Severity: Critical (CVSS 9.8)

CVE-2024-21762: FortiOS SSL-VPN Out-of-Bounds Write Remote Code Execution

An out-of-bounds memory write vulnerability [CWE-787] in the FortiOS sslvpnd HTTP parser allows unauthenticated remote attackers to execute arbitrary code or commands via specially crafted HTTP requests targeting exposed SSL-VPN web portal endpoints.

🚀 Open Full Runbook & Live Automation on Ferrite → Browse Known Issues Directory
🚨 Active In-The-Wild Exploitation Confirmed by CISA / PSIRT

Technical Root Cause Analysis

The FortiOS SSL-VPN daemon (/bin/sslvpnd) implements an embedded HTTP parsing routine responsible for handling incoming client connections prior to authentication. When processing HTTP POST requests directed toward endpoints such as /remote/login or Web Mode portal paths, the parser evaluates user-supplied chunked transfer data and content length headers.

During request body dechunking, an integer signedness error and improper boundary check allow an attacker to send an oversized or malformed chunk delimiter. The parsing routine allocates a fixed heap buffer but writes parsed body contents based on an attacker-influenced length field, overflowing past the buffer boundaries. This out-of-bounds write overwrites adjacent function pointers in the process heap, leading to control-flow hijack and arbitrary code execution under root privileges.

[sslvpnd 14891] crash: signal 11 (SIGSEGV) at 0x00007f3de4b901a8 backtrace: #0 0x00007f3de58a1412 in http_parse_body_chunk+0x18a () from /bin/sslvpnd #1 0x00007f3de58a2095 in ssl_vpn_process_http_request+0x310 () from /bin/sslvpnd #2 0x00007f3de5898ef4 in ssl_vpn_handle_event+0x9f () from /bin/sslvpnd #3 0x00007f3de578a102 in event_dispatch+0x214 () from /lib64/libevent.so kernel: traps: sslvpnd[14891] general protection fault ip:7f3de58a1412 sp:7ffe3e9a11f0 error:0

Affected Firmware & Blast Radius Matrix

FortiOS Branch Vulnerable Builds Confirmed Clean Build Status & Workaround
FortiOS 7.4 7.4.0 – 7.4.2 7.4.3+ Upgrade firmware; disable Web Mode
FortiOS 7.2 7.2.0 – 7.2.6 7.2.7+ Upgrade firmware; disable Web Mode
FortiOS 7.0 7.0.0 – 7.0.13 7.0.14+ Upgrade firmware; disable Web Mode
FortiOS 6.4 6.4.0 – 6.4.14 6.4.15+ Upgrade firmware; migrate to 7.2 LTS
FortiOS 6.2 6.2.0 – 6.2.15 6.2.16+ Upgrade or decommission SSL-VPN

Platform Impact: Affects all physical FortiGate hardware models (FG-40F through FG-3900E) and virtual appliances (FortiGate-VM) that have the SSL-VPN service enabled on any listening interface.

Step 01: Free Verification CLI (Safe Read-Only)

Execute these diagnostic commands via SSH or console to audit your SSL-VPN operational state, verify listening ports, and check for active exploitation crash signatures:

Diagnostic Commands

# 1. Audit active SSL-VPN daemon operational status and connected tunnels
diagnose vpn ssl status

# 2. Inspect kernel crashlog for sslvpnd segfaults or unexpected termination signatures
diagnose sys log crashlog read | grep -E "sslvpnd|sigsegv"

# 3. Verify SSL-VPN configuration, listening port, and source interface bindings
show vpn ssl settings

Remediation & Workaround Steps (Teaser Preview)

Follow the full production hardening workflow in the Ferrite interactive platform to eliminate exposure without unscheduled maintenance:

Step 02: Audit Active Web Mode Portals & User Mappings

Scan user groups and authentication rules to identify bookmarks and web-portal configurations exposing the HTTP parser.

🔒 Interactive CLI Available in Ferrite Runbook #08

Step 03: Non-Disruptive Web-Mode Disablement Workaround

Execute surgical CLI changes to eliminate web portal access while retaining tunnel mode connectivity for business continuity.

🔒 Interactive CLI Available in Ferrite Runbook #08

Step 04: Local-In Policy & Geolocation IP Hardening

Deploy zero-trust local-in firewall rules restricting SSL-VPN port access strictly to authorized IP blocks and jump hosts.

🔒 Interactive CLI Available in Ferrite Runbook #08
⚡ Ferrite Platform Superpowers

Automate CVE-2024-21762 Triage & Emergency Patching

Connect to your FortiGate via browser-based Web Serial or SSH bridge. Automatically verify crashlogs for exploit artifacts, validate portal configurations, and apply verified workarounds in seconds.

Live Browser Automation Direct terminal connection with live step checkoff.
📟
1-Click Tera Term (.ttl) Generate scripts for air-gapped jumpboxes.
🛡️
Zero-Trust Scrubber Scrub serials and credentials in local browser RAM.
📄
TAC P1 Escalation Dossier Standardized evidence export with SHA-256 seal.

Frequently Asked Questions

What causes the out-of-bounds write in CVE-2024-21762?

The vulnerability resides in the HTTP request body parsing routine of the FortiOS sslvpnd daemon. Specially crafted HTTP chunked transfer requests trigger an integer signedness miscalculation, leading to an out-of-bounds write beyond allocated heap memory chunks.

Can CVE-2024-21762 be mitigated without an immediate firmware reboot?

Yes. Disabling Web Mode across all SSL-VPN portals prevents the vulnerable HTTP parsing path from being triggered by external actors. Restricting access using local-in policies further neutralizes exposure while planning a maintenance window.

Which FortiOS releases permanently resolve this vulnerability?

FortiOS 7.4.3, 7.2.7, 7.0.14, 6.4.15, and 6.2.16 resolve the vulnerability. FortiOS 7.6 builds are clean by design.