Security Advisory

CVE-2024-21762: Fortinet FortiOS SSL-VPN RCE

Last updated:
  • CVE-2024-21762

CVE-2024-21762 is an out-of-bounds write in the SSL-VPN component (sslvpnd) of Fortinet FortiOS and FortiProxy that lets a remote, unauthenticated attacker execute arbitrary code or commands on the device via a crafted HTTP request, and it was exploited in the wild — including in ransomware intrusions — before most organizations could patch.

Need to know whether your firmware ships an affected version? Get a firmware scan report or contact us.

How severe is CVE-2024-21762?

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

10.2%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2024-21762 · Source: NVD

CVSS v3.1 severity rating scale: None 0.0, Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9, Critical 9.0 to 10.0
How a CVSS v3.1 base score maps to a severity rating. Source: FIRST CVSS v3.1 specification, section 5.

Which products and versions does CVE-2024-21762 affect?

ComponentCPEVersion range
Fortinet FortiOScpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*6.0.0 through 6.0.17 (fixed in 6.0.18); 6.2.0 through 6.2.15 (fixed in 6.2.16); 6.4.0 through 6.4.14 (fixed in 6.4.15); 7.0.0 through 7.0.13 (fixed in 7.0.14); 7.2.0 through 7.2.6 (fixed in 7.2.7); 7.4.0 through 7.4.2 (fixed in 7.4.3)
Fortinet FortiProxycpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*1.0.0 through 1.0.7, 1.1.0 through 1.1.6, 1.2.0 through 1.2.13, 2.0.0 through 2.0.13 (all fixed in 2.0.14); 7.0.0 through 7.0.14 (fixed in 7.0.15); 7.2.0 through 7.2.8 (fixed in 7.2.9); 7.4.0 through 7.4.2 (fixed in 7.4.3)

What does CVE-2024-21762 mean for affected devices?

CVE-2024-21762 is an out-of-bounds write (CWE-787) in the sslvpnd component of Fortinet FortiOS and FortiProxy. A remote attacker who can reach the SSL-VPN interface, without needing any credentials, can send a specially crafted request that writes outside the bounds of an allocated buffer, leading to execution of unauthorized code or commands on the appliance (NVD).

NVD's own analysis and Fortinet's CNA-submitted score agree: CVSS v3.1 9.8 (critical), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H — network-reachable, low attack complexity, no privileges or user interaction required, with high impact to confidentiality, integrity and availability (NVD).

CISA added CVE-2024-21762 to the Known Exploited Vulnerabilities (KEV) catalog on 2024-02-09, with a required-action due date of 2024-02-16, and the catalog records known use in ransomware campaigns (CISA KEV).

Fortinet's own PSIRT advisory FG-IR-24-015 lists the FortiOS and FortiProxy builds above as affected, states that disabling SSL-VPN is the only workaround short of upgrading (disabling just "webmode" is explicitly called out as not a valid workaround), and notes a virtual patch (FortiGuard IPS signature "HTTP.Chunk.Length.Invalid.", available from FMWP database update 24.020) for appliances that cannot be patched immediately. The advisory states the issue is "potentially being exploited in the wild" (Fortinet PSIRT Advisory FG-IR-24-015).

As of 2026-11-28, FIRST scores the probability of exploitation at 0.10232 (96.414th percentile), consistent with a vulnerability that remains widely scanned and exploited years after disclosure (FIRST EPSS).

Because the only real remediation is patching (or fully disabling SSL-VPN), any FortiOS or FortiProxy device on an affected build with SSL-VPN enabled should be upgraded immediately and checked for signs of prior compromise given the documented ransomware use.

Three signals on every advisory: CVSS says how severe the flaw is, EPSS gives the probability of exploitation in the wild in the next 30 days, and a CISA KEV listing means the flaw has been exploited in the wild
CVSS rates severity, EPSS estimates the likelihood of exploitation, and CISA KEV records exploitation seen in the wild. Source: FIRST EPSS; CISA KEV catalog.

How do the CVSS, EPSS and KEV signals for CVE-2024-21762 compare?

CVE-2024-21762 signals as recorded on this page, last checked .
SignalValue for CVE-2024-21762SourceWhat it tells you
CVSS base score9.8 (Critical)NVDHow severe the flaw is in its worst case, from 0.0 to 10.0; it says nothing about whether anyone is exploiting it.
EPSS probability10.2%FIRST EPSSThe probability that the CVE is exploited in the wild in the next 30 days.
CISA KEV listingListedCISA KEV catalogA listing means CISA has reliable evidence of exploitation in the wild; BOD 22-01 sets a remediation due date for US federal civilian agencies.
Published2024-02-09NVDThe date the CVE record was first published in NVD.

