CVE-2025-25257: Unauthenticated SQL Injection to RCE in Fortinet FortiWeb Fabric Connector
- Vendor
- Fortinet
CVE-2025-25257 is a pre-authentication SQL injection vulnerability in the Fortinet FortiWeb administrative interface's Fabric Connector component. The get_fabric_user_by_token() function incorporates an attacker-controlled Authorization Bearer token into an SQL query without sufficient sanitization or parameterization. Crafted HTTP or HTTPS requests can therefore execute unauthorized SQL commands and bypass authentication checks. An exploitation chain uses MySQL file-writing functionality to plant Python startup code, then invokes a Python-based CGI handler to achieve remote code execution. Affected releases are FortiWeb 7.0.0–7.0.10, 7.2.0–7.2.10, 7.4.0–7.4.7, and 7.6.0–7.6.3. Exploitation in the wild has been observed since July 2025.
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 unauthorized database queries and commands, potentially exposing or modifying application data and bypassing authentication. Chaining SQL injection with file writing and Python startup processing enables arbitrary code execution with the Python process's privileges, potentially including root. This can result in complete compromise of appliance confidentiality, integrity, and availability, including unauthorized configuration changes and disruption of security services.
Mitigation
If you can’t patch tonight, do this now.
Until an upgrade can be completed, disable HTTP and HTTPS access to the FortiWeb administrative interface. Restrict management access to trusted administrative networks through network ACLs or a VPN to reduce exposure, and segment the appliance from internal systems. Monitor for suspicious Authorization headers, SQL errors, unauthorized administrative changes, and unusual outbound traffic. Access restrictions and monitoring are defense-in-depth measures, not substitutes for patching.
Remediation
Patch, then assume compromise.
Upgrade FortiWeb to a fixed release for the installed branch: 7.0.11 or later, 7.2.11 or later, 7.4.8 or later, or 7.6.4 or later. Prefer the latest supported release incorporating these fixes and subsequent security updates. Given confirmed exploitation, review authentication activity, administrative changes, unexpected appliance files, process execution, and outbound connections for evidence of compromise; patching does not remove an existing compromise.
Exploits
10 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
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.
References
Frequently asked questions
- Is CVE-2025-25257 exploited in the wild?
- Yes. As of Nov 13, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 18, 2025.
- Is there a public exploit for CVE-2025-25257?
- Yes. Mallory tracks 10 public exploits or proofs of concept for CVE-2025-25257, the earliest disclosed Jul 11, 2025.
- Is there a patch for CVE-2025-25257?
- Upgrade FortiWeb to a fixed release for the installed branch: 7.0.11 or later, 7.2.11 or later, 7.4.8 or later, or 7.6.4 or later. Prefer the latest supported release incorporating these fixes and subsequent security updates.
- What products are affected by CVE-2025-25257?
- Fortinet Fortiweb.
- How severe is CVE-2025-25257?
- CVE-2025-25257 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.9% (100th percentile) as of Nov 13, 2026.
Recent activity
137 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.