Summary
CVE-2026-126164 is a critical SQL injection vulnerability (CWE-89) in Fortinet FortiMail. An unauthenticated remote attacker can execute unauthorized code through crafted requests. It has a CVSS v3.1 base score of 9.4 (Critical).
Technical details
- Root cause: improper neutralization of special elements used in an SQL command (CWE-89) in the FortiMail API component.
- Trigger conditions: crafted requests sent to the affected FortiMail instance. No authentication is required.
- Attack vector: network, low complexity, no user interaction.
- Impact: execution of unauthorized code, with high confidentiality and integrity impact and low availability impact. Fortinet describes the primary impact as system compromise and denial of service.
Affected software
- 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
- FortiMail Cloud: Fortinet states that remediation was completed on October 5, 2026 and no customer action is needed.
Severity
CVSS v3.1 base score 9.4 (Critical): AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Mitigation and recommended actions
- Immediate: upgrade to FortiMail 8.0.2 or later, 7.6.7 or later, or 7.4.9 or later.
- FortiMail 7.2 has no fixed 7.2 release. Fortinet advises migrating to a patched release.
- The advisory sources reviewed do not list workarounds. Prioritize patching on-premises deployments and review network exposure of FortiMail management and API interfaces.

