CVE-2021-24007 SQL injection in Fortinet FortiMail

Critical 9.8 Published Updated

A non-authenticated attacker can execute unauthorized code or commands via crafted HTTP requests due to SQL injection vulnerabilities in FortiMail.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24007?

CVE-2021-24007 is a critical SQL injection vulnerability in Fortinet FortiMail, published on 9 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Multiple improper neutralization of special elements of SQL commands vulnerabilities in FortiMail before 6.4.4 may allow a non-authenticated attacker to execute unauthorized code or commands via specifically crafted HTTP requests.

Weakness: CWE-89

Which versions are affected by CVE-2021-24007?

It affects 1 product.

Products include Fortinet Fortimail.

How do I fix CVE-2021-24007?

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

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2021-24007 being exploited?

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

Sources

Also known as GHSA-98vw-7jjm-r328.

Is CVE-2021-24007 in your software?

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

Check your SBOMs for free