Exploited FortiMail zero-day lets unauthenticated attackers write files on mail gateways
Fortinet disclosed a critical, unauthenticated path-traversal flaw in FortiMail (CVE-2026-104286, CVSS 9.8) that lets attackers write arbitrary files via crafted HTTP requests, and confirmed it is being exploited in the wild. CISA added it to its Known Exploited Vulnerabilities catalog; Fortinet initially offered only workarounds, then released fixed versions 8.0.2, 7.6.7 and 7.4.9 on October 5.
Fortinet disclosed on October 1 a critical vulnerability in FortiMail, its email security gateway, that is being exploited in the wild. CVE-2026-104286 (CVSS 9.8) combines a path traversal flaw with improper handling of null bytes, letting an unauthenticated attacker write arbitrary files on the underlying system through crafted HTTP or HTTPS requests. Fortinet's own product security team found it.
The attack path runs through FortiMail's identity-based encryption (IBE) feature. When the advisory was first published, Fortinet offered only workarounds: turn off the IBE service, block internet access to the FortiMail webmail interface or limit it to trusted networks, or have a web application firewall block POST requests to /ibe containing "../".
On October 5 Fortinet updated the advisory with fixed releases: FortiMail 8.0.2, 7.6.7 and 7.4.9. Customers on the 7.2 branch need to move to 7.4 or later. CISA added the flaw to its Known Exploited Vulnerabilities catalog.
The advisory lists indicators of compromise, including two attacker IP addresses and log entries showing an archive account being added that sends data to a remote server, suggesting attackers were setting up mail exfiltration. Administrators should check their logs for these signs as well as patching.
Sources
- FortiGuard PSIRT: FG-IR-26-175 (CVE-2026-104286) fortiguard.fortinet.com