OS Command Injection in Fortinet FortiWeb
CVE-2025-58034 is an authenticated OS command injection vulnerability in Fortinet FortiWeb. According to the provided content, FortiWeb improperly neutralizes special elements used in operating system commands in its API and CLI handling, allowing crafted HTTP requests or CLI input to reach underlying OS command execution paths without sufficient sanitization. Affected versions are FortiWeb 8.0.0 through 8.0.1, 7.6.0 through 7.6.5, 7.4.0 through 7.4.10, 7.2.0 through 7.2.11, and 7.0.0 through 7.0.11. Successful exploitation allows an authenticated attacker to execute unauthorized code or arbitrary OS commands on the underlying system. The content does not identify the exact vulnerable function or code location.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (7 hidden).
This repository contains a working exploit for a critical unauthenticated remote code execution (RCE) chain affecting Fortinet FortiWeb appliances. The exploit leverages two vulnerabilities: CVE-2025-64446 (authentication bypass via relative path traversal) and CVE-2025-58034 (authenticated OS command injection). The provided Python script (exploit.py) automates the first stage of the attack by sending a crafted POST request to the vulnerable endpoint (/api/v2.0/cmdb/system/admin%3f/../../../../../cgi-bin/fwbcgi) to create a new administrative user without prior authentication. The script accepts the target IP/hostname and optional username/password for the new admin account. Once the account is created, the attacker can log in and exploit the command injection vulnerability to execute arbitrary commands as root (the second stage is described in the README but not fully automated in the script). The repository also includes a requirements.txt for dependencies and a detailed README.md explaining the vulnerabilities, usage, and impact. The exploit is operational and provides a clear path to full system compromise on affected FortiWeb versions.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
120 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Fortinet FortiWeb OS command injection vulnerability allowing authenticated attackers to execute commands; exploited in the wild per Fortinet warning.
Fortinet FortiWeb zero-day vulnerability reported as exploited by attackers (details not provided in the content).
A zero-day vulnerability in FortiWeb that was actively exploited in the wild.
A zero-day vulnerability in FortiWeb that was actively exploited before a patch was released.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.