Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-64446: Unauthenticated Administrative Command Execution via Path Traversal in Fortinet FortiWeb

Published Nov 14, 2025 · Updated 8 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS49.2%99th percentile
CISA KEVYesAdded Nov 14, 2025
In the wildActivePer CISA KEV
Vendor
Fortinet
IdentifiersCVE-2025-64446CWE-23 · Relative Path Traversal

CVE-2025-64446 is a relative path traversal vulnerability in the Fortinet FortiWeb administrative interface that permits unauthenticated administrative command execution through crafted HTTP or HTTPS requests. It affects FortiWeb 8.0.0–8.0.1, 7.6.0–7.6.4, 7.4.0–7.4.9, 7.2.0–7.2.11, and 7.0.0–7.0.11. Attackers combine API path traversal with client-controlled identity information to reach a privileged CGI handler and impersonate an administrator. The handler's cgi_auth() function trusts identity attributes supplied in a Base64-encoded CGIINFO HTTP header, allowing subsequent administrative actions without valid credentials. Successful exploitation enables unauthorized administrator-account creation and full administrative control of the appliance. Exploitation in the wild is confirmed. FortiAppSec Cloud is not affected.

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 compromises the FortiWeb administrative security boundary, allowing unauthorized account creation, configuration modification, and alteration or disabling of web application firewall protections. Attacker-created administrator accounts provide persistent access. Appliance compromise can expose sensitive configuration and provide opportunities for further network intrusion. Administrative command execution through this vulnerability should not be conflated with arbitrary operating-system code execution; an unauthenticated remote code execution chain has also been described involving the separate CVE-2025-58034 vulnerability.

Mitigation

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

Until upgrading, disable HTTP and HTTPS management access on internet-facing interfaces. Restrict administrative access to trusted internal management networks or controlled VPN access. Review management requests for traversal patterns and suspicious CGIINFO headers, audit newly created administrator accounts and unrestricted trusted-host settings, and investigate unexpected configuration changes.

Remediation

Patch, then assume compromise.

Upgrade to FortiWeb 8.0.2 or later, 7.6.5 or later, 7.4.10 or later, 7.2.12 or later, or 7.0.12 or later within the corresponding release branch. These are the minimum fixed releases for CVE-2025-64446, not necessarily for other FortiWeb vulnerabilities. After upgrading, review configurations, administrator accounts, and logs for unauthorized changes. Investigate unexpected privileged accounts created since October 2025, remove unauthorized access, and rotate potentially exposed credentials; patching alone does not remove attacker-created accounts.

Public exploits

Exploits

