CVE-2022-39952: Unauthenticated arbitrary file write and remote code execution in Fortinet FortiNAC
- Vendor
- Fortinet
CVE-2022-39952 is an external control of file name or path vulnerability in the Fortinet FortiNAC webserver's keyUpload scriptlet. An unauthenticated attacker can submit a specially crafted HTTP request to write arbitrary files on the system, potentially enabling unauthorized code or command execution. Affected versions include 9.4.0, 9.2.0–9.2.5, 9.1.0–9.1.7, 8.8.0–8.8.11, 8.7.0–8.7.6, 8.6.0–8.6.5, 8.5.0–8.5.4, and 8.3.7.
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 unauthenticated arbitrary file writes and can result in remote code or command execution and control of the affected FortiNAC system. Attackers can deploy web shells, schedule malicious tasks, and establish persistent command-and-control access. Exploitation has been observed in campaigns using compromised public-facing servers for initial access and subsequent lateral movement.
Mitigation
If you can’t patch tonight, do this now.
No alternative mitigation is identified in the vulnerability-specific advisory. Prioritize patching Internet-facing FortiNAC webservers and perform a business impact review before deployment. HTTP POST monitoring can help identify exploitation attempts but does not remediate the vulnerability.
Remediation
Patch, then assume compromise.
Upgrade to FortiNAC 9.4.1 or later, 9.2.6 or later, or 9.1.8 or later in the respective release branches. Fortinet also recommends FortiNAC F 7.2.0 or later. Apply the relevant security updates immediately, prioritizing Internet-facing installations.
Exploits
3 exploits 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-2022-39952 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2022-39952?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2022-39952, the earliest disclosed Feb 16, 2023.
- Is there a patch for CVE-2022-39952?
- Upgrade to FortiNAC 9.4.1 or later, 9.2.6 or later, or 9.1.8 or later in the respective release branches. Fortinet also recommends FortiNAC F 7.2.0 or later.
- What products are affected by CVE-2022-39952?
- Fortinet Fortinac.
- How severe is CVE-2022-39952?
- CVE-2022-39952 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 57.2% (99th percentile) as of Oct 16, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.