How does the CVE-2024-21762 score change on your network?

A CVSS base score assumes the worst-case exposure. If the vulnerable interface on your device is reachable only from a local segment, or an attacker needs an account first, change those metrics below to see the re-scored base value. The FIRST CVSS v3.1 specification puts deployment-specific scoring in the Environmental metric group, so treat this as a quick what-if, not a replacement score.

Starting vector (matches the CVSS score above): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Quoted vector: 9.8 (Critical)

Your re-score: 9.8 (Critical)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.
From advisory to verified fix in four steps: read the advisory, find the affected component in the firmware SBOM, apply the fixed version or vendor mitigation, then re-scan the image to confirm the vulnerable version is gone
Read the advisory, find the component in your firmware SBOM, apply the fix, then re-scan to confirm it.

How do you check CVE-2024-21762 status from the command line?

These commands re-read the three public signals for CVE-2024-21762 (NVD, FIRST EPSS and the CISA KEV feed) so a build pipeline or a ticket can record the current values. They need curl and jq.

# NVD: CVSS metrics and record status (no API key: at most 5 requests per 30 s)
curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2024-21762" \
  | jq '.vulnerabilities[0].cve | {vulnStatus, metrics}'

# FIRST EPSS: today's exploitation probability and percentile
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2024-21762" | jq '.data[0]'

# CISA KEV: prints the catalog entry, or nothing if the CVE is not listed
curl -s https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json \
  | jq --arg id CVE-2024-21762 '.vulnerabilities[] | select(.cveID == $id)'

Which sources back each CVE-2024-21762 claim?

  • Unauthenticated, remote out-of-bounds write in the sslvpnd component of FortiOS/FortiProxy allows execution of unauthorized code or commands via crafted requests. — NVD
  • CVSS v3.1 base score is 9.8 (critical), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, agreed by both NVD and the Fortinet CNA submission. — NVD
  • Added to the CISA Known Exploited Vulnerabilities catalog on 2024-02-09, due date 2024-02-16, with known ransomware campaign use. — CISA KEV
  • Affected: FortiOS 6.0.0-6.0.17, 6.2.0-6.2.15, 6.4.0-6.4.14, 7.0.0-7.0.13, 7.2.0-7.2.6, 7.4.0-7.4.2; FortiProxy 1.0.x-1.2.x and 2.0.0-2.0.13 (fixed 2.0.14), 7.0.0-7.0.14, 7.2.0-7.2.8, 7.4.0-7.4.2. Disabling SSL-VPN is the only workaround (disabling webmode alone is not valid); a virtual patch IPS signature exists for appliances pending upgrade. — Fortinet PSIRT Advisory FG-IR-24-015
  • EPSS score is 0.10232 (96.414th percentile) as of 2026-11-28. — FIRST EPSS

Is your firmware affected by CVE-2024-21762?

Advisories in the same weakness class as CVE-2024-21762

Sources for CVE-2024-21762

  1. NVD
  2. CISA KEV
  3. Fortinet PSIRT Advisory FG-IR-24-015
  4. FIRST EPSS

CVE-2024-21762: frequently asked questions

Is simply disabling 'webmode' enough to mitigate CVE-2024-21762 without a full patch?

No — Fortinet's PSIRT advisory FG-IR-24-015 explicitly states that disabling webmode alone is not a valid workaround for CVE-2024-21762; fully disabling SSL-VPN (or upgrading) is the only mitigation the advisory recognizes as effective, per Fortinet PSIRT Advisory FG-IR-24-015.

Is there a virtual patch for CVE-2024-21762 for appliances that can't be upgraded immediately?

Yes — Fortinet's advisory names a FortiGuard IPS signature, "HTTP.Chunk.Length.Invalid.", available from FMWP database update 24.020, as a virtual patch for appliances pending a full firmware upgrade, per Fortinet PSIRT Advisory FG-IR-24-015.

How did Fortinet characterize exploitation status of CVE-2024-21762 at disclosure?

Fortinet's own advisory described the issue as "potentially being exploited in the wild" at the time of disclosure, language the company used the same day CISA's KEV listing confirmed active, in-the-wild use, per Fortinet PSIRT Advisory FG-IR-24-015.

Do NVD and Fortinet agree on the severity of CVE-2024-21762?

Yes — unlike several other advisories on this site where the CNA and NVD scores diverge, NVD's own analysis and Fortinet's CNA-submitted score for CVE-2024-21762 agree exactly: CVSS v3.1 9.8 (critical), vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, per NVD.