CVE-2023-42791: Relative path traversal and unrestricted file upload in Fortinet FortiManager and FortiAnalyzer
- Vendor
- Fortinet
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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
If you can’t patch tonight, do this now.
Until fixed releases can be installed, restrict management-interface access to trusted networks and users.
Remediation
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.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2023-42791 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2023-42791 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-42791?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2023-42791, the earliest disclosed Feb 12, 2025.
- Is there a patch for CVE-2023-42791?
- 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.
- What products are affected by CVE-2023-42791?
- Fortinet Fortianalyzer and Fortinet Fortimanager.
- How severe is CVE-2023-42791?
- CVE-2023-42791 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 4.0% (91st percentile) as of Oct 16, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.