CVE-2022-40684: Administrative Authentication Bypass in Fortinet FortiOS, FortiProxy, and FortiSwitchManager
- Vendor
- Fortinet
CVE-2022-40684 is an authentication bypass using an alternate path or channel in the HTTP/HTTPS administrative interfaces of Fortinet FortiOS, FortiProxy, and FortiSwitchManager. The administrative REST API incorrectly trusts attacker-controlled request attributes, allowing specially crafted requests to impersonate trusted local management traffic and perform administrative operations without authentication. Affected releases are FortiOS 7.2.0–7.2.1 and 7.0.0–7.0.6; FortiProxy 7.2.0 and 7.0.0–7.0.6; and FortiSwitchManager 7.2.0 and 7.0.0. Exploitation can disclose device configurations, modify administrator accounts and SSH keys, and alter network settings. The vulnerability was disclosed in October 2022 and has been exploited in the wild.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises administrative control and the confidentiality and integrity of affected appliances. Attackers can download configurations containing sensitive network information and credentials, create privileged local accounts, modify administrator SSH keys, reroute traffic through configuration changes, and initiate packet captures. Confirmed exploitation includes configuration downloads and creation of a malicious super-administrator account. Exposed VPN credentials and site-to-site tunnel configurations can facilitate subsequent access to connected networks, depending on configuration and credential validity. Patching does not invalidate previously stolen secrets or remove attacker-created accounts.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable HTTP/HTTPS administrative access. Alternatively, restrict management reachability to explicitly trusted sources. For FortiOS, use source-address groups and local-in policies that permit trusted sources and deny other HTTP/HTTPS management traffic; configure matching custom service objects for nondefault management ports. HA reserved management interfaces require the vendor-specific local-in policy configuration. For FortiProxy VMs of all versions, or appliances running 7.0.6, Fortinet provides an alternative involving a dedicated management interface and trusted source IP/subnet restrictions. For FortiSwitchManager, the documented workaround is disabling HTTP/HTTPS administrative access. Monitor administrative activity and inspect accounts and SSH keys for unauthorized changes. MFA alone does not remediate this unauthenticated administrative API bypass.
Remediation
Patch, then assume compromise.
Upgrade FortiOS 7.2.0–7.2.1 to 7.2.2 or later, and FortiOS 7.0.0–7.0.6 to 7.0.7 or later. Fortinet specifies a platform exception for FG6000F and 7000E/F series: upgrade to FortiOS 7.0.5 B8001 or later as applicable. Upgrade FortiProxy 7.2.0 to 7.2.1 or later, and FortiProxy 7.0.0–7.0.6 to 7.0.7 or later. Upgrade FortiSwitchManager 7.2.0 to 7.2.1 or later, and 7.0.0 to 7.0.1 or later. Follow the vendor-supported upgrade path. Investigate potentially compromised devices for unauthorized accounts, SSH keys, configuration exports, and configuration changes. Where compromise or configuration disclosure occurred, initiate incident response, remove unauthorized access, restore configuration integrity, and rotate exposed administrator, VPN, and other configuration-held credentials and secrets.
Exploits
13 exploits validated by Mallory's analysis. Hidden: 7 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-40684 exploited in the wild?
- Yes. As of Nov 20, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 11, 2022.
- Is there a public exploit for CVE-2022-40684?
- Yes. Mallory tracks 13 public exploits or proofs of concept for CVE-2022-40684, the earliest disclosed Oct 10, 2022.
- Is there a patch for CVE-2022-40684?
- Upgrade FortiOS 7.2.0–7.2.1 to 7.2.2 or later, and FortiOS 7.0.0–7.0.6 to 7.0.7 or later. Fortinet specifies a platform exception for FG6000F and 7000E/F series: upgrade to FortiOS 7.0.5 B8001 or later as applicable.
- What products are affected by CVE-2022-40684?
- Fortinet Fortios, Fortinet Fortiproxy, and Fortinet Fortiswitchmanager.
- How severe is CVE-2022-40684?
- CVE-2022-40684 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 98.9% (100th percentile) as of Nov 20, 2026.
Recent activity
54 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.