Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighCISA KEVExploited in the wildPublic exploit

OS Command Injection in Fortinet FortiWeb

IdentifiersCVE-2025-58034CWE-78· Improper Neutralization of Special…

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.

Share:
For your environment

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.

ANALYST BRIEF

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.

Successful exploitation enables authenticated attackers to execute arbitrary commands or unauthorized code on the underlying FortiWeb system, with execution occurring in the context of the FortiWeb process. This can lead to full device compromise, including alteration of configuration, deployment of additional payloads, persistence, access to protected application traffic handled by the appliance, and use of the appliance as a pivot point within the environment. The content also states the vulnerability has been exploited in the wild and added to CISA's KEV catalog, increasing operational urgency.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, restrict access to the FortiWeb management interface and CLI to trusted administrative networks and users only, and remove any public Internet exposure of management interfaces where feasible. Monitor authentication and administrative activity for anomalous access, review logs for suspicious crafted requests or CLI usage, and investigate for signs of compromise. The content also recommends following guidance for reducing exposure of Internet-facing management interfaces.

Remediation

Patch, then assume compromise.

Upgrade FortiWeb to a fixed release. The provided content identifies the following patched versions: 8.0.2 or later for 8.0.x deployments, 7.6.6 or later for 7.6.x, 7.4.11 or later for 7.4.x, 7.2.12 or later for 7.2.x, and 7.0.12 or later for 7.0.x. Organizations should prioritize patching immediately due to confirmed in-the-wild exploitation.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (7 hidden).

VALID 1 / 8 TOTALView more in app
CVE-2025-64446_CVE-2025-58034MaturityPoCVerified exploit

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.

lincemorado97Disclosed Nov 18, 2025pythonnetwork
EXPOSURE SURFACE

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.

VendorProductType
FortinetFortiwebapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity101

Community discussion across Reddit, Mastodon, and other social sources.