CVE-2025-58325 Command injection in FortiOS
A local authenticated attacker can execute system commands via crafted CLI commands in FortiOS, requiring an upgrade to mitigate.
- 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-2025-58325?
CVE-2025-58325 is a high-severity command injection vulnerability in Fortinet Fortios, published on 14 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An Incorrect Provision of Specified Functionality vulnerability [CWE-684] in FortiOS 7.6.0, 7.4.0 through 7.4.5, 7.2.5 through 7.2.10, 7.0.0 through 7.0.15, 6.4 all versions may allow a local authenticated attacker to execute system commands via crafted CLI commands.
Weakness: CWE-684
Which versions are affected by CVE-2025-58325?
It affects 1 product.
Products include Fortinet Fortios.
How do I fix CVE-2025-58325?
No fix has been published for CVE-2025-58325 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-58325 being exploited?
There is no known exploitation of CVE-2025-58325 in the wild and no public exploit code.
Other vulnerabilities in Fortinet Fortios
Sources
Also known as GHSA-q837-wq3x-6687.