CVE-2025-25257: Fortinet FortiWeb SQL Injection Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by fortinet, published 2025-07-17).
Weakness: Execute unauthorized code or commands
How it can be exploited
Exploitable over the network with low attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:X/RC:C
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: yes. Technical impact: total.
- On CISA KEV since
- 2025-07-18
- US federal deadline
- 2025-08-08
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Also known as: BDU:2025-08439, CNNVD-202507-2313, EDB-52473, EUVD-2025-21785, GHSA-mj4r-rpwm-gg33
VEDAS cluster: VEDAS:BEECHBEAR
Exploit Observer links 30 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (30)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Exploit-DB: https://www.exploit-db.com/raw/52473
- Exploit-DB: https://www.exploit-db.com/raw/52473
- Nuclei template: https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2025/CVE-2025-25257.yaml
- Code repository: https://github.com/0xbigshaq/cve-2025-25257
- Code repository: https://github.com/0xbigshaq/cve-2025-25257)
- Code repository: https://github.com/0xgh057r3c0n/cve-2025-25257
- Code repository: https://github.com/adilburaksen/cve-2025-25257-exploit-tool
- Code repository: https://github.com/aitorfirm/cve-2025-25257
- Code repository: https://github.com/ashwesker/blackash-cve-2025-25257
- Code repository: https://github.com/b1ack4sh/blackash-cve-2025-25257
- Code repository: https://github.com/barbaraogmgf/cve-2025-25257
- Code repository: https://github.com/garethmsheldon/fortinet-fortiweb-fabric-connector-cve-2025-25257-detection
- and 18 more
Research and write-ups (3)
- Research or write-up: https://fidelissecurity.com/vulnerabilities/cve-2025-25257
- Research or write-up: https://labs.watchtowr.com/pre-auth-sql-injection-to-rce-fortinet-fortiweb-fabric-connector-cve-2025-25257
- Research or write-up: https://labs.watchtowr.com/pre-auth-sql-injection-to-rce-fortinet-fortiweb-fabric-connector-cve-2025-25257/?utm_source=Securitylab.ru
Vulnerability databases and vendor advisories (6)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2025-21785
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-mj4r-rpwm-gg33
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-25257
- Vulnerability database or vendor advisory: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-25257
- Vulnerability database or vendor advisory: https://www.cnnvd.org.cn/home/globalSearch?keyword=CNNVD-202507-2313
- Vulnerability database or vendor advisory: https://www.tenable.com/cve/CVE-2025-25257
News (2)
- News: https://securityaffairs.com/179874/security/patch-immediately-cve-2025-25257-poc-enables-remote-code-execution-on-fortinet-fortiweb.html
- News: https://securityaffairs.com/180118/hacking/fortinet-fortiweb-flaw-cve-2025-25257-exploited-hours-after-poc-release.html
112 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.999
very likely to be attacked soon - VEDAS
- 0.985
strong exploit evidence - On CISA KEV
- Yes, since 2025-07-18
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. Shaded “no data” areas are periods when cve-scores did not publish.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Fortinet FortiWeb | from 7.6.0 up to and including 7.6.3 from 7.4.0 up to and including 7.4.7 from 7.2.0 up to and including 7.2.10 from 7.0.0 up to and including 7.0.10 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
Exploit Observer also maps it to: fortinet fortiweb, fortinet_inc. fortiweb.
How to fix it
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Vendor guidance:
How to detect it
Nuclei template (active check)
Fortinet FortiWeb - SQL Injection
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.
Name and description quoted from the template, written by VEDAS.
The template sends 1 request (GET /api/fabric/device/status); it decides using status, word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2025-25257.yamlShow the template (42 lines)
id: CVE-2025-25257
info:
name: "Fortinet FortiWeb - SQL Injection"
author: vedas-arpsyndicate
severity: critical
description: |
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2025-25257&match=exact
- https://subdomain.center/?engine=ammonites&keyword=fortinet&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2025-25257
cwe-id: CWE-89
metadata:
verified: false
tags: cve,cve2025,fortinet,fortiweb,sqli,unauth,kev,vkev,vuln
http:
- raw:
- |
GET /api/fabric/device/status HTTP/1.1
Host: {{Hostname}}
Authorization: Bearer AAAAAA'or'1'='1
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'serial'
- 'fortiweb'
- 'device_type'
condition: and
- type: status
status:
- 200
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2025-25257 Fortinet FortiWeb - SQL Injection. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2025-25257 Fortinet FortiWeb - SQL Injection"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"index.php"; nocase; fast_pattern; content:"%27"; classtype:web-application-attack; reference:cve,CVE-2025-25257; reference:url,https://www.exploit.observer/?keyword=CVE-2025-25257&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=fortinet&match=exact; sid:1001628; rev:2;)
CVE-2025-25257.rules on GitHub
References
Exploits and technical analysis
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-25257 (government-resource)
Other references
- https://fortiguard.fortinet.com/psirt/FG-IR-25-151
- https://www.exploit-db.com/exploits/52473
- https://packetstorm.news/files/id/210193/
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.