CVE-2022-40684 is an authentication bypass in the HTTP/HTTPS administrative interface of Fortinet FortiOS, FortiProxy and FortiSwitchManager: crafted requests let an unauthenticated attacker perform admin operations on the device. NVD scores it 9.8, and it is in CISA KEV with known ransomware use. Upgrade FortiOS to 7.0.7 or 7.2.2, or disable or restrict the admin interface.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
100.0%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2022-40684 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Fortinet FortiOS (FortiGate firmware) | cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:* | 7.0.0 to 7.0.6 and 7.2.0 to 7.2.1 (NVD); fixed in 7.0.7 and 7.2.2 or above, FG6000F and 7000E/F series in 7.0.5 B8001 or above (Fortinet FG-IR-22-377); 6.4 and 6.2 not affected |
| Fortinet FortiProxy | cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:* | 7.0.0 to 7.0.6 and 7.2.0 (NVD); fixed in 7.0.7 and 7.2.1 or above (Fortinet FG-IR-22-377) |
| Fortinet FortiSwitchManager | cpe:2.3:a:fortinet:fortiswitchmanager:7.0.0:*:*:*:*:*:*:* | 7.0.0 and 7.2.0 (NVD); fixed in 7.0.1 and 7.2.1 or above (Fortinet FG-IR-22-377) |
What does this mean for affected devices?
Fortinet's PSIRT advisory FG-IR-22-377, published on 2022-10-10, describes "an authentication bypass using an alternate path or channel vulnerability [CWE-288] in FortiOS, FortiProxy and FortiSwitchManager" that "may allow an unauthenticated attacker to perform operations on the administrative interface via specially crafted HTTP or HTTPS requests." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H); Fortinet, the CNA, gives the same 9.8 base score with a 9.6 temporal score. NVD classifies the weakness as CWE-287 (improper authentication), while Fortinet's text names CWE-288. NVD published the record on 2022-10-18 (NVD, CVE record).
Which FortiGate, FortiProxy and FortiSwitchManager versions are affected?
| Product | Affected | Fixed |
|---|---|---|
| FortiOS 7.2 | 7.2.0 to 7.2.1 | 7.2.2 or above |
| FortiOS 7.0 | 7.0.0 to 7.0.6 | 7.0.7 or above (FG6000F and 7000E/F series: 7.0.5 B8001 or above) |
| FortiProxy 7.2 | 7.2.0 | 7.2.1 or above |
| FortiProxy 7.0 | 7.0.0 to 7.0.6 | 7.0.7 or above |
| FortiSwitchManager 7.2 | 7.2.0 | 7.2.1 or above |
| FortiSwitchManager 7.0 | 7.0.0 | 7.0.1 or above |
FortiOS 6.4 and 6.2 and FortiProxy 2.0, 1.2, 1.1 and 1.0 are listed as not affected. NVD's CPE configuration matches this table. FortiOS is the firmware on FortiGate firewalls, so the exposure is any FortiGate on 7.0.0 to 7.0.6 or 7.2.0 to 7.2.1 whose HTTP/HTTPS administrative interface is reachable by an attacker.
How do you fix CVE-2022-40684?
Upgrade to the fixed release above, following Fortinet's upgrade path tool. FG-IR-22-377's workaround for FortiOS is to "Disable HTTP/HTTPS administrative interface" or limit the IP addresses that can reach it: create an address and address group for the management hosts, then a local-in policy that accepts HTTP/HTTPS from that group on the management interface and a second local-in policy that denies HTTP/HTTPS from all other sources (with custom service objects if the admin ports are non-default, and a different setup for an HA reserved management interface). FortiProxy can either disable the interface or restrict it with trust-ip on a dedicated management interface; for FortiSwitchManager the only workaround is to disable the HTTP/HTTPS administrative interface. Fortinet also asks customers to check device logs for user=Local_Process_Access and for an unauthorised super_admin account named fortigate-tech-support. In its PSIRT blog update of 2022-10-14, Fortinet recommends validating the configuration for unauthorised changes "regardless of whether they have upgraded." Keeping management interfaces off the internet is the subject of our CISA BOD 23-02 guide. Later FortiOS flaws on internet-facing FortiGates include the SSL-VPN bugs CVE-2023-27997 and CVE-2024-21762.
Is CVE-2022-40684 exploited?
Yes. CVE-2022-40684 is in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18): added on 2022-10-11 with a federal due date of 2022-11-01, and marked as known to be used in ransomware campaigns. Fortinet's blog says that after a proof-of-concept was published there was active exploitation, with attackers scanning for devices, downloading configurations and installing malicious administrator accounts. FIRST EPSS gives it 0.99984, the 99.98th percentile, in the 2026-11-18 dataset (CISA KEV, FIRST EPSS).
Evidence
- NVD: [email protected] Primary CVSS 3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE-287; Fortinet ([email protected]) Secondary 9.8 same vector; CPE FortiOS 7.0.0 to before 7.0.7 and 7.2.0 to before 7.2.2, FortiProxy 7.0.0 to before 7.0.7 and 7.2.0, FortiSwitchManager 7.0.0 and 7.2.0; published 2022-10-18; status Analyzed, read 2026-11-19. — NVD
- Fortinet FG-IR-22-377 (published 2022-10-10): authentication bypass using an alternate path or channel [CWE-288] in the administrative interface; affected/fixed versions per table; FG6000F and 7000E/F fixed in 7.0.5 B8001; workaround for FortiOS: disable HTTP/HTTPS administrative interface or restrict via address group and local-in policy; FortiProxy: disable or trust-ip on a dedicated management interface; FortiSwitchManager: disable HTTP/HTTPS administrative interface; IoC user=Local_Process_Access and super_admin account fortigate-tech-support; CVSS 9.8, temporal 9.6. — Fortinet PSIRT
- Fortinet PSIRT blog (Carl Windsor, 2022-10-14): customers notified 2022-10-06, public advisory 2022-10-10; after outside publication of POC code there is active exploitation; attackers scan, download configuration and install malicious admin accounts; validate configuration regardless of whether upgraded. — Fortinet PSIRT blog
- CVE record (CNA Fortinet, state PUBLISHED): CVSS 3.1 base 9.8, temporal 9.6 (E:F/RL:U/RC:C); impact: execute unauthorized code or commands. — CVE.org
- CISA KEV catalog version 2026.11.18: CVE-2022-40684 Fortinet Multiple Products Authentication Bypass Vulnerability, dateAdded 2022-10-11, dueDate 2022-11-01, knownRansomwareCampaignUse Known, CWE-288; checked 2026-11-19. — CISA KEV
- EPSS 0.99984, percentile 0.99983, dataset 2026-11-18, read 2026-11-19. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which FortiOS versions fix CVE-2022-40684?
FortiOS 7.0.7 or above and 7.2.2 or above; FG6000F and 7000E/F series need 7.0.5 B8001 or above. FortiOS 6.4 and 6.2 are not affected (per Fortinet FG-IR-22-377).
What is the workaround for CVE-2022-40684?
On FortiOS, disable the HTTP/HTTPS administrative interface, or limit which IP addresses can reach it with an address group and local-in policies that accept HTTP/HTTPS only from management hosts and deny it from everywhere else. On FortiSwitchManager the only workaround is disabling the HTTP/HTTPS administrative interface (per Fortinet FG-IR-22-377).
How do you check a FortiGate for CVE-2022-40684 compromise?
Look for user=Local_Process_Access in the device logs and for an unauthorised super_admin account named fortigate-tech-support, and validate the configuration for unauthorised changes even after upgrading (per Fortinet FG-IR-22-377 and the Fortinet PSIRT blog of 2022-10-14).
Is CVE-2022-40684 exploited in the wild?
Yes. It is in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18), added on 2022-10-11 and marked as known ransomware use. FIRST EPSS gives it 0.99984, the 99.98th percentile, in the 2026-11-18 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?