CVE-2022-40684 is an authentication bypass vulnerability on vulnerable devices’ administrative interface that can be triggered by sending a specially crafted HTTP(S) requests.
Successful exploitation may allow attackers with access to the management interface to perform administrator operations and to, essentially, take control of the device.
FortiOS version 7.2.2 or above, or version 7.0.7 or above.
FortiProxy version 7.2.1 or above, or 7.0.7 or above.
FortiSwitchManager version 7.2.1 or above.
If that’s not possible, depending on the device, you should disable the HTTP/HTTPS administrative interface or limit IP addresses that can reach the administrative interface.