Actively exploited in the wild. This CVE is on the CISA Known Exploited Vulnerabilities list — treat remediation as urgent. Federal remediation due by 8 Aug 2025.
FortiwebApplication · Fortinet

CVE-2025-25257

CRITICAL · 9.8 CVSS v3.1 Published 2025-07-17
Fix available
A fix is available. Upgrade to 7.0.11 / 7.2.11 or later.
See remediation →
100/100
Remediation priority · Urgent
In the wild High EPSS Public exploit Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A critical SQL injection vulnerability in FortiWeb allows unauthenticated attackers to execute arbitrary SQL commands via specially crafted HTTP/HTTPS requests. The flaw exists in the web application firewall's input handling, enabling attackers to bypass authentication and manipulate backend database queries.

MitigationApply Fortinet's patches for FortiWeb versions 7.6.4, 7.4.8, 7.2.11, and 7.0.11 or later to address this vulnerability.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FortiwebApplication
Affected:>= 7.0.0, < 7.0.11>= 7.2.0, < 7.2.11>= 7.4.0, < 7.4.8>= 7.6.0, < 7.6.4

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify FortiWeb version
    Run the command 'get system status' in FortiWeb CLI or check the FortiWeb dashboard under System > Status to retrieve the firmware version
    Affected if The installed version falls within 7.0.0 through 7.0.10, 7.2.0 through 7.2.10, 7.4.0 through 7.4.7, or 7.6.0 through 7.6.3
  2. Confirm management interface exposure
    Review network configuration to determine if FortiWeb HTTP/HTTPS management ports (typically ports 80, 443, or custom mgmt ports) are reachable from untrusted networks or the public internet
    Affected if The FortiWeb management interface is accessible from networks outside the trusted internal environment
  3. Inspect access logs for SQL injection patterns
    Examine FortiWeb logs under Log & Report > Traffic Log or use CLI command 'execute log filter category traffic' to review recent HTTP requests for suspicious SQL-like patterns in parameter values
    Affected if Logs contain requests with SQL syntax characters (such as single quotes, UNION SELECT, or semicolons) in parameters that may indicate exploitation attempts

A FortiWeb instance is affected if it runs version 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 AND has its management interface exposed to network where attackers can send crafted HTTP/HTTPS requests.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 7.0.11 / 7.2.11 / 7.4.8 or later
Fixed in 7.0.117.2.117.4.8
Interim mitigation

Apply Fortinet's patches for FortiWeb versions 7.6.4, 7.4.8, 7.2.11, and 7.0.11 or later to address this vulnerability.

Recommended fix High confidence

Upgrade to FortiWeb 7.0.11, 7.2.11, 7.4.8, or 7.6.4 (or later) depending on your current major version branch

  1. 1. Identify the current FortiWeb version by navigating to System > Firmware or using the CLI command 'get system status'.
  2. 2. Based on the current version, determine the appropriate upgrade path to a fixed release: 7.0.x -> 7.0.11, 7.2.x -> 7.2.11, 7.4.x -> 7.4.8, or 7.6.x -> 7.6.4.
  3. 3. Download the corresponding firmware from Fortinet's support portal (support.fortinet.com) or FortiGuard.
  4. 4. Review the FortiWeb upgrade guide and release notes for pre-upgrade requirements and compatibility checks.
  5. 5. Before upgrading, backup the FortiWeb configuration via System > Maintenance > Backup & Restore or CLI command 'execute backup full-config' to a secure location.
  6. 6. Schedule a maintenance window as the upgrade may cause brief service interruption.
  7. 7. Upload and install the new firmware via the web UI (System > Firmware) or CLI using 'execute firmware upgrade' command.
  8. 8. After upgrade completes, verify the new version is running with 'get system status' and confirm the SQL injection vulnerability is resolved.
Caveat Standard FortiWeb upgrade considerations apply - review release notes for any configuration changes, ensure compatibility with connected FortiGate/FortiManager devices, and test policies in a staging environment before production deployment

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Fortiweb Exploited in the wild — priority engagement
  • Consultation4.0 h
  • Implementation4.0 h
  • Testing4.0 h
  • Review / QA2.0 h
14.0 hours of engineering $2,480
Get it fixed fast

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,968.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-25257 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-25257 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data