CVE-2022-40684: Administrative Authentication Bypass in Fortinet FortiOS, FortiProxy, and FortiSwitchManager
- Vendor
- Fortinet
CVE-2022-40684 is an authentication bypass through an alternate path or channel in the administrative interfaces of Fortinet FortiOS, FortiProxy, and FortiSwitchManager. The REST API access-control mechanism trusts attacker-controlled request attributes, allowing specially crafted HTTP or HTTPS requests to impersonate trusted local requests 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. Successful exploitation enables privileged account manipulation, configuration disclosure and modification, and persistent administrative access. 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.
An unauthenticated remote attacker can compromise administrative control of an affected appliance. Available operations include adding or replacing administrator SSH public keys, creating privileged local accounts, downloading device configurations, changing network settings or policies to reroute traffic, and initiating packet captures. Confirmed exploitation includes configuration downloads and creation of a malicious super-administrator account. Exposed configurations can disclose VPN credentials, certificates, firewall rules, and network connectivity details, potentially enabling subsequent network access and lateral movement. Patching does not invalidate previously stolen secrets or remove attacker-created persistence.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable HTTP/HTTPS administrative access on affected products. Alternatively, restrict FortiOS administrative access with local-in policies that explicitly permit trusted source addresses and deny other HTTP/HTTPS management traffic. Configure matching custom service objects for nondefault management ports, and use Fortinet's specific local-in configuration for HA reserved management interfaces. For FortiProxy VMs or FortiProxy appliances running 7.0.6, use the supported dedicated-management-interface workaround with trusted source restrictions. For FortiSwitchManager, disable HTTP/HTTPS administrative access. Reduce public management exposure and monitor administrative logs, account changes, SSH-key modifications, and configuration downloads. MFA does not substitute for patching or restricting the vulnerable administrative interface.
Remediation
Patch, then assume compromise.
Apply vendor-fixed firmware using Fortinet's recommended upgrade path. Upgrade FortiOS 7.2.0–7.2.1 to 7.2.2 or later, and 7.0.0–7.0.6 to 7.0.7 or later. For FG6000F and 7000E/F series, the advisory specifies the platform exception of FortiOS 7.0.5 B8001 or later. Upgrade FortiProxy 7.2.0 to 7.2.1 or later, and 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. Investigate potentially exploited devices for unauthorized accounts, administrator SSH keys, configuration changes, and configuration exports. Following compromise, remove unauthorized access mechanisms, validate configuration integrity, and rotate exposed administrator, VPN, and other embedded or reused secrets; firmware updates alone do not remediate historical credential exposure.
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 7, 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?
- Apply vendor-fixed firmware using Fortinet's recommended upgrade path. Upgrade FortiOS 7.2.0–7.2.1 to 7.2.2 or later, and 7.0.0–7.0.6 to 7.0.7 or later.
- 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 100.0% (100th percentile) as of Nov 7, 2026.
Recent activity
52 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.