13 exploits validated by Mallory's analysis. Hidden: 8 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

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 · networkWeaponizedfortinet_fortiweb_create_admin.rbThis repository contains a single Metasploit auxiliary module targeting Fortinet FortiWeb appliances. The module exploits an authentication bypass vulnerability (via path traversal) in the FortiWeb management interface, allowing an attacker to create a new local administrator account. The exploit works by sending a specially crafted HTTP POST request to the '/api/v2.0/cmdb/system/admin%3F/../../../../../cgi-bin/fwbcgi' endpoint, bypassing authentication and supplying attacker-controlled credentials for the new admin user. The module is configurable for username, password, access profile, and domain, and is intended for use against FortiWeb versions prior to 8.0.2. Upon successful exploitation, the attacker can log in to the management interface as the new admin user. The code is written in Ruby and is structured as a standard Metasploit module, with all logic contained in a single file.Disclosed Nov 14, 2025 · Framework: metasploit · ruby · networkWeaponizedCVE-2025-64446-FortiWeb-CGI-Bypass-PoCThis repository provides a Python-based exploit tool for CVE-2025-64446, a path traversal vulnerability in Fortinet FortiWeb web application firewalls. The repository contains three files: a detailed README.md with usage instructions, a requirements.txt listing dependencies (requests, urllib3), and the main exploit script exploit.py. The exploit.py script allows users to verify if a FortiWeb device is vulnerable by attempting to access internal API endpoints using crafted path traversal payloads. If the device is found vulnerable, the tool can exploit the CGI endpoint to create or modify user accounts, effectively allowing privilege escalation or unauthorized access. The tool supports both single and multiple targets, configurable via command-line arguments or a file. All network interactions are performed over HTTP or HTTPS (default port 443), and the endpoints targeted are specific to FortiWeb's internal API structure. The exploit is operational, providing both detection and exploitation capabilities, and is intended for authorized security testing only.sxyrxyy · Disclosed Nov 14, 2025 · python · networkOperationalAshwesker-CVE-2025-64446This repository contains a working exploit for CVE-2025-64446, a critical unauthenticated path traversal vulnerability in Fortinet FortiWeb appliances (versions prior to 8.0.2). The exploit is implemented in Python (CVE-2025-64446.py) and automates the process of creating a new local administrator account on a vulnerable FortiWeb device by sending a specially crafted POST request to a hidden CGI endpoint. The exploit takes a single target or a file of targets, attempts exploitation, and writes results (including credentials for any successfully created admin accounts) to a local file. The README.md provides extensive background, impact, IOCs, and defensive recommendations. The main attack vector is network-based, targeting the management interface over HTTPS. The endpoint '/api/v2.0/cmdb/system/admin%3f/../../../../../cgi-bin/fwbcgi' is fingerprintable and central to the exploit. The exploit is operational, providing real admin access if successful, but does not include post-exploitation payloads beyond account creation.Ashwesker · Disclosed Nov 15, 2025 · python · markdown · networkOperationalCVE-2025-64446-ExploitThis repository contains a Python exploit (exploit_forti.py) targeting CVE-2025-64446 in Fortinet FortiWeb (WAF) appliances. The exploit allows an attacker to create a new local admin user with a known password by sending a specially crafted POST request to a vulnerable endpoint on the target device. The script can take a single target or a file containing multiple targets, and attempts exploitation over HTTPS (default port 443, but customizable). Results, including successful credentials, are saved to a local file (fortiweb_exploit_results.txt). The repository also includes a README.md with usage instructions and a sample result screenshot. The exploit is operational, providing real administrative access if the target is vulnerable. No detection-only or fake code is present; the exploit is functional and focused on privilege escalation via user creation.soltanali0 · Disclosed Nov 15, 2025 · python · networkOperationalCVE-2025-64446This repository contains a working proof-of-concept exploit for CVE-2025-64446, a critical unauthenticated remote code execution vulnerability in Fortinet FortiWeb appliances. The exploit is implemented in a single Python script (cve-2025-64446.py) and is accompanied by a detailed README.md explaining the vulnerability and usage instructions. The exploit leverages a path traversal flaw to reach an internal CGI handler, forges authentication headers, and sends a crafted JSON payload to create a new local administrative user on the target device. The script requires the attacker to specify the target's IP address and port in the format <host:port>. Upon successful exploitation, the script outputs the credentials for the newly created admin user, granting the attacker full administrative access to the device. The attack is fully remote, requires no prior authentication, and is executed via a single HTTPS POST request to a vulnerable endpoint. No hardcoded IPs or domains are present; the target is specified at runtime. The repository is well-structured, with clear separation between documentation and exploit code.verylazytech · Disclosed Nov 17, 2025 · python · networkOperationalCVE-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 · networkOperationalcve-2025-64446-fortiweb-exploitThis repository provides a comprehensive exploit toolkit for CVE-2025-64446, a critical path traversal and remote code execution vulnerability in Fortinet FortiWeb WAF. The repository contains two main Python scripts: 1. cve_2025_64446_fortiweb_exploit.py: A full-featured exploit tool that automates detection of FortiWeb WAF, tests for path traversal using multiple payload variations, attempts to read sensitive files (such as configuration files and /etc/passwd), uploads a webshell, and executes arbitrary commands on the target. It supports scanning multiple targets, proxy usage, multi-threading, and outputs results in JSON format. 2. cve_2025_64446_poc.py: A simple proof-of-concept script that demonstrates the vulnerability by attempting to read arbitrary files via path traversal, confirming the presence of the vulnerability without causing harm. The exploit works by sending HTTP requests with crafted path traversal payloads to endpoints on the target FortiWeb instance. If successful, it can read sensitive files and escalate to remote code execution. The scripts are intended for authorized security testing and research only. The repository also includes a README with detailed usage instructions, mitigation advice, and references to official advisories. No hardcoded IP addresses or domains are present; the scripts operate on user-supplied targets. The main fingerprintable endpoints are the path traversal payloads and standard FortiWeb detection endpoints (e.g., /login, /index.html).AN5I · Disclosed Nov 21, 2025 · python · networkOperationalCVE-2025-64446Repository contains a FortiWeb CVE-2025-64446 exploit, a Nuclei detection template, and a larger Python scanner/classifier. Because the repository includes a Nuclei template, the framework is identified as nuclei, but the repo is not limited to framework content; the main offensive capability is in CVE-2025-64446.py. That script is a standalone Python exploit that takes a target in host:port format, disables TLS verification, and sends a POST request to the traversal endpoint /api/v2.0/cmdb/system/admin%3f/../../../../../cgi-bin/fwbcgi. It forges a CGIINFO header containing base64-encoded JSON impersonating admin context and submits a JSON body that creates a new local administrator with prof_admin privileges, unrestricted trust hosts, and a generated password. If the server returns HTTP 200, the script reports the newly created credentials. The included CVE-2025-64446.yaml is a Nuclei template for safe detection only: it posts to the same traversal path and matches on HTTP 200 plus response content such as errcode/admin while excluding 403. The larger RCE-Fortiweb.py file is not an RCE exploit despite its name; from the visible code it is a concurrent scanner/classifier that probes /api/v2.0/cmdb/system/admin/../../../../../cgi-bin/fwbcgi, follows redirects, inspects response bodies/headers, and labels targets as VULNERABLE, PATCHED, POSSIBLY PATCHED, or INDETERMINATE. Overall, the repository’s purpose is to exploit and detect Fortinet FortiWeb authentication bypass/path traversal leading to unauthenticated administrator creation on affected versions.0xBlackash · Disclosed Mar 26, 2026 · Framework: nuclei · python · yaml · web · 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 · networkOperationalFortiWeb-cve-2025-64446-RCE-exploitRepository is a small standalone Python exploit/research tool centered on a single entry point, exploit.py, with supporting README, YAML configuration, and dependency list. It targets Fortinet FortiWeb CVE-2025-64446, described as a pre-authentication chain of authentication bypass, path traversal, arbitrary file upload, and remote code execution. The code is not part of a major exploit framework. The main capability set includes: single-target assessment/exploitation, detect-only mode, safe/read-only mode, dry-run support, mass scanning via a targets file with threading, structured logging, and JSON/HTML report generation. The visible data structures in exploit.py confirm exploit-state tracking for reachability, authentication status, upload success, shell triggering, cleanup, vulnerability classification, session cookie handling, and webshell path storage. This indicates a real exploit workflow rather than a pure detector. Repository structure: LICENSE, README.md, SECURITY.md, config.yaml, requirements.txt, and exploit.py. Only exploit.py contains executable exploit logic. config.yaml provides defaults for target URL, listener host/port, proxy, output, and logging. requirements.txt shows a requests-based HTTP client with rich/colorama/tqdm for UI and progress. The script uses argparse and has a conventional __main__ entry point. Fingerprintable observables are mostly operator-configured rather than hardcoded victim endpoints. The examples consistently use a FortiWeb HTTPS management target on port 8443, a local proxy at 127.0.0.1:8080, report/log directories, and listener settings. Because the exploit source was truncated, specific FortiWeb URI paths used in the HTTP attack chain are not visible in the provided content, but the README explicitly states the tool probes API exposure, auth-bypass behavior, path traversal, upload endpoint accessibility, and then performs upload/trigger steps in exploitation mode. Overall, this is an operational standalone FortiWeb RCE tool with both detection and exploitation functionality, intended for authorized assessments against vulnerable FortiWeb versions prior to 7.6.7, 7.8.7, and 8.0.2.CerberusMrXi · Disclosed Jul 30, 2026 · python · yaml · web · networkOperationalCVE-2025-64446-PoC---FortiWeb-Path-TraversalThis repository provides a proof-of-concept (PoC) and a research tool for CVE-2025-64446, a critical path traversal vulnerability in Fortinet FortiWeb. The repository contains six files: a disclaimer, license, README, requirements, and two Python scripts ('exploit.py' and 'poc.py'). The README details the affected FortiWeb versions and usage instructions. The 'poc.py' script is a detection tool that checks if a target is vulnerable by sending crafted HTTP(S) requests with path traversal payloads to specific API endpoints and attempts to gather system information. The 'exploit.py' script is a non-destructive research tool that probes the same endpoints to collect response data, but does not execute any commands or alter the system. Both scripts require Python 3.6+ and the 'requests' library. The main attack vector is network-based, targeting the FortiWeb web interface over HTTP or HTTPS. The endpoints targeted are administrative and configuration APIs, accessed via path traversal sequences. No destructive or post-exploitation payloads are included; the tools are strictly for detection and research purposes.fevar54 · Disclosed Nov 14, 2025 · python · networkPoCCVE-2025-64446This repository contains a proof-of-concept exploit for CVE-2025-64446, targeting Fortinet FortiWeb appliances. The exploit is implemented in a single script (CVE-2025-64446.py) and demonstrates an unauthenticated remote code execution (RCE) vulnerability via a combination of path traversal and CGI authentication bypass. The script crafts a base64-encoded header and a JSON payload to create a new administrative user on the target system by sending a specially crafted HTTP POST request to a vulnerable API endpoint (https://localhost:38443/api/v2.0/cmdb/system/admin%3f/../../../cgi-bin/fwbcgi). The exploit uses 'curl' via subprocess to perform the attack. The repository also includes a README.md briefly describing the vulnerability and a standard GNU GPL license file. No detection scripts or fake code are present; the exploit is functional and demonstrates the vulnerability by creating a new admin user.D3crypT0r · Disclosed Nov 17, 2025 · python · bash · networkPoC
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-64446 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 14, 2025.
Is there a public exploit for CVE-2025-64446?
Yes. Mallory tracks 13 public exploits or proofs of concept for CVE-2025-64446, the earliest disclosed Nov 14, 2025.
Is there a patch for CVE-2025-64446?
Upgrade to FortiWeb 8.0.2 or later, 7.6.5 or later, 7.4.10 or later, 7.2.12 or later, or 7.0.12 or later within the corresponding release branch. These are the minimum fixed releases for CVE-2025-64446, not necessarily for other FortiWeb vulnerabilities.
What products are affected by CVE-2025-64446?
Fortinet Fortiweb.
How severe is CVE-2025-64446?
CVE-2025-64446 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 49.2% (99th percentile) as of Nov 20, 2026.
Activity feed

Recent activity

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

View more in app →
zeropath blogNews · Nov 11, 2026Quick Look: FortiMail CVE-2026-126151 Authentication Flaw Enabling Unauthenticated Account Takeover - ZeroPath Blog | ZeroPathA FortiWeb vulnerability mentioned as historical context for Fortinet exploitation. CISA documented exploitation and described its potential use for initial access, followed by privilege escalation through CVE-2025-58034. It was added to the Known Exploited Vulnerabilities catalog in November 2025 and is separate from the primary FortiMail authentication flaw.Read more ↗zeropath blogNews · Nov 11, 2026Quick look: FortiMail CVE-2026-126147, unauthenticated API path traversal with potential code execution - ZeroPath Blog | ZeroPathFortiWeb vulnerability mentioned as historical context for Fortinet's security record. CISA reported exploitation, including a chain involving the two cited FortiWeb vulnerabilities capable of unauthenticated remote code execution. The article does not describe this vulnerability's individual mechanism.Read more ↗sh3llc0d3 blogNews · Oct 25, 2026Group-IB and NyxLab Expose Threat Actor k0t: Glo | ShellcodeThe content describes a Fortinet FortiWeb administrative-interface vulnerability enabling path traversal and access control bypass. It reports that k0t exploited the flaw to extract configuration archives, recover administrative and LDAP service credentials, and enumerate corporate directories. The resulting access was sold to ransomware affiliates; the content does not establish that those affiliates directly exploited the vulnerability.Read more ↗cysecurity newsNews · Oct 24, 2026Global Cyberattack Exploits Fortinet and Palo Alto Devices to Steal More Than 70,000 Credentials - CySecurity News - Latest Information Security and Hacking IncidentsA Fortinet FortiWeb vulnerability identified as an exploitation target in the k0t campaign against exposed network security appliances. The campaign seeks to steal credentials and establish persistent access. The content does not describe the vulnerability's technical mechanism or confirm successful exploitation of this specific CVE.Read more ↗
+40 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 evidence6Every report linking this CVE to a named adversary.
Associated malware4Malware 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 activity151Community discussion across Reddit, Mastodon, and other social sources.