FortiMail's Exploited Zero-Day Is Three Weeks Old. Check Your Version and Your Logs Today
Mail gateways are the kind of appliance people patch last and worry about first. They sit on the internet edge, they're rarely touched, and when one goes wrong it can hand an attacker a view of every message a company se
Mail gateways are the kind of appliance people patch last and worry about first. They sit on the internet edge, they're rarely touched, and when one goes wrong it can hand an attacker a view of every message a company sends. That's the setting for CVE-2026-104286, a critical flaw in Fortinet's FortiMail that has been exploited in the wild since before it was disclosed.
The disclosure date was October 1, which makes this three-week-old news. I'm writing about it now because several sources show the fixed builds only recently landed, and because the cleanup work is the part people skip.
What the flaw is
SecPod, summarizing Fortinet advisory FG-IR-26-175, describes CVE-2026-104286 as a critical unauthenticated path traversal combined with improper handling of NULL bytes. In plain terms, an attacker who can reach the FortiMail web interface over HTTP or HTTPS can send crafted requests that write arbitrary files to the underlying system. Fortinet lists the published impact as unauthorized code or command execution. SecPod gives a CVSS score of 9.8.
A file-write bug is worse than a file-read bug. Reading a config file helps an attacker plan. Writing a file helps them run code. That is why Fortinet and the coverage describe the risk as system compromise, more than information exposure.
Is it really exploited?
Yes, per Fortinet's advisory as relayed by several sources. The flaw has been added to CISA's Known Exploited Vulnerabilities catalog. The Terminal's write-up, which I have only read as a summary, says CISA listed it on October 1, the day of Fortinet's advisory, with an October 4 federal deadline. eSentire says Fortinet confirmed active exploitation prior to patch disclosure.
That "before the patch" detail matters. If your appliance was reachable from the internet in early October and unpatched, treat patching as the start of the work, not the end. Assume you might have been hit and look.
Which versions are affected
According to the advisory details in SecPod's article, the affected versions are:
| Branch | Affected versions |
|---|---|
| FortiMail 8.0 | 8.0.0 through 8.0.1 |
| FortiMail 7.6 | 7.6.0 through 7.6.6 |
| FortiMail 7.4 | 7.4.0 through 7.4.8 |
| FortiMail 7.2 | 7.2.0 through 7.2.9 |
The French CERT, CERT-FR, published its own notice on October 2 pointing to Fortinet's bulletin, and the NVD entry lists the same version ranges. I'd still check Fortinet's advisory page directly before you act, because version tables get revised.
The fixed builds
This is where sources disagree on timing, so read carefully. SecPod's article lists FortiMail 8.0.2, 7.6.7 and 7.4.9 as upcoming, with 7.2 customers told to upgrade to branch 7.4 or above. A Cyber Kendra report published October 23 says FortiMail updates went out the day before, and that FortiMail is fixed in 8.0.2, 7.6.7 and 7.4.9, the same builds Fortinet identified on October 1.
The Terminal adds a wrinkle: Fortinet's October 7 revision says FortiMail Cloud moved to 7.6.7 or 8.0.2 on October 5, but the advisory page doesn't plainly say on-premises builds were downloadable at that point. So the likely story is that cloud customers were covered first and on-premises builds followed. I can't prove that from what I've read, so I'd verify availability in your Fortinet support portal.
If you run 7.2, there is no 7.2 fix. Plan the jump to the 7.4 branch or later.
Expand
Person in a mask at a keyboard in a dark room, a stock photo standing in for a cyber attacker
What to do if you can't patch today
Fortinet's workaround, as SecPod lists it, is to disable the IBE feature, which is Fortinet's identity-based encryption service. In the GUI, go to Encryption, then IBE, and set IBE Service to off. From the CLI:
CodeCopy
config system encryption ibe
set status disable
end
Alternatively, disable access to the FortiMail webmail interface from the internet, or limit it to trusted private networks. If a web application firewall sits in front of FortiMail, SecPod says to block POST requests to /ibe that contain a dot-dot-slash path traversal sequence.
I'd do the first or second step today, even if you plan a maintenance window for later. Disabling IBE will affect any users who rely on encrypted messages through that service, so tell them before you flip it.
What to look for in your logs
Fortinet published indicators of compromise, and SecPod lists them. Two IP addresses appear: 79[.]141[.]169[.]187 and 45[.]129[.]0[.]192. Remove the brackets only inside a tool, not in a document or chat.
The log patterns SecPod shows include a system event with a cron entry running a shell command involving /migadmin, an admin logout event with an unknown reason, and a configuration event in which an archive account was added with a remote IP and an upload directory. That last one is worth a careful look, because an archive account pointing at an outside IP is a way to copy mail out.
There's also an encryption log entry about invalid Base64 encoding at position 0, and a failed login by an internal user. Don't treat any single log line as proof. Look for several together and compare against your normal traffic.
A checklist I'd follow:
- Confirm your FortiMail version in the GUI or CLI and compare it with the table above.
- Check whether the web interface or webmail is reachable from the internet. If it is, restrict it now.
- Disable IBE if you can't patch immediately, and tell the people who use it.
- Search logs back to at least late September for the two IP addresses and the log patterns above.
- Review the list of archive accounts and admin accounts for anything you didn't create.
- Patch to 8.0.2, 7.6.7 or 7.4.9, or plan the 7.2 to 7.4 move.
- If you find signs of compromise, treat the appliance as compromised: isolate it, preserve logs, rotate credentials and certificates it handled, and rebuild from a clean image.
The bigger lesson
I keep writing the same advice about edge appliances because the story keeps repeating. Mail gateways, VPN concentrators and SD-WAN controllers sit between the internet and everything else, and attackers treat each new flaw as a gift. A zero-day exploited before patches exist means your window to respond is zero days, so your defenses have to be in place beforehand: restricted management interfaces, logging that goes to a separate system and a patch process that works in hours, not weeks.
You can't prevent every zero-day. You can make sure that when one lands, you know where your appliances are, who can reach them and how to turn off the risky feature while you wait.
Expand
Person typing at a laptop and monitor showing code in a dim room
Should you care?
If you run FortiMail, yes, today. If you don't, check which of your edge devices could have the same pattern: an internet-facing web interface for a rarely used feature. That is where these bugs hide.
We haven't tested this vulnerability or the patches. This post is based on SecPod's summary of Fortinet's advisory and the other reports named above. Dates and fixed-build availability differ between sources, so confirm them in Fortinet's advisory before you act.
Frequently Asked Questions
Which FortiMail versions are fixed?
Fortinet identified 8.0.2, 7.6.7 and 7.4.9 as fixed releases, according to SecPod and Cyber Kendra. FortiMail 7.2 customers should upgrade to the 7.4 branch or above.
Is there a workaround?
Yes. Disable the IBE service in the GUI or with the CLI commands above, or restrict webmail access to trusted networks.
How do I know if I was attacked?
Look for the two published IP addresses and the log patterns, such as an unexpected archive account with a remote IP. Absence of those isn't proof you're clean.
How severe is it?
CVE-2026-104286 is rated 9.8 and is listed in CISA's Known Exploited Vulnerabilities catalog, per SecPod and The Terminal.
Originally published on Mango Developer.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes â full credit and traffic to the original publisher.
