CVE-2023-40721 Code injection in FortiOS
A privileged attacker can execute arbitrary code via format string injection in Fortinet network security products.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-40721?
CVE-2023-40721 is a medium-severity code injection vulnerability in Fortinet Fortios, published on 11 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A use of externally-controlled format string vulnerability [CWE-134] vulnerability in Fortinet allows a privileged attacker to execute arbitrary code or commands via specially crafted requests.
Weakness: CWE-134
Which versions are affected by CVE-2023-40721?
It affects 4 products.
Products include Fortinet Fortios, Fortinet Fortipam, Fortinet Fortiproxy, Fortinet Fortiswitchmanager.
How do I fix CVE-2023-40721?
No fix has been published for CVE-2023-40721 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-2023-40721 being exploited?
There is no known exploitation of CVE-2023-40721 in the wild and no public exploit code.
Other vulnerabilities in Fortinet Fortios
Sources
Also known as GHSA-8hp7-6pv7-c4rv.