Fortinet FortiMail path traversal enables unauthenticated arbitrary file writes

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-104286?

CVE-2026-104286 is a vulnerability classified as Improper Limitation of a Pathname to a Restricted Directory, affecting FortiMail (affected versions: 8.0.0, 7.6.0 – ≤ 7.6.5, and other affected versions). This vulnerability is rated Critical, with a CVSS score of 9.8. This vulnerability has been observed being exploited in the wild.

Overview

Original source data

An improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Fortinet FortiMail 8.0.0 through 8.0.1, FortiMail 7.6.0 through 7.6.6, FortiMail 7.4.0 through 7.4.8, FortiMail 7.2.0 through 7.2.9 may allow an unauthenticated attacker to write arbitrary files on the underlying system via crafted HTTP or HTTPS requests.

Affected products and scope

The structured affected data in the record identifies these FortiMail ranges:

  • 8.0.0 is affected.
  • 7.6.0 through 7.6.5 are affected.
  • 7.4.0 through 7.4.6 are affected.
  • 7.2.0 through 7.2.9 are affected.
  • 7.0.0 through 7.0.9 are affected.

The narrative description in the same record instead states 8.0.0 through 8.0.1, 7.6.0 through 7.6.6, and 7.4.0 through 7.4.8. The status of 8.0.1, 7.6.6, 7.4.7, and 7.4.8 is therefore inconsistent in the supplied evidence and should be verified with Fortinet before those releases are treated as unaffected. The product default_status is unaffected outside the listed affected conditions, but that default does not resolve the branch discrepancies.

Technical details

Fortinet FortiMail contains a CWE-22 path traversal flaw caused by improper limitation of a pathname to a restricted directory. An attacker can send a crafted HTTP or HTTPS request that supplies path traversal data to the product's path-handling logic. The request is network reachable and does not require authentication or user interaction, and successful exploitation can write arbitrary files on the underlying system. The available evidence does not identify the endpoint, handler, target pathname, permissions applied to the written file, or whether file writing directly leads to code execution. Code execution or a specific level of compromise is therefore a possible consequence, not a confirmed outcome.

Exploitability

The vulnerability can be reached over the network through crafted HTTP or HTTPS requests. The supplied assessment describes exploitation as requiring no authentication, low complexity, and no user interaction. The record marks the vulnerability as known exploited and as having a public exploit, and the available evidence indicates that it is listed in CISA's Known Exploited Vulnerabilities catalog. The supplied evidence does not identify a specific exploit, payload, threat actor, campaign, victim, or indicator of compromise.

Technical impact

The vulnerability provides an arbitrary file-write primitive on the FortiMail underlying system, directly affecting the integrity of the appliance and the services it provides. A written file could cause service disruption, alter configuration, or support a subsequent attack; these are possible consequences and are not all confirmed by the record. Because the request requires no authentication, an attacker does not need an existing FortiMail account before attempting exploitation. The evidence does not establish the final privilege level, a specific file path, data-reading capability, or code execution, so those outcomes should not be treated as confirmed.

Business impact

Arbitrary file writing can modify programs, configuration, or data on a FortiMail appliance, affecting system integrity and mail-processing operations. A written file could also disrupt service or enable a subsequent attack, although the exact scenario depends on the target pathname and execution permissions. Because authentication is not required, Internet-reachable HTTP or HTTPS interfaces may be probed without a prior FortiMail account. The record does not confirm a data breach, a specific campaign, or impact to a named organization.

Remediation

  1. Upgrade each branch to the release named in the record's solution: 8.0.1 for the 8.0 branch, 7.6.6 for the 7.6 branch, 7.4.8 for the 7.4 branch, and 7.2.10 for the 7.2 branch.
  2. For the 7.0 branch, the record identifies 7.0.0 through 7.0.9 as affected but does not name a corresponding fixed FortiMail release. Obtain the current upgrade path from Fortinet rather than inferring a fixed version.
  3. Because the affected boundaries conflict with the target releases in the solution, verify the installed version and the current advisory status before concluding that 8.0.1, 7.6.6, or 7.4.8 fully resolves the organization's exposure.
  4. For FortiMail Cloud, the solution states that Fortinet remediated the issue in 25.1 and that customers do not need to act, but it also says that this release was not released. Confirm deployment status with the service provider.
  5. If an upgrade cannot be completed immediately, apply the current mitigation provided by Fortinet and reduce unnecessary access to HTTP or HTTPS interfaces while remediation is pending. The supplied record does not define a specific workaround that can replace the fix.

Detection

  1. Inventory all FortiMail appliances and FortiMail Cloud deployments, then compare installed versions with the affected branches in affected_summary.
  2. Identify FortiMail HTTP and HTTPS interfaces or services that are reachable from the Internet, especially management or externally exposed request-processing interfaces.
  3. Review HTTP or HTTPS logs and system telemetry for unusual requests that may manipulate pathnames, together with unexpected file creation or modification outside the known baseline. These are investigation targets, not vendor-confirmed indicators.
  4. Compare file-integrity, configuration, and service-state baselines with prior known-good records to identify unexpected changes on the underlying system.
  5. If compromise is suspected, isolate the appliance according to incident-response procedures and preserve logs and forensic evidence before recovery. The record provides no specific endpoint, target pathname, or IOC, and the absence of suspicious log entries does not prove that the system is safe.
Sources (26)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.