CVE-2023-42784 Code injection in FortiWeb
Attackers can execute unauthorized code or commands on Fortinet FortiWeb devices by sending crafted HTTP/S requests due to improper handling of invalid structures.
- 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-2023-42784?
CVE-2023-42784 is a medium-severity code injection vulnerability in Fortinet Fortiweb, published on 11 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An improper handling of syntactically invalid structure in Fortinet FortiWeb at least verions 7.4.0 through 7.4.6 and 7.2.0 through 7.2.10 and 7.0.0 through 7.0.10 allows attacker to execute unauthorized code or commands via HTTP/S crafted requests.
Weakness: CWE-228
Which versions are affected by CVE-2023-42784?
It affects 1 product.
Products include Fortinet Fortiweb.
How do I fix CVE-2023-42784?
No fix has been published for CVE-2023-42784 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-42784 being exploited?
There is no known exploitation of CVE-2023-42784 in the wild and no public exploit code.
Other vulnerabilities in Fortinet Fortiweb
Sources
Also known as GHSA-5wr9-jp8m-f367.