Tia N.List

KEV catalog · CISA Known Exploited Vulnerabilities

CVE-2025-25257 9.8
Fortinet · FortiWeb · Added 2025-07-18 · Published 2025-07-17
3-Day Required PoC Available KEV Automatable Active Exploitation

Details

VulnerabilityFortinet FortiWeb SQL Injection Vulnerability
VendorFortinet
ProductFortiWeb
Date added2025-07-18
Due date2025-08-08
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CWECWE-89
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS 0.5088 · 99th percentile · 2026-11-26 · 7d -0.4904
EPSS trend 0.9990 → 0.5090 -0.4900 over 21 observations
Descriptions

KEV: Fortinet FortiWeb contains a SQL injection vulnerability that may allow an unauthenticated attacker to execute unauthorized SQL code or commands via crafted HTTP or HTTPs requests.

NVD: An improper neutralization of special elements used in an SQL command ('SQL Injection') vulnerability [CWE-89] vulnerability in Fortinet FortiWeb 7.6.0 through 7.6.3, FortiWeb 7.4.0 through 7.4.7, FortiWeb 7.2.0 through 7.2.10, FortiWeb 7.0.0 through 7.0.10 allows an unauthenticated attacker to execute unauthorized SQL code or commands via crafted HTTP or HTTPs requests.

Compliance SSVC + BOD 26-04

Automatableyes
Technical impacttotal
Exploitation statusactive
3-day qualifyingYes
Public timeline3 days + forensic
Non-public timeline3 days + forensic
Forensic (public)Required
Forensic (non-public)Required

Research metadata

Last researched2026-06-14 00:05 UTC
Wall time0.3s
Searches4
Component defaultyes
Sources https://fortiguard.fortinet.com/psirt/FG-IR-25-151
https://nvd.nist.gov/vuln/detail/CVE-2025-25257
https://labs.watchtowr.com/pre-auth-sql-injection-to-rce-fortinet-fortiweb-fabric-connector-cve-2025-25257/
https://threatprotect.qualys.com/2025/07/14/fortinet-fortiweb-unauthenticated-sql-injection-vulnerability-cve-2025-25257/
https://www.securityweek.com/fortinet-fortiweb-flaw-exploited-in-the-wild-after-poc-publication/
https://www.helpnetsecurity.com/2025/07/14/exploits-for-unauthenticated-fortiweb-rce-are-public-so-patch-quickly-cve-2025-25257/
https://censys.com/advisory/cve-2025-25257/
https://github.com/0xbigshaq/CVE-2025-25257
https://github.com/0xgh057r3c0n/CVE-2025-25257
https://github.com/watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257
https://www.exploit-db.com/exploits/52473
https://arcticwolf.com/resources/blog/cve-2025-25257/
https://securityaffairs.com/180162/hacking/u-s-cisa-adds-fortinet-fortiweb-flaw-to-its-known-exploited-vulnerabilities-catalog.html
https://securityaffairs.com/180118/hacking/fortinet-fortiweb-flaw-cve-2025-25257-exploited-hours-after-poc-release.html
https://www.greenbone.net/en/blog/cve-2025-25257-urgent-pre-auth-rce-in-fortiweb-fabric-connector/
https://www.bleepingcomputer.com/news/security/new-fortinet-fortiweb-hacks-likely-linked-to-public-rce-exploits/
https://www.own.security/en/ressources/blog/fortiweb-cve-2025-25257-understanding-forensic-artifacts
https://zeropath.com/blog/fortinet-fortiweb-cve-2025-25257-sql-injection-rce
https://socura.co.uk/threat-alerts/cve-2025-25257-pre-authentication-rce-in-fortinet-fortiweb

QC notes

warn component_extraction: Component 'FortiWeb Fabric Connector - /api/fabric/device/status endpoint (get_fabric_user_by_token function in the Apache httpd handler binary /bin/httpsd that fails to sanitize the Authorization Bearer token before embedding it in a MySQL query; __isoc23_sscanf parses 'Bearer %128s' from the Authorization header)' matches or contains product name 'FortiWeb' — no specific component identified

