Relative path traversal and unrestricted file upload in Fortinet FortiManager and FortiAnalyzer
CVE-2023-42791 is a relative path traversal vulnerability involving unrestricted file upload in Fortinet FortiManager and FortiAnalyzer. A remote, authenticated attacker with low privileges can submit crafted HTTP requests to execute unauthorized code or commands. The configuration import upload functionality permits traversal-based file writes outside the intended upload location. A demonstrated exploitation chain combining this vulnerability with the CVE-2024-23666 authorization bypass achieves root-level code execution on the underlying FortiManager Linux system. Affected FortiManager versions include 7.4.0, 7.2.0–7.2.3, 7.0.0–7.0.8, 6.4.0–6.4.12, and 6.2.0–6.2.11.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthorized code or command execution on an affected system. Traversal-based uploads can write attacker-controlled files outside the intended upload directory, including into the root filesystem. When combined with CVE-2024-23666 to expose configuration import functionality to a restricted user, demonstrated exploitation yields a root shell on FortiManager.
If you can’t patch tonight, do this now.
Until fixed releases can be installed, restrict management-interface access to trusted networks and users.
Patch, then assume compromise.
Upgrade FortiManager to 7.4.1 or later, 7.2.4 or later, 7.0.9 or later, 6.4.13 or later, or 6.2.12 or later, according to the installed release branch. Upgrade FortiAnalyzer-BigData 7.2 to 7.2.6 or later. FortiAnalyzer-BigData 7.4 is not affected.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.