Restricted Shell Escape via Argument Injection

Summary

An improper neutralization of special elements used in an OS Command [CWE-78] in FortiSwitch may allow a local authenticated attacker to execute unauthorized code via FortiSwitch CLI.

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