CVE-2025-25257

CRITICAL KEV NUCLEI

Fortinet FortiWeb - SQL Injection

Title source: nuclei
STIX 2.1

Exploitation Summary

CVE-2025-25257 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added July 18, 2025. EIP tracks 14 public exploits from researchers including Milad Karimi (Ex3ptionaL), watchtowrlabs, 0xbigshaq. A Nuclei detection template is also available.

AI-analyzed exploit summary The exploit demonstrates a pre-authentication SQL injection vulnerability in Fortinet FortiWeb Fabric Connector 7.6.x via a crafted Authorization header, potentially leading to RCE. The PoC includes both a curl command and a Python script to test the vulnerability.

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.

Exploits (14)

exploitdb WORKING POC
by Milad Karimi (Ex3ptionaL) · textwebappsmultiple
https://www.exploit-db.com/exploits/52473

The exploit demonstrates a pre-authentication SQL injection vulnerability in Fortinet FortiWeb Fabric Connector 7.6.x via a crafted Authorization header, potentially leading to RCE. The PoC includes both a curl command and a Python script to test the vulnerability.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: Fortinet FortiWeb Fabric Connector 7.0 through 7.6.x
No auth needed
Prerequisites: Network access to the target FortiWeb instance
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 96 stars
by watchtowrlabs · remote
https://github.com/watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257

This PoC exploits an unauthenticated SQL injection in FortiWeb to achieve remote code execution by spraying hex-encoded payload chunks into the database and writing a malicious file to trigger a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FortiWeb (versions 7.6.0-7.6.3, 7.4.0-7.4.7, 7.2.0-7.2.10, 7.0.0-7.0.10)
No auth needed
Prerequisites: Network access to the target FortiWeb instance · Listener set up on the attacker's machine for the reverse shell
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 63 stars
by 0xbigshaq · remote
https://github.com/0xbigshaq/CVE-2025-25257

This repository contains a working exploit for CVE-2025-25257, targeting FortiWeb's SQL injection vulnerability in the `/api/fabric/device/status` endpoint. The exploit achieves RCE by uploading a webshell via SQLi and leveraging file write primitives.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FortiWeb (tested on FortiWeb-VM 7.6.1, build1010(GA.F),241126)
No auth needed
Prerequisites: Network access to the FortiWeb management interface · Vulnerable FortiWeb version
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 5 stars
by TheStingR · remote
https://github.com/TheStingR/CVE-2025-25257

This is a functional exploit for CVE-2025-25257, targeting an unauthenticated SQL injection in FortiWeb's API endpoint, which is then leveraged to achieve remote code execution via webshell deployment and .pth file manipulation.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FortiWeb <= 7.0.10 / 7.2.10 / 7.4.7 / 7.6.3
No auth needed
Prerequisites: Network access to the target FortiWeb API endpoint · Python 3.x environment with requests library
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 2 stars
by mrmtwoj · remote
https://github.com/mrmtwoj/CVE-2025-25257

This repository contains a functional exploit for CVE-2025-25257, a pre-authentication SQL injection vulnerability in Fortinet FortiWeb. The exploit chains SQLi to achieve remote code execution by writing a webshell and executing commands via the User-Agent header.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Fortinet FortiWeb <= 7.0.10 / 7.2.10 / 7.4.7 / 7.6.3
No auth needed
Prerequisites: Network access to the target FortiWeb administrative interface
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by aitorfirm · poc
https://github.com/aitorfirm/CVE-2025-25257

This repository contains a functional PoC for CVE-2025-25257, demonstrating a pre-authentication SQL Injection vulnerability in Fortinet FortiWeb Fabric Connector. The exploit targets the `/api/fabric/device/status` endpoint via a crafted `Authorization: Bearer` header.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: Fortinet FortiWeb Fabric Connector 7.0 through 7.6.x
No auth needed
Prerequisites: Network access to the vulnerable FortiWeb instance · Vulnerable version of FortiWeb Fabric Connector
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by 0xgh057r3c0n · remote
https://github.com/0xgh057r3c0n/CVE-2025-25257

This is a functional exploit for CVE-2025-25257, targeting FortiWeb's `/api/fabric/device/status` endpoint via SQL injection in the Authorization header. It writes a webshell to the server and achieves remote code execution by leveraging SQL `INTO OUTFILE` and a Python chmod gadget.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FortiWeb (version not specified)
No auth needed
Prerequisites: Network access to the target FortiWeb instance · Python 3.6+ with `requests` module
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by imbas007 · poc
https://github.com/imbas007/CVE-2025-25257

