# CVE-2026-126158: Fortinet FortiMail OS command injection via HTTP API

Source: https://junglewise.ai/threats/cve-2026-126158-a-improper-neutralization-of-special-elements-used-in-an-os  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-11. Updated: 2026-11-11  
License: CC BY 4.0 with a link back

CVE-2026-126158 · Severity: high · CVSS 7.2 · Published 2026-11-11

FortiMail is an email security appliance that filters and scans messages for threats. A command injection flaw allows authenticated administrators to execute arbitrary code with root privileges through malicious HTTP requests, potentially giving attackers full control of the email system.

Technologies: [Fortinet FortiMail](https://junglewise.ai/threats/technologies/fortimail). Vendors: [Fortinet](https://junglewise.ai/threats/vendors/fortinet).

## Quick answers

**Is CVE-2026-126158 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-126158 being exploited in the wild.

**How severe is CVE-2026-126158?** High severity, with a CVSS score of 7.2, published 11 November 2026.

**Which products and versions are affected?** Fortinet FortiMail 8.0.0 through 8.0.1.

**Is there a fix for CVE-2026-126158?** Yes: fixed in FortiMail 8.0.2 and above. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-126158 attacked?** It is in a network appliance.

**Am I affected by CVE-2026-126158?** Check whether you run Fortinet FortiMail at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in FortiMail 8.0.2 and above

## Technical details

An OS command injection vulnerability (CWE-78) exists in the FortiMail HTTP API that fails to properly sanitize special shell characters in user-supplied input. An authenticated administrator can craft malicious HTTP requests to inject shell commands that execute as root. The vulnerability affects versions 8.0.0 and 8.0.1; versions 7.4 and 7.6 are not affected.

## Affected products

- Fortinet FortiMail 8.0.0 through 8.0.1

## Timeline

- 2026-11-10: advisory
- 2026-11-11: disclosed

## References

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

## Related threats

- [Fortinet FortiMail SQL injection](https://junglewise.ai/threats/cve-2026-126263-a-improper-neutralization-of-special-elements-used-in-an-sql)
- [Fortinet FortiMail argument injection in administrative interface](https://junglewise.ai/threats/cve-2026-126169-a-improper-neutralization-of-argument-delimiters-in-a-command)
- [Fortinet FortiMail argument injection in administrative interface](https://junglewise.ai/threats/cve-2026-126168-a-improper-neutralization-of-argument-delimiters-in-a-command)
- [Fortinet FortiMail command injection in admin GUI](https://junglewise.ai/threats/cve-2026-126167-a-improper-neutralization-of-special-elements-used-in-a-command)
- [Fortinet FortiMail argument injection in admin interface](https://junglewise.ai/threats/cve-2026-126166-a-improper-neutralization-of-argument-delimiters-in-a-command)
