Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-58034: Authenticated OS Command Injection in Fortinet FortiWeb

Published Nov 18, 2025 · Updated 8 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS7.2High · v3.1
EPSS5.7%94th percentile
CISA KEVYesAdded Nov 18, 2025
In the wildActivePer CISA KEV
Vendor
Fortinet
IdentifiersCVE-2025-58034CWE-78 · Improper Neutralization of Special…

CVE-2025-58034 is an authenticated OS command injection vulnerability in the API and CLI of Fortinet FortiWeb. Improper neutralization of special elements in operating-system commands allows crafted HTTP requests or CLI commands to execute unauthorized code on the underlying system. Affected releases are 8.0.0–8.0.1, 7.6.0–7.6.5, 7.4.0–7.4.10, 7.2.0–7.2.11, and 7.0.0–7.0.11. Fortinet disclosed the vulnerability on November 18, 2025, and confirmed exploitation in the wild. It has also been chained with the separate authentication-bypass vulnerability CVE-2025-64446 to enable unauthenticated remote code execution.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary operating-system command or code execution on an affected FortiWeb appliance, potentially leading to complete device compromise and loss of confidentiality, integrity, and availability. Chaining with CVE-2025-64446 can remove the initial authentication barrier. A specific resulting execution identity or guaranteed root privilege is not established.

Mitigation

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

Remove public internet access to FortiWeb management interfaces and restrict management access to trusted users and networks. Monitor for suspicious management activity and anomalous authentication, and investigate unauthorized administrative accounts. These measures reduce exposure but do not correct the flaw; no vulnerability-specific workaround replacing the firmware update is documented.

Remediation

Patch, then assume compromise.

Upgrade to a fixed release in the applicable FortiWeb branch: 8.0.2 or later, 7.6.6 or later, 7.4.11 or later, 7.2.12 or later, or 7.0.12 or later. Because exploitation has occurred in the wild, also review system and authentication logs and audit administrative accounts for evidence of compromise.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 7 rejected by Mallory's analysis as not a working exploit.

View more in app →
fortinet_fortiweb_rce.rbThis repository contains a single Metasploit module (modules/exploits/linux/http/fortinet_fortiweb_rce.rb) targeting Fortinet FortiWeb appliances. The exploit leverages two vulnerabilities: an authentication bypass via path traversal (CVE-2025-64446) and a command injection (CVE-2025-58034). The module first creates a new local administrator account by bypassing authentication, then uses this access to exploit a command injection vulnerability, achieving remote code execution as root. The default payload is a reverse bash shell, but other unix command payloads can be used. The exploit is operational and provides full remote code execution on vulnerable FortiWeb versions. The main network endpoint targeted is the management interface, specifically the '/api/v2.0/cmdb/system/admin%3F/../../../../../cgi-bin/fwbcgi' path, accessed over HTTPS (default port 443). The repository is structured as a single Ruby file compatible with the Metasploit framework.Disclosed Nov 14, 2025 · Framework: metasploit · ruby · networkWeaponizedCVE-2025-64446_CVE-2025-58034This 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.lincemorado97 · Disclosed Nov 18, 2025 · python · networkOperationalVulnerability-CVE-2025-64446-CVE-2025-58034Repository contains a small Python proof-of-concept exploit and a README describing two FortiWeb vulnerabilities. The actual code in exploit.py targets CVE-2025-64446, not CVE-2025-58034 directly. It parses a target hostname/URL, defaults to HTTPS on port 443, disables TLS certificate verification, and sends a crafted POST request to the traversal path /api/v2.0/cmdb/system/admin%3f/../../../../../cgi-bin/fwbcgi. The request includes a base64-encoded CGIINFO header that impersonates admin context and a JSON body defining a new local administrative account with prof_admin privileges. If the server returns HTTP 200, the script reports success and prints the created username/password; otherwise it reports failure or connection errors. The script supports optional custom credentials via CLI flags, otherwise generates a random 8-character username from a UUID and reuses it as the password. The README provides contextual explanation of both CVEs, affected FortiWeb versions, usage instructions, and a manual post-authentication command injection example for CVE-2025-58034 via SAML user configuration. Overall, this is an operational exploit for unauthenticated admin account creation on vulnerable FortiWeb devices, with the README documenting a second-stage authenticated RCE path.litndat · Disclosed Jun 24, 2026 · python · markdown · web · networkOperational
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
FAQ

Frequently asked questions

Is CVE-2025-58034 exploited in the wild?
Yes. As of Nov 20, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 18, 2025.
Is there a public exploit for CVE-2025-58034?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2025-58034, the earliest disclosed Nov 14, 2025.
Is there a patch for CVE-2025-58034?
Upgrade to a fixed release in the applicable FortiWeb branch: 8.0.2 or later, 7.6.6 or later, 7.4.11 or later, 7.2.12 or later, or 7.0.12 or later. Because exploitation has occurred in the wild, also review system and authentication logs and audit administrative accounts for evidence of compromise.
What products are affected by CVE-2025-58034?
Fortinet Fortiweb.
How severe is CVE-2025-58034?
CVE-2025-58034 has a CVSS v3.1 score of 7.2 (High) and an EPSS score of 5.7% (94th percentile) as of Nov 20, 2026.
Activity feed

Recent activity

124 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+16 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

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, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity101Community discussion across Reddit, Mastodon, and other social sources.