Patchfirst
CVE-2025-25257 KEVPublic exploit Critical · 9.8 EPSS 99.9%

Fortinet FortiWeb SQL Injection Vulnerability

Fortinet · FortiWeb

Summary

The SQL injection flaw (CWE-89) lives in Fortinet FortiWeb, the web application firewall product, across versions 7.0.0 through 7.6.3 as listed in the affected ranges. An unauthenticated attacker with network access to the device can send crafted HTTP or HTTPS requests to execute unauthorized SQL code or commands, requiring no credentials, no user interaction, and no particular configuration.

Official description · NVD

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.

Breakdown
69.9 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
5/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

  3. What can follow

First seen exploited 6 days before it was disclosed. Public exploit code (PoC-in-GitHub) was available 7 days before disclosure.

  1. Public exploit codePoC-in-GitHub7 days before
  2. First seen exploitedVulnCheck KEV evidence6 days before
  3. Disclosedday 0
  4. Added to CISA KEVEU database agrees+1 day

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

5 , grouped by in kill-chain order 5

Initial AccessTA0001

MITRE CTID mapping of the KEV entry · how it is exploited

Affected versions of FortiWeb contain insufficient input sanitization, allowing for an attacker to use SQL injection to write a malicious .pth file to the into FortiWeb's site-packages Python directory. This allows the malicious code to execute using the privileges granted to Python scripts in that high-level directory.

ExecutionTA0002

Unix Shell T1059.004
MITRE CTID mapping of the KEV entry · primary impact

Affected versions of FortiWeb contain insufficient input sanitization, allowing for an attacker to use SQL injection to write a malicious .pth file to the into FortiWeb's site-packages Python directory. This allows the malicious code to execute using the privileges granted to Python scripts in that high-level directory. Given the use of SQL, this can lead to potential loss of data within the database.

Privilege EscalationTA0004

Process Injection T1055 also Stealth
MITRE CTID mapping of the KEV entry · how it is exploited
MITRE CTID mapping of the KEV entry · how it is exploited

ImpactTA0040

MITRE CTID mapping of the KEV entry · follow-on activity

Detection

0 rules for this CVE · 256 general rules for its techniques

Rules for this CVE

0 that reference CVE-2025-25257 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Exploit Public-Facing ApplicationT1190149 general rules
Process InjectionT105537 general rules
Exploitation for Privilege EscalationT106831 general rules
Unix ShellT1059.00419 general rules
Data DestructionT148520 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close