CVE-2025-25257 — Fortiweb
CRITICALCVE-2025-25257 is a critical-severity (CVSS 9.8) SQL Injection vulnerability in fortinet fortiweb. It is in CISA's Known Exploited Vulnerabilities catalog (added 2025-07-18) — treat it as actively exploited and patch now. No vendor fix is recorded yet; mitigation options are listed below.
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…
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2025-07-18. Federal agencies were required to remediate by 2025-08-08.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2025-25257.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2025-25257 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 394,803 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
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.
Affected Products
fortiwebfortinetResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
FortiWeb Fabric Connector 7.6.x - SQL Injection to Remote Code Execution
by Milad Karimi (Ex3ptionaL) · Feb 4, 2026
Detection & mitigation playbook
Vendor / applianceDetect
Inventory every fortinet fortiweb deployment and check each version against the affected-products list above.
Remediation status
No patch has shipped for CVE-2025-25257 yet — track the fortinet fortiweb advisory for a fixed release and apply the workarounds below in the meantime.
Mitigate without a patch
Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
How to detect CVE-2025-25257
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2025-25257 -u https://target- Template
- Fortinet FortiWeb - SQL Injection
- Severity
- critical
- Impact
- An attacker can exploit this vulnerability to execute unauthorized SQL commands, potentially leading to data exposure, data manipulation, or system compromise.
- Remediation
- Apply the latest security patches provided by Fortinet to fix the SQL injection vulnerability in FortiWeb.
Template by ProjectDiscovery nuclei-templates (watchtowr, johnk3r), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2025-25257 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.