CVE-2025-25257 Fortinet FortiWeb SQL Injection
Unauthenticated attackers can execute unauthorized SQL commands via crafted HTTP requests in FortiWeb, potentially compromising data integrity and confidentiality.
- Exploited in the wild
- Since 18 Jul 2025
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-25257?
CVE-2025-25257 is a critical SQL injection vulnerability in Fortinet Fortiweb, published on 17 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2025-25257?
It affects 1 product.
Products include Fortinet Fortiweb.
How do I fix CVE-2025-25257?
No fix has been published for CVE-2025-25257 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 8 Aug 2025.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-25257 being exploited?
Yes. Attackers have exploited CVE-2025-25257 in the wild since at least 18 Jul 2025.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 12 proofs of concept on GitHub.
Other vulnerabilities in Fortinet Fortiweb
Sources
Also known as GHSA-mj4r-rpwm-gg33.