RC RANDOM CHAOS

FortiMail flaw under attack; fixed builds out since 5 October

Fortinet warns of CVE-2026-104286, a critical FortiMail flaw under active exploitation that lets unauthenticated attackers write arbitrary files.

· 3 min read
FortiMail flaw under attack; fixed builds out since 5 October

Updated 11 October 2026: Fortinet released fixed builds 7.4.9, 7.6.7 and 8.0.2 on 5 October 2026, before this piece ran; the ‘no fix yet’ framing and title were wrong. Two readings previously attributed to Fortinet are BleepingComputer’s.

An unauthenticated attacker can write arbitrary files onto a FortiMail appliance with a crafted HTTP or HTTPS request. Fortinet rates the bug, CVE-2026-104286, at CVSS 9.8, and says it is already being exploited in the wild. Fixed builds for the 7.4, 7.6, and 8.0 branches have been available since October 5, 2026.

The root cause is a pair of input-handling failures: a path traversal (CWE-22) combined with improper neutralization of a NULL byte or NULL character (CWE-158). Both are familiar ways to defeat a filesystem path check, and together, Fortinet says, they let an unauthenticated attacker write arbitrary files on the underlying system through crafted HTTP or HTTPS requests.

Fortinet says the flaw can lead to unauthorized code or command execution, and it published the files that were added or modified on compromised systems. Added: /data/lib/liblog.so, /data/bin/webconsole, /data/bin/mailservice, and /data/etc/ld.so.preload. Modified: /bin/smit, /data/etc/httpd.conf, and /data/migadmin.tar.gz. On Linux, ld.so.preload names shared objects the dynamic linker loads into every dynamically linked process before anything else, so an added ld.so.preload sitting among the indicators is worth a careful look.

Fortinet also shared log evidence from the appliances. One entry records an archive account named archive234 being configured from the CLI with 79.141.169.187 as the remote server and /uploads as the remote directory; BleepingComputer reads that as the attacker configuring the appliance to send archived data to a remote server; Fortinet published the log line without that interpretation. Other entries show a cron job running a command tied to /migadmin, an admin logout, failed logins, and an IBE decryption error caused by invalid Base64 (Invalid Base64 Encoding at pos 0. Character=0x2a).

The primary workaround is to turn IBE off:

config system encryption ibe
set status disable
end

If you run FortiMail without Identity-Based Encryption, this workaround costs you nothing. If you use it, you lose that feature until the appliance is on a patched build.

The second workaround is the one that should have been in place already: restrict access to the webmail interface to trusted private networks, or block POST requests to /ibe containing ../ at a web application firewall, which are Fortinet’s stated alternatives (the earlier ‘management interface’ wording here was BleepingComputer’s, not Fortinet’s). A web-facing interface reachable from the whole internet is what makes an unauthenticated write exploitable at scale.

Affected versions are FortiMail 8.0.0 through 8.0.1, 7.6.0 through 7.6.6, 7.4.0 through 7.4.8, and 7.2.0 through 7.2.9. If you are on 7.2, you can patch now by moving to the 7.4 branch or later. For 7.4, 7.6, and 8.0 the fixes are 7.4.9, 7.6.7, and 8.0.2, which Fortinet’s advisory listed as available on October 5, 2026 (FortiMail Cloud was remediated the same day), so upgrade; the workarounds are for the gap until you do.

Check your appliances against the published IOCs regardless of whether you think you were exposed. Look for the added and modified files above, scan logs for the archive234 archive account and connections to 79.141.169.187 or 45.129.0.192, and treat any /migadmin cron activity or unexplained IBE Base64 errors as suspect.

The bug was found internally, by Gwendal Guégniaud of Fortinet’s Product Security team. Fortinet has not said when exploitation began, how many systems were hit, or who is behind it, and told BleepingComputer it is coordinating with CISA. CISA has added CVE-2026-104286 to its Known Exploited Vulnerabilities catalog and set a deadline of October 4 for federal agencies to triage and mitigate.

Share

Keep Reading

Latest on the Wire

Full wire →

New signal daily · RSS

Stay in the loop

New writing delivered when it's ready. No schedule, no spam.