Security Advisory

CVE-2025-25257: FortiWeb Unauthenticated SQL Injection (KEV)

Last updated:
  • CVE-2025-25257

CVE-2025-25257 is an unauthenticated SQL injection in the web GUI of Fortinet FortiWeb appliances running 7.0 to 7.6: crafted HTTP or HTTPS requests can run unauthorized SQL code or commands. NVD scores it 9.8, Fortinet has seen it exploited and CISA KEV lists it. Upgrade to FortiWeb 7.0.11, 7.2.11, 7.4.8 or 7.6.4.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

50.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2025-25257 · Source: NVD (Primary CVSS v3.1 9.8)

Affected components

ComponentCPEVersion range
Fortinet FortiWebcpe:2.3:a:fortinet:fortiweb:*:*:*:*:*:*:*:*7.6.0 through 7.6.3 (fixed in 7.6.4); 7.4.0 through 7.4.7 (fixed in 7.4.8); 7.2.0 through 7.2.10 (fixed in 7.2.11); 7.0.0 through 7.0.10 (fixed in 7.0.11); FortiWeb 6.4 not affected (Fortinet FG-IR-25-151)

What does this mean for affected devices?

NVD describes an SQL injection (CWE-89) in Fortinet FortiWeb 7.6.0 through 7.6.3, 7.4.0 through 7.4.7, 7.2.0 through 7.2.10 and 7.0.0 through 7.0.10 that "allows an unauthenticated attacker to execute unauthorized SQL code or commands via crafted HTTP or HTTPs requests". NVD's own Primary CVSS v3.1 score is 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), the same as Fortinet's CNA score, and its CPE ranges end before 7.0.11, 7.2.11, 7.4.8 and 7.6.4 (NVD, CVE record).

Which FortiWeb firmware fixes CVE-2025-25257?

Fortinet's advisory FG-IR-25-151, "Unauthenticated SQL injection in GUI", gives one fixed build per branch: FortiWeb 7.6.4, 7.4.8, 7.2.11 and 7.0.11 or above. FortiWeb 6.4 is not affected. The machine-readable CSAF file lists the same ranges. FortiWeb is a web application firewall sold as hardware appliances and virtual machines, so the fix is a firmware upgrade of the appliance image.

What can I do until the upgrade?

Fortinet's workaround is to disable the HTTP/HTTPS administrative interface. The flaw sits in the GUI component, so an admin interface that is reachable only from a management network cuts the exposure; that is the point of CISA's BOD 23-02 on internet-exposed management interfaces.

Is CVE-2025-25257 exploited?

Yes. Fortinet published the advisory on 2025-07-08 and updated it on 2025-07-18 to say "Fortinet has observed this to be exploited in the wild on FortiWeb". CISA added the CVE to the KEV catalog on 2025-07-18 with the 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." (due 2025-08-08; known ransomware campaign use: Unknown); it is still listed as of 2026-11-26 in catalog version 2026.11.25 (CISA KEV). FIRST EPSS gives 0.5088, the 99.19th percentile, in the 2026-11-25 dataset (FIRST EPSS); see KEV and EPSS prioritization for how to weigh the two. Later exploited FortiWeb flaws are the authenticated command injection CVE-2025-58034 and the path traversal CVE-2025-64446.

How to fix this class of issueThis advisory's weakness class is SQL injection. Our practical guide covers how to detect, fix, verify and disclose it: How to fix SQL injection, XSS, resource exhaustion and deserialization flaws in embedded firmware.

Evidence

  • NVD: Analyzed; SQL injection [CWE-89] in FortiWeb 7.6.0-7.6.3, 7.4.0-7.4.7, 7.2.0-7.2.10, 7.0.0-7.0.10, unauthenticated, crafted HTTP or HTTPs requests; [email protected] Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; Fortinet Secondary 9.8; CWE-89 Primary; CPE fortiweb 7.0.0-<7.0.11, 7.2.0-<7.2.11, 7.4.0-<7.4.8, 7.6.0-<7.6.4; published 2025-07-17; read 2026-11-26. — NVD
  • Fortinet FG-IR-25-151 'Unauthenticated SQL injection in GUI': fixed in 7.6.4, 7.4.8, 7.2.11, 7.0.11; 6.4 not affected; workaround disable HTTP/HTTPS administrative interface; published 2025-07-08, updated 2025-07-18 'CVE observed to be exploited'; 'Fortinet has observed this to be exploited in the wild on FortiWeb'; component GUI; CVSSv3 9.8. — Fortinet PSIRT
  • Fortinet CSAF for FG-IR-25-151: known 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; not affected 7.6.4, 7.4.8, 7.2.11, 7.0.11. — Fortinet CSAF
  • CVE record: PUBLISHED, CNA Fortinet, 2025-07-17; FortiWeb 7.6.0-7.6.3, 7.4.0-7.4.7, 7.2.0-7.2.10, 7.0.0-7.0.10 affected; CISA ADP SSVC exploitation active. — CVE.org
  • KEV catalog 2026.11.25: dateAdded 2025-07-18, due 2025-08-08, 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.', knownRansomwareCampaignUse Unknown, CWE-89; checked 2026-11-26. — CISA KEV
  • EPSS 0.5088, percentile 0.99192, dataset 2026-11-25, read 2026-11-26. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Fortinet PSIRT FG-IR-25-151: Unauthenticated SQL injection in GUI
  3. Fortinet CSAF for FG-IR-25-151
  4. CVE.org record CVE-2025-25257 (CNA: Fortinet)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which FortiWeb versions are affected by CVE-2025-25257?

FortiWeb 7.0.0 to 7.0.10, 7.2.0 to 7.2.10, 7.4.0 to 7.4.7 and 7.6.0 to 7.6.3. The fixed builds are 7.0.11, 7.2.11, 7.4.8 and 7.6.4 or above; FortiWeb 6.4 is not affected (per Fortinet FG-IR-25-151 and NVD).

Is there a workaround for CVE-2025-25257?

Fortinet's workaround is to disable the HTTP/HTTPS administrative interface until the appliance runs a fixed build. The flaw is in the GUI and needs no login, so an admin interface open to the internet is the main exposure (per Fortinet FG-IR-25-151).

Is CVE-2025-25257 exploited in the wild?

Yes. Fortinet updated its advisory on 2025-07-18 to say it has observed exploitation on FortiWeb, and CISA added the CVE to KEV the same day. As of 2026-11-26 it is still in KEV catalog version 2026.11.25, with known ransomware use marked Unknown (per Fortinet and CISA KEV).

How severe is CVE-2025-25257?

NVD's Primary CVSS v3.1 score is 9.8, matching Fortinet's own score: network attack, low complexity, no privileges and no user interaction. FIRST EPSS gives 0.5088, the 99.19th percentile, in the 2026-11-25 dataset (per NVD and FIRST EPSS).