Hardcoded Session Secret Leading to Unauthenticated Remote Code Execution

Summary

A use of hard-coded cryptographic key vulnerability [CWE-321] in FortiSwitch may allow a remote unauthenticated attacker in posession of the key to execute unauthorized code via crafted cryptographic requests.

Version Affected Solution
FortiSwitch 7.6 Not affected Not Applicable
FortiSwitch 7.4 7.4.0 Upgrade to 7.4.1 or above
FortiSwitch 7.2 7.2.0 through 7.2.5 Upgrade to 7.2.6 or above
FortiSwitch 7.0 7.0.0 through 7.0.7 Upgrade to 7.0.8 or above
FortiSwitch 6.4 6.4.0 through 6.4.13 Upgrade to 6.4.14 or above
FortiSwitch 6.2 6.2.0 through 6.2.7 Upgrade to 6.2.8 or above
FortiSwitch 6.0 6.0.0 through 6.0.7 Migrate to a fixed release

Acknowledgement

This was discovered during an independent source code audit commissioned by Fortinet.

Timeline

2025-01-14: Initial publication