Hunting hypothesis agent

Monitor for unauthenticated HTTP requests to FortiWeb /api/fabric/device/status endpoint containing SQL injection payloads in the Authorization Bearer token header.

Research details

ComponentFortiWeb Fabric Connector - /api/fabric/device/status endpoint (get_fabric_user_by_token function in the Apache httpd handler binary /bin/httpsd that fails to sanitize the Authorization Bearer token before embedding it in a MySQL query; __isoc23_sscanf parses 'Bearer %128s' from the Authorization header)
PreconditionsThe target must be running a vulnerable version of FortiWeb (7.0.0-7.0.10, 7.2.0-7.2.10, 7.4.0-7.4.7, or 7.6.0-7.6.3) with the HTTP/HTTPS administrative interface exposed and accessible over the network (enabled by default). The attacker needs network reachability to the FortiWeb management interface. No authentication is required. Exploitation is performed by sending a crafted HTTP GET request to the /api/fabric/device/status endpoint with a malicious Authorization: Bearer header containing SQL injection payloads. The vulnerable code path is in the get_fabric_user_by_token function within /bin/httpsd — the __isoc23_sscanf libc function parses 'Bearer %128s' from the Authorization header, and the extracted token is embedded directly into a MySQL query without parameterized statements. The injection is constrained by a 128-character limit and no-spaces requirement (bypassed using MySQL /**/ comment syntax). MySQL runs with root privileges due to a misconfiguration, enabling arbitrary file write via INTO OUTFILE. Successful SQL injection can be escalated to remote code execution by using MySQL's INTO OUTFILE to write a Python .pth file to the site-packages directory (e.g., /usr/local/lib/python3.10/site-packages/), which executes when a Python CGI script (/cgi-bin/ml-draw.py) is triggered. Exploitation was first observed in the wild on July 11, 2025, within hours of public PoC release by watchTowr Labs, with Shadowserver reporting up to 85 compromised instances by July 14, 2025. agent
DeliveryCrafted HTTP GET requests sent to the /api/fabric/device/status endpoint of the FortiWeb administrative web interface, containing a malicious Authorization: Bearer header value with SQL injection payloads. The injected SQL commands exploit MySQL's INTO OUTFILE functionality to write a Python .pth file to the site-packages directory, which is then executed by triggering the /cgi-bin/ml-draw.py Python CGI script, resulting in remote code execution.
Public PoCyes
Exploit notesCVSS attack complexity: LOW (CVSS:3.1/AV:N/AC:L). Exploitation is straightforward with public PoC scripts available. The SQL injection is constrained by a 128-character limit and no-spaces requirement in the Bearer token field, but these are easily bypassed using MySQL comment syntax (/**/) for spaces and relative paths for the INTO OUTFILE payload. Multiple public working exploits exist that automate the full SQli-to-RCE chain, making exploitation accessible to unskilled attackers. The vulnerability was weaponized and observed in the wild within days of the watchTowr disclosure.
SummaryCVE-2025-25257 is a critical pre-authentication SQL injection vulnerability (CWE-89, CVSS 9.8) in Fortinet FortiWeb versions 7.0.0 through 7.6.3 affecting the Fabric Connector component. The flaw exists in the get_fabric_user_by_token function which directly embeds the unsanitized Authorization Bearer token value into a MySQL query, allowing unauthenticated remote attackers to execute arbitrary SQL commands via crafted HTTP requests to the /api/fabric/device/status endpoint. Exploitation can be escalated to remote code execution with root privileges, and the vulnerability has been actively exploited in the wild since July 2025 following public release of proof-of-concept exploits.

Tia coverage

First reported2026-10-14

When Tia's reporting first covered this CVE and whether a report claimed exploitation before the KEV listing. Lead-time deltas are measured from the exploitation report only — plain coverage is not exploitation intel. See the story links under Mentioned in for coverage detail.

Mentioned in

talos-tracks-silent-lynx-espionage-campaign-targeting-cis-govern

Record schema v1.0. Enrichment is research-grade, not a substitute for analyst review.

Source on GitHub