# CVE-2026-126147: Path traversal in FortiMail

FortiMail contains a path traversal flaw that allows an unauthenticated attacker to execute unauthorized code or commands over the network. By sending crafted requests, the attacker can bypass directory restrictions without needing to log in or interact with a user, leading to full system compromise.

- Vendor: Fortinet, FortiMail
- Severity: CRITICAL (CVSS 3.1 9.8)
- Exploited (CISA KEV): not listed
- EPSS: 0.5% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-26-199, https://fortiguard.fortinet.com/psirt/FG-IR-26-199
- Published: 2026-11-11; updated: 2026-11-11
- Page: https://patchtonight.com/cve/CVE-2026-126147/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiMail 8.0.0 to 8.0.1 | 8.0.2 or later |
| FortiMail 7.6.0 to 7.6.6 | 7.6.7 or later |
| FortiMail 7.4.0 to 7.4.8 | 7.4.9 or later |
| FortiMail 7.2.0 to 7.2.9 | Upgrade past 7.2.9; see the advisory |

## The vendor's description

A improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Fortinet FortiMail 8.0.0 through 8.0.1, FortiMail 7.6.0 through 7.6.6, FortiMail 7.4.0 through 7.4.8, FortiMail 7.2 all versions may allow an unauthenticated attacker to execute unauthorized code or commands via crafted requests.

## Sources

- [Fortinet advisory](https://fortiguard.fortinet.com/psirt/FG-IR-26-199)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
