A critical FortiMail vulnerability is being actively exploited to place malicious files on vulnerable systems without requiring a login. GajIPS detects the attack
Severity: CRITICAL · Priority: P1 — actively exploited zero-day, CISA KEV, patch or disable IBE immediately
These rules detect exploitation attempts against CVE-2026-104286, a critical zero-day vulnerability in Fortinet FortiMail that is actively exploited in attacks. The flaw combines path traversal (CWE-22) with improper null-byte handling (CWE-158) in the FortiMail GUI, specifically the component that backs the Identity Based Encryption feature. An unauthenticated attacker may write arbitrary files on the underlying system via crafted HTTP or HTTPS requests. Fortinet published FG-IR-26-175 on October 1, 2026, reporting exploitation in the wild, and CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on the same date with a remediation deadline of October 4.
Affected versions are FortiMail 8.0.0 through 8.0.1, FortiMail 7.6.0 through 7.6.6, FortiMail 7.4.0 through 7.4.8, and FortiMail 7.2.0 through 7.2.9. The attack works by sending a crafted URL containing both a directory-traversal sequence (stepping outside the intended directory) and a null byte (which causes the underlying system to stop processing the string at that point, bypassing extension or path-restriction checks). Together, these allow the attacker to name and place a file anywhere on the appliance's filesystem. Arbitrary file write on a mail gateway can directly yield code execution: an attacker can write a web shell to a web-accessible path, overwrite a configuration file, or stage a file for execution by a scheduled task or startup process.
A hit on the traversal rule indicates an active exploitation attempt against a FortiMail appliance in your environment. Act immediately: the interim workaround is to disable FortiMail IBE using config system encryption ibe / set status disable, and upgrade to the fixed releases 8.0.2, 7.6.7, or 7.4.9 once available. If disabling IBE disrupts a critical mail workflow, restrict management interface access to trusted IP addresses while you arrange the upgrade. Check the appliance filesystem for unexpected files in web-accessible directories and review Fortinet's compromise indicators published with FG-IR-26-175. The scanner IP rule provides a supplementary correlation signal; those addresses are point-in-time and will age as the attacker rotates infrastructure.