This repository contains a Python-based exploit for CVE-2025-25257, targeting FortiWeb devices. The exploit leverages SQL injection via the Authorization header to upload a webshell and achieve remote code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FortiWeb
No auth needed
Prerequisites: Network access to the target FortiWeb device · Vulnerable version of FortiWeb
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP
by zaryouhashraf · poc
https://github.com/zaryouhashraf/CVE-2025-25257

This repository provides a detailed technical analysis of CVE-2025-25257, a critical SQL injection vulnerability in Fortinet FortiWeb's Fabric Connector component. It includes impact assessment, mitigation steps, and references but lacks actual exploit code.

Classification
Writeup 90%
Attack Type
Sqli
Complexity
Moderate
Reliability
Theoretical
Target: Fortinet FortiWeb (Fabric Connector component)
No auth needed
Prerequisites: Network access to the vulnerable FortiWeb instance
devstral-2 · analyzed Mar 05, 2026 Full analysis →
nomisec WRITEUP
by GarethMSheldon · poc
https://github.com/GarethMSheldon/Fortinet-FortiWeb-Fabric-Connector-CVE-2025-25257-Detection

This repository provides comprehensive detection engineering content for CVE-2025-25257, a pre-authentication SQL Injection vulnerability in Fortinet FortiWeb Fabric Connector. It includes detailed technical analysis, detection rules (YARA, KQL, Sigma), and testing instructions for defensive use.

Classification
Writeup 100%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Fortinet FortiWeb Fabric Connector versions 7.0.x through 7.6.x
No auth needed
Prerequisites: Access to the vulnerable endpoint · Network connectivity to the target
devstral-2 · analyzed Mar 02, 2026 Full analysis →
nomisec WORKING POC
by lytianahkone-boop · poc
https://github.com/lytianahkone-boop/cve-2025-25257

This repository contains a functional proof-of-concept for CVE-2025-25257, demonstrating a SQL injection vulnerability in a simulated FortiWeb environment. The exploit leverages an unauthenticated endpoint with direct SQL concatenation via the Authorization header.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: FortiWeb (simulated, version 7.0.3)
No auth needed
Prerequisites: Docker · Python 3 · Flask · SQLite
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER
by mr-r3b00t · remote
https://github.com/mr-r3b00t/CVE-2025-25257

This PowerShell script tests for CVE-2025-25257, an unauthenticated SQL injection vulnerability in Fortinet FortiWeb's /api/fabric/device/status endpoint. It sends a HEAD request to check endpoint accessibility, followed by a GET request with a SQLi payload in the Authorization header.

Classification
Scanner 90%
Attack Type
Sqli
Complexity
Trivial
Reliability
Theoretical
Target: Fortinet FortiWeb
No auth needed
Prerequisites: Network access to the target FortiWeb appliance · HTTPS access to the /api/fabric/device/status endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by segfault-it · remote
https://github.com/segfault-it/CVE-2025-25257

This repository contains a Python-based exploit for CVE-2025-25257, which chains SQL injection to achieve remote code execution (RCE) on FortiWeb. The exploit writes a reverse shell payload to a .pth file and triggers its execution via a vulnerable API endpoint.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: FortiWeb (version not specified)
No auth needed
Prerequisites: Network access to the target FortiWeb instance · Vulnerable API endpoint exposed
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by adilburaksen · remote
https://github.com/adilburaksen/CVE-2025-25257-Exploit-Tool

This repository contains a Python-based exploit for CVE-2025-25257, a pre-authentication SQL injection vulnerability in Fortinet FortiWeb that can be escalated to remote code execution (RCE). The exploit includes version detection, SQL injection payloads, and a persistent webshell upload mechanism.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Fortinet FortiWeb (versions 7.6.0-7.6.3, 7.4.0-7.4.7, 7.2.0-7.2.10, 7.0.0-7.0.10)
No auth needed
Prerequisites: Network access to the target FortiWeb instance · Python environment with required dependencies
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Fortinet FortiWeb - SQL Injection
CRITICALVERIFIEDby watchtowr,johnk3r
Shodan: ssl:"cn=fortiweb" || title:"FortiWeb - "

References (5)

Core 5

Scores

CVSS v3 9.8
EPSS 0.2620
EPSS Percentile 96.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation active
Automatable yes
Technical Impact total

Details

CISA KEV 2025-07-18
VulnCheck KEV 2025-07-11
ENISA EUVD EUVD-2025-21785
CWE
CWE-89
Status published
Products (1)
fortinet/fortiweb 7.0.0 - 7.0.11
Published Jul 17, 2025
KEV Added Jul 18, 2025
Tracked Since Feb 18, 2026