{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2025-25257 in the wild since at least 18 Jul 2025.","fix":"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.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-25257 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: Yes. Attackers have exploited CVE-2025-25257 in the wild since at least 18 Jul 2025.\n\nAffected product: Fortinet Fortiweb. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-25257/ (Markdown: https://insights.sbomify.com/CVE-2025-25257/index.md)","id":"CVE-2025-25257","markdown":"https://insights.sbomify.com/CVE-2025-25257/index.md","name":"CVE-2025-25257","record":{"aliases":["GHSA-mj4r-rpwm-gg33"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Fortinet FortiWeb","requires_auth":"none","summary":"Unauthenticated attackers can execute unauthorized SQL commands via crafted HTTP requests in FortiWeb, potentially compromising data integrity and confidentiality.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"fortinet","cpe":[{"product":"fortiweb","vendor":"fortinet"}],"cvss":{"score":9.6,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:X/RC:C","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2025-07-10","github_poc":12,"max_poc_stars":100,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-07-10T17:08:25Z","kind":"github_poc","ref":"https://github.com/watchtowrlabs/watchTowr-vs-FortiWeb-CVE-2025-25257","stars":100,"title":null},{"date":"2025-07-11T12:09:02Z","kind":"github_poc","ref":"https://github.com/0xbigshaq/CVE-2025-25257","stars":64,"title":"FortiWeb CVE-2025-25257 exploit"},{"date":"2025-07-19T15:55:50Z","kind":"github_poc","ref":"https://github.com/TheStingR/CVE-2025-25257","stars":5,"title":"Public PoC for CVE-2025-25257: FortiWeb pre-auth SQLi to RCE"},{"date":"2025-07-15T10:00:07Z","kind":"github_poc","ref":"https://github.com/0xgh057r3c0n/CVE-2025-25257","stars":2,"title":"PoC for CVE-2025-25257, a critical unauthenticated SQL injection in FortiWeb. Exploits SQLi via the Authorization header to write a webshell and gain RCE. No login required. Fully automated."},{"date":"2025-07-12T00:05:53Z","kind":"github_poc","ref":"https://github.com/aitorfirm/CVE-2025-25257","stars":1,"title":"Exploiting the CVE-2025-25257 vulnerability in FortiWeb. This repository demonstrates secure pre-authenticated SQL injection."},{"date":"2025-07-12T15:14:01Z","kind":"github_poc","ref":"https://github.com/imbas007/CVE-2025-25257","stars":1,"title":null},{"date":"2025-07-19T03:12:21Z","kind":"github_poc","ref":"https://github.com/mrmtwoj/CVE-2025-25257","stars":1,"title":"CVE‑2025‑25257 is a critical pre-authentication SQL injection vulnerability affecting Fortinet FortiWeb’s"},{"date":"2025-09-21T10:24:27Z","kind":"github_poc","ref":"https://github.com/segfault-it/CVE-2025-25257","stars":1,"title":"A working (at least for me :] ) exploit for CVE-2025-25257"}],"tier":"exploited"},"has_fix":null,"headline":"Fortinet FortiWeb SQL Injection","id":"CVE-2025-25257","indexable":true,"kev":{"dateAdded":"2025-07-18","dueDate":"2025-08-08","knownRansomwareCampaignUse":"Unknown","product":"FortiWeb","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Fortinet","vulnerabilityName":"Fortinet FortiWeb SQL Injection Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"fortinet:fortiweb","products":["fortinet:fortiweb"],"type":"sql_injection","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Overly Permissive CORS Policy in WAGO Device Manager","id":"CVE-2025-25264"},"packages":[],"prev":{"headline":"Command injection in FortiSIEM","id":"CVE-2025-25256"},"products":["FortiWeb"],"published":"2025-07-17","related":[{"cvss_score":9.4,"headline":"Fortinet FortiWeb Path Traversal","id":"CVE-2025-64446","kev_date_added":"2025-11-14","published":"2025-11-14"},{"cvss_score":6.7,"headline":"Fortinet FortiWeb OS Command Injection","id":"CVE-2025-58034","kev_date_added":"2025-11-18","published":"2025-11-18"},{"cvss_score":9.8,"headline":"SQL injection in Fortinet FortiWeb","id":"CVE-2020-29015","kev_date_added":null,"published":"2021-01-14"},{"cvss_score":9.8,"headline":"Memory corruption in Fortinet FortiWeb","id":"CVE-2020-29016","kev_date_added":null,"published":"2021-01-14"},{"cvss_score":9.3,"headline":"Memory corruption in FortiWeb","id":"CVE-2021-42756","kev_date_added":null,"published":"2023-02-16"},{"cvss_score":9.1,"headline":"Auth bypass in FortiWeb","id":"CVE-2025-59719","kev_date_added":null,"published":"2025-12-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["Fortinet"]},"summary":"Unauthenticated attackers can execute unauthorized SQL commands via crafted HTTP requests in FortiWeb, potentially compromising data integrity and confidentiality.","url":"https://insights.sbomify.com/CVE-2025-25257/"}