Fortinet FortiMail Vulnerability Allows Command Injection and Data Manipulation
A critical vulnerability in Fortinet FortiMail, identified as CWE-88 Argument Injection, enables authenticated remote attackers with admin privileges to execute arbitrary code, delete users across tenant domains, and read/write arbitrary files.

Fortinet's Product Security Incident Response Team (PSIRT) has disclosed a critical vulnerability, FG-IR-26-218, affecting multiple versions of its FortiMail email security gateway. The flaw, classified under CWE-88 Argument Injection, carries a CVSSv3 score of 7.6 and poses a significant risk to organizations utilizing the affected products.
The vulnerability stems from an improper neutralization of special elements used in commands within the FortiMail administrative interface. This allows an authenticated remote attacker, who possesses domain administrator or full administrator privileges, to craft malicious HTTP requests. By sending these specially designed requests, the attacker can manipulate the system in several dangerous ways.
One of the primary impacts of this vulnerability is the ability for an attacker to delete users from other tenant domains that are paired with a FortiAuthenticator. This could lead to significant disruption of email services and user management for unrelated entities sharing the same infrastructure. Furthermore, the attacker can execute arbitrary code as the root user, effectively gaining complete control over the affected FortiMail appliance.
Beyond code execution, the vulnerability also permits arbitrary file read and write operations as the root user. This capability could be leveraged to exfiltrate sensitive system configurations, user data, or even plant malicious files on the appliance. The combination of these capabilities makes FG-IR-26-218 a severe threat, enabling attackers to compromise the integrity and confidentiality of the email gateway and its associated data.
The vulnerability was discovered internally by Gwendal Guegniaud of the Fortinet Product Security team, with assistance from the company's Claude Mythos AI model. This internal discovery highlights the ongoing efforts by vendors to identify and address security weaknesses before they are exploited in the wild.
Fortinet has provided a comprehensive list of affected FortiMail versions, ranging from 7.2.0 through 8.0.2. The advisory indicates that the vulnerability was internally discovered and reported, and there is no immediate indication of widespread exploitation. However, given the critical nature of the flaw and the potential for significant impact, organizations using any of the listed FortiMail versions are strongly advised to update their systems promptly.
While specific patches are not detailed in the advisory, the disclosure implies that updates are available or will be made available to address this issue. Users are encouraged to consult the Fortinet PSIRT advisories and support channels for the latest information on mitigation and remediation steps. The advisory also lists multiple CVE IDs associated with this finding, including CVE-2026-126166, CVE-2026-126167, CVE-2026-126168, and CVE-2026-126169, underscoring the multifaceted nature of the exploit.
This incident serves as a stark reminder of the importance of robust security practices for email infrastructure. FortiMail is a critical component for many organizations' communication security, and vulnerabilities like this can have far-reaching consequences. Prompt patching and vigilant monitoring of administrative interfaces are crucial to maintaining a secure email environment.