Fortinet FortiWeb
Fortinet FortiWeb SQL Injection Vulnerability
Edge device · Firewall / VPNknown edge product: Fortinet FortiWeb Fortinet FortiWeb SQL Injection Vulnerability (high confidence)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7.6.0, <= 7.6.3
- >= 7.4.0, <= 7.4.7
- >= 7.2.0, <= 7.2.10
- >= 7.0.0, <= 7.0.10
Mitigation
Upgrade to FortiWeb version 7.6.4 or above Upgrade to FortiWeb version 7.4.8 or above Upgrade to FortiWeb version 7.2.11 or above Upgrade to FortiWeb version 7.0.11 or above
Timeline
Days relative to CVE publicationFirst public PoC 6.9 days before publication; added to CISA KEV 1 day after publication. First PoC: watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257 (created 10 Jul 2025, found by us: backfilled).
PoC repositories
Found on GitHub.11 PoCs · 2 pending · 1 informational
PoCs 11
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257 | 10 Jul 2025 −6.9 d | 100 | PoC |
| 0xbigshaq/CVE-2025-25257 | 11 Jul 2025 −6.1 d | 64 | PoC |
| aitorfirm/CVE-2025-25257 | 12 Jul 2025 −5.6 d | 1 | PoC |
| adilburaksen/CVE-2025-25257-Exploit-Tool | 12 Jul 2025 −5 d | 0 | PoC |
| imbas007/CVE-2025-25257 | 12 Jul 2025 −5 d | 1 | PoC |
| 0xgh057r3c0n/CVE-2025-25257 | 15 Jul 2025 −2.2 d | 2 | PoC |
| mrmtwoj/CVE-2025-25257 | 19 Jul 2025 +1.5 d | 1 | PoC |
| TheStingR/CVE-2025-25257 | 19 Jul 2025 +2 d | 5 | PoC |
| segfault-it/CVE-2025-25257 | 21 Sep 2025 +66 d | 1 | PoC |
| mr-r3b00t/CVE-2025-25257 | 11 Nov 2025 +117 d | 0 | PoC |
| lytianahkone-boop/cve-2025-25257 | 16 Dec 2025 +152 d | 0 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| B1ack4sh/Blackash-CVE-2025-25257 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| kityzed2003/CVE-2025-25257 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| GarethMSheldon/Fortinet-FortiWeb-Fabric-Connector-CVE-2025-25257-Detection | 1 Mar 2026 +227 d | 0 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | FortiWeb Fabric Connector 7.6.x - SQL Injection to Remote Code Execution | 4 Feb 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Fortinet FortiWeb - SQL Injection | 11 Jul 2025 | 14 Nov 2026 |
| PoC Index | https://github.com/GarethMSheldon/Fortinet-FortiWeb-Fabric-Connector-CVE-2025-25257-Detection/blob/a7aba65c7607208366afc16878ef31f7d1ed8fd4/src/poc.py | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 11 PoC reposGET /api/fabric/device/status
- Key headers
Authorization: Bearer {var}Authorization: Bearer aaa' OR '1'='1- Seen in
- 3 repos: adilburaksen/CVE-2025-25257-Exploit-Tool, aitorfirm/CVE-2025-25257, watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257
- Evidence
- adilburaksen/CVE-2025-25257-Exploit-Tool/exploit.py:36 adilburaksen/CVE-2025-25257-Exploit-Tool/exploit.py:69 aitorfirm/CVE-2025-25257/README.md:39 aitorfirm/CVE-2025-25257/src/poc.py:9 watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257/watchTowr-vs-FortiWeb-CVE-2025-25257.py:60 watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257/watchTowr-vs-FortiWeb-CVE-2025-25257.py:71
GET /api/fabric/device/status`;
- Key headers
Authorization: Bearer aaa' OR '1'='1- Seen in
- 1 repo: aitorfirm/CVE-2025-25257
- Evidence
- aitorfirm/CVE-2025-25257/java/poc.js:6
GET /api/system/status
- Ports
- 8080
- Seen in
- 1 repo: lytianahkone-boop/cve-2025-25257
- Evidence
- lytianahkone-boop/cve-2025-25257/README.md:48
GET /cgi-bin/x.cgi
- PoC User-Agent
whoami- Seen in
- 1 repo: 0xgh057r3c0n/CVE-2025-25257
- Evidence
- 0xgh057r3c0n/CVE-2025-25257/README.md:55
GET /webshell.php
- Ports
- 8080
- PoC User-Agent
whoami- Seen in
- 1 repo: TheStingR/CVE-2025-25257
- Evidence
- TheStingR/CVE-2025-25257/README.md:121
HEAD /cgi-bin/ml-draw.py
POST /api/system/fabric/config
- Key headers
Authorization: Bearer valid_token_001Authorization: Bearer ' OR '1'='1Authorization: Bearer ' UNION SELECT id, username, password, role, email, NULL FROM users--Authorization: Bearer ' UNION SELECT id, key, value, description, '2025-01-01',NULL FROM system_config--- Content-Type
application/json- Ports
- 8080
- Seen in
- 1 repo: lytianahkone-boop/cve-2025-25257
- Evidence
- lytianahkone-boop/cve-2025-25257/README.md:52 lytianahkone-boop/cve-2025-25257/README.md:57 lytianahkone-boop/cve-2025-25257/README.md:62 lytianahkone-boop/cve-2025-25257/README.md:67
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/fabric/device/status(?:[?#].*)?$
(?i)^/api/fabric/device/status`;(?:[?#].*)?$
(?i)^/api/system/status(?:[?#].*)?$
(?i)^/cgi-bin/x\.cgi(?:[?#].*)?$
(?i)^/webshell\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-25257 Fortinet FortiWeb exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/fabric/device/status"; http.header; content:"Authorization: Bearer "; nocase; http.header; content:"Authorization: Bearer aaa' OR '1'='1"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-25257; classtype:web-application-attack; sid:9568062; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-25257 Fortinet FortiWeb exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/fabric/device/status`|3b|"; http.header; content:"Authorization: Bearer aaa' OR '1'='1"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-25257; classtype:web-application-attack; sid:9436435; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-25257 Fortinet FortiWeb exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/system/status"; reference:url,poc.griffinguard.io/cve/CVE-2025-25257; classtype:web-application-attack; sid:9777807; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-25257 Fortinet FortiWeb exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/x.cgi"; reference:url,poc.griffinguard.io/cve/CVE-2025-25257; classtype:web-application-attack; sid:9742025; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-25257 Fortinet FortiWeb exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/webshell.php"; reference:url,poc.griffinguard.io/cve/CVE-2025-25257; classtype:web-application-attack; sid:9723138; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Fortinet FortiWeb exploit attempt (CVE-2025-25257)
id: gg-pocmon-cve-2025-25257-9568062
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-25257. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-25257
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/fabric/device/status'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.25257
title: Fortinet FortiWeb exploit attempt (CVE-2025-25257)
id: gg-pocmon-cve-2025-25257-9436435
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-25257. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-25257
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/fabric/device/status`;'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.25257
title: Fortinet FortiWeb exploit attempt (CVE-2025-25257)
id: gg-pocmon-cve-2025-25257-9777807
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-25257. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-25257
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/system/status'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.25257
title: Fortinet FortiWeb exploit attempt (CVE-2025-25257)
id: gg-pocmon-cve-2025-25257-9742025
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-25257. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-25257
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cgi-bin/x.cgi'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.25257
title: Fortinet FortiWeb exploit attempt (CVE-2025-25257)
id: gg-pocmon-cve-2025-25257-9723138
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-25257. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-25257
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/webshell.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.25257