Got Incident? Investigate 60 million events per analysis

LogTotal for Incident Response, Complete Enterprise Platform Access is Live

Buy 7-day IR Retainer Pass for $799

SOC Prime Bias: Critical

27 Nov 2026 12:06 UTC

CVE-2026-104286: Fortinet FortiMail Flaw Exploited in the Wild

Author Photo
SOC Prime Team linkedin icon Follow
CVE-2026-104286: Fortinet FortiMail Flaw Exploited in the Wild
shield icon

Detection stack

  • AIDR
  • Alert
  • ETL
  • Query

Summary

A critical pre-authentication remote code execution vulnerability affects Fortinet FortiMail’s Identity-Based Encryption (IBE) web interface. Attackers exploit a combination of path traversal and NULL byte injection to write arbitrary files to the filesystem. This capability can be escalated to root-level access by abusing the system’s dynamic linker configuration.

Investigation

The investigation shows that attackers chain an arbitrary file write primitive into full code execution. They do this by placing a malicious shared library in /data/lib/ and modifying /data/etc/ld.so.preload. Observed activity also includes creation of a rogue archive account named archive234 and outbound communication with a specific external IP address.

Mitigation

Fortinet has released fixes in FortiMail versions 8.0.2, 7.6.7, and 7.4.9. Organizations running older 7.2.x releases must migrate to version 7.4 or later. Placing the IBE interface behind a Web Application Firewall (WAF) with path traversal detection enabled is also recommended as an additional protective measure.

Response

Organizations should immediately update affected FortiMail appliances to the recommended patched versions. If compromise is suspected, assume the attacker may have obtained root access, rotate all credentials stored on the appliance, and monitor for unauthorized callback traffic to known malicious infrastructure.

Attack Flow

We are still updating this part.

Detections

Possible Path Traversal Pattern in URL (via webserver)

SOC Prime Team
26 Nov 2026

Possible CVE-2026-104286 (Fortinet FortiMail Path Traversal) Exploitation Attempt (via webserver)

SOC Prime Team
26 Nov 2026

IOCs (HashSha256) to detect: CVE-2026-104286: Fortinet FortiMail Vulnerability Exploited

SOC Prime AI Rules
26 Nov 2026

IOCs (SourceIP) to detect: CVE-2026-104286: Fortinet FortiMail Vulnerability Exploited

SOC Prime AI Rules
26 Nov 2026

IOCs (DestinationIP) to detect: CVE-2026-104286: Fortinet FortiMail Vulnerability Exploited

SOC Prime AI Rules
26 Nov 2026

New Process Execution from Preload Hijacking in FortiMail [Linux Process Creation]

SOC Prime AI Rules
26 Nov 2026

Detection of Path Traversal and NULL Byte Injection in Fortinet FortiMail IBE Interface [Linux File Event]

SOC Prime AI Rules
26 Nov 2026

Simulation Execution

  • Attack Narrative & Commands: An attacker has gained initial access to the FortiMail system. To ensure persistence and intercept sensitive data (like credentials or decrypted mail), the attacker decides to use the ld.so.preload hijacking technique. The attacker first creates a dummy malicious shared library in a writable directory. They then modify /etc/ld.so.preload to include the path to this library. When any subsequent process (like bash or ls) is executed, the dynamic linker loads the malicious library, allowing the attacker to execute code in the context of any user or service.

  • Regression Test Script:

      #!/bin/bash
      # Simulation of T1574.006 - Shared Library Preloading
    
      # 1. Create a dummy malicious shared library
      echo 'void __attribute__((constructor)) init() {}' > /tmp/malicious.c
      gcc -shared -fPIC -o /tmp/libmalicious.so /tmp/malicious.c
    
      # 2. Simulate the hijacking by writing to /etc/ld.so.preload
      # NOTE: This requires sudo/root privileges to simulate actual exploitation
      echo "/tmp/libmalicious.so" | sudo tee /etc/ld.so.preload
    
      # 3. Execute a new process to trigger the detection
      # The dynamic linker will load the library, creating the 'ld.so.preload' anomaly
      /usr/bin/id
    
      echo "[+] Simulation complete. Check SIEM for process creation with AnomalyType: ld.so.preload"
  • Cleanup Commands:

      #!/bin/bash
      # Cleanup simulation artifacts
    
      # 1. Remove the preload entry
      sudo rm /etc/ld.so.preload
    
      # 2. Remove the malicious files
      rm /tmp/libmalicious.so /tmp/malicious.c
    
      echo "[+] Cleanup complete. System restored to baseline."