CVE-2021-24023 Command injection in Fortinet FortiAI
An authenticated user can execute arbitrary system commands via the diagnose command in FortiAI, leading to shell access.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-24023?
CVE-2021-24023 is a high-severity command injection vulnerability in Fortinet FortiAI, published on 3 Jun 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An improper input validation in FortiAI v1.4.0 and earlier may allow an authenticated user to gain system shell access via a malicious payload in the "diagnose" command.
Weakness: CWE-78
Which versions are affected by CVE-2021-24023?
It affects 1 product.
Products include Fortinet Fortiai Firmware.
How do I fix CVE-2021-24023?
No fix has been published for CVE-2021-24023 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-24023 being exploited?
There is no known exploitation of CVE-2021-24023 in the wild and no public exploit code.
Sources
Also known as GHSA-pc5v-x22v-m3rr.