Headline
CVE-2023-25607: Fortiguard
An improper neutralization of special elements used in an OS Command (‘OS Command Injection’) vulnerability [CWE-78 ] in FortiManager 7.2.0 through 7.2.2, 7.0.0 through 7.0.7, 6.4.0 through 6.4.11, 6.2 all versions, 6.0 all versions, FortiAnalyzer 7.2.0 through 7.2.2, 7.0.0 through 7.0.7, 6.4.0 through 6.4.11, 6.2 all versions, 6.0 all versions and FortiADC 7.1.0, 7.0.0 through 7.0.3, 6.2 all versions, 6.1 all versions, 6.0 all versions management interface may allow an authenticated attacker with at least READ permissions on system settings to execute arbitrary commands on the underlying shell due to an unsafe usage of the wordexp function.
** PSIRT Advisories**
FortiManager, FortiAnalyzer, FortiADC - Command injection due to an unsafe usage of function
Summary
An improper neutralization of special elements used in an OS Command (‘OS Command Injection’) vulnerability [CWE-78 ] in FortiManager, FortiAnalyzer and FortiADC management interface may allow an authenticated attacker with at least READ permissions on system settings to execute arbitrary commands on the underlying shell due to an unsafe usage of the wordexp function.
Version
Affected Products
Solutions
FortiAnalyzer 7.4
Not affected
Upgrade to 7.4.0 or above
FortiAnalyzer 7.2
7.2.0 through 7.2.2
Upgrade to 7.2.3 or above
FortiAnalyzer 7.0
7.0.0 through 7.0.7
Upgrade to 7.0.8 or above
FortiAnalyzer 6.4
6.4.0 through 6.4.11
Upgrade to 6.4.12 or above
FortiAnalyzer 6.2
6.2 all versions
Migrate to a fixed release
FortiAnalyzer 6.0
6.0 all versions
Migrate to a fixed release
FortiManager 7.4
Not affected
Upgrade to 7.4.0 or above
FortiManager 7.2
7.2.0 through 7.2.2
Upgrade to 7.2.3 or above
FortiManager 7.0
7.0.0 through 7.0.7
Upgrade to 7.0.8 or above
FortiManager 6.4
6.4.0 through 6.4.11
Upgrade to 6.4.12 or above
FortiManager 6.2
6.2 all versions
Migrate to a fixed release
FortiManager 6.0
6.0 all versions
Migrate to a fixed release
FortiADC 7.1
7.1.0
Upgrade to 7.1.1 or above
FortiADC 7.0
7.0.0 through 7.0.3
Upgrade to 7.0.4 or above
FortiADC 6.2
6.2 all versions
Migrate to a fixed release
FortiADC 6.1
6.1 all versions
Migrate to a fixed release
FortiADC 6.0
6.0 all versions
Migrate to a fixed release
Follow the recommended upgrade path using our tool at: https://docs.fortinet.com/upgrade-tool
Acknowledgement
Internally discovered and reported by Wilfried Djettchou of Fortinet Product Security team.
Timeline
2023-09-15: Initial publication