CVE-2026-126162 Code injection in FortiMail

High 8.7 Published Updated

Unauthenticated remote attackers can use blind XPath injection in FortiMail to execute unauthorized code or commands.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
No
Fix
None listed

What is CVE-2026-126162?

CVE-2026-126162 is a high-severity code injection vulnerability in Fortinet FortiMail, published on 11 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A xml injection (aka blind xpath injection) vulnerability in Fortinet FortiMail 8.0.0 through 8.0.1, FortiMail 7.6.0 through 7.6.6 may allow a remote unauthenticated attacker to execute unauthorized code or commands via a specially crafted request.

Weakness: CWE-91

Which versions are affected by CVE-2026-126162?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-126162?

No fix has been published for CVE-2026-126162 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-126162 being exploited?

There is no known exploitation of CVE-2026-126162 in the wild and no public exploit code.

Sources

Also known as GHSA-r373-gqr3-3r97.

Is CVE-2026-126162 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free