CVE-2025-66178 Command injection in FortiWeb
An authenticated attacker can execute arbitrary commands on FortiWeb devices via a specially crafted HTTP request.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-66178?
CVE-2025-66178 is a medium-severity command injection vulnerability in Fortinet Fortiweb, published on 10 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
A improper neutralization of special elements used in an os command ('os command injection') vulnerability in Fortinet FortiWeb 8.0.0 through 8.0.2, FortiWeb 7.6.0 through 7.6.6, FortiWeb 7.4.0 through 7.4.11, FortiWeb 7.2.0 through 7.2.12, FortiWeb 7.0.0 through 7.0.12 may allow an authenticated attacked to execute arbitrary commands via a specialy crafted HTTP request.
Weakness: CWE-78
Which versions are affected by CVE-2025-66178?
It affects 1 product.
Products include Fortinet Fortiweb.
How do I fix CVE-2025-66178?
No fix has been published for CVE-2025-66178 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-2025-66178 being exploited?
There is no known exploitation of CVE-2025-66178 in the wild and no public exploit code.
Other vulnerabilities in Fortinet Fortiweb
Sources
Also known as GHSA-hh5r-8mxw-p8h8.