# CVE-2025-64446: FortiWeb authentication bypass that creates admin accounts

A path traversal plus a trusted request header lets an unauthenticated attacker act as any FortiWeb user, including admin. Exploited since at least early October 2025, with a public proof of concept, and fixed from 8.0.2.

- Vendor: Fortinet, FortiWeb management GUI
- Severity: CRITICAL (CVSS 3.1 9.4)
- Exploited (CISA KEV): yes, added 2025-11-14
- EPSS: 91.1% on 2026-11-23
- Public exploit: yes
- Patch available: yes
- Vendor advisory: FG-IR-25-910, https://fortiguard.fortinet.com/psirt/FG-IR-25-910
- Published: 2025-11-14; updated: 2026-10-10
- Page: https://patchtonight.com/cve/CVE-2025-64446/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiWeb 8.0.0 to 8.0.1 | 8.0.2 or later |
| FortiWeb 7.6.0 to 7.6.4 | 7.6.5 or later |
| FortiWeb 7.4.0 to 7.4.9 | 7.4.10 or later |
| FortiWeb 7.2.0 to 7.2.11 | 7.2.12 or later |
| FortiWeb 7.0.0 to 7.0.11 | 7.0.12 or later |
| FortiWeb 6.4 and 6.3 (unsupported) | No fix. Fortinet lists 6.4 as not affected, but Rapid7 and watchTowr say it is. Migrate to a fixed release |
| FortiAppSec Cloud | Not affected |

## What it is

FortiWeb is Fortinet's web application firewall. Its management interface has two bugs that work together, per watchTowr:

1. **Path traversal.** A request that starts with a valid API path can be walked back to `cgi-bin/fwbcgi`, an internal CGI program.
2. **No real authentication.** `fwbcgi` reads a `CGIINFO` header, Base64-decodes it and trusts the user name and profile inside. An attacker can claim to be the built-in `admin`.

The result: an unauthenticated attacker with network access to the management interface becomes administrator. In the attacks watchTowr saw, they **created new local admin accounts** as persistence. watchTowr calls this a complete compromise of the appliance.

It matters because it was **exploited before the advisory**. Arctic Wolf dates attempts to early October 2025, and Defused published a proof of concept on October 6. Fortinet's advisory came on November 14. Researchers also described it as silently patched: Rapid7 found the public exploit fails on 8.0.2 although the release notes don't mention a fix. A **public exploit and a Metasploit module** exist. Related: [CVE-2025-58034](/cve/CVE-2025-58034/), an authenticated command injection in FortiWeb that Fortinet also reports as exploited.

Scores differ: Fortinet's advisory says CVSS 9.4. Rapid7 quotes 9.1 and some databases list 9.8. CISA lists known ransomware use as unknown.

## Am I affected?

You are affected if you run FortiWeb older than **8.0.2, 7.6.5, 7.4.10, 7.2.12 or 7.0.12**, and an attacker can reach the HTTP or HTTPS management interface. Fortinet says that exposure on an internal-only management interface greatly reduces the risk. It does not remove it for an attacker already inside your network.

**FortiWeb 6.x:** Fortinet lists 6.4 as not affected. Rapid7 confirmed unsupported 6.x versions are vulnerable, and watchTowr lists 6.4.3 and earlier and 6.3.23 and earlier. Independent testing contradicts the vendor here, so **treat 6.x as vulnerable** and plan to move off it.

FortiAppSec Cloud is not affected.

To test an appliance, watchTowr's version check sends a `GET` to the traversal path and expects HTTP 200 when vulnerable and 403 when patched. Their Detection Artefact Generator on GitHub goes further and creates a test user on the target. Only run it on devices you own, and delete the account afterwards.

## What to do

1. **Upgrade** to 8.0.2, 7.6.5, 7.4.10, 7.2.12, 7.0.12 or later. Back up the configuration first.
2. **If you can't upgrade tonight,** Fortinet's workaround is to **disable HTTP and HTTPS on internet-facing interfaces**. You lose remote GUI and API management on those interfaces, so make sure you have another way to administer the device (for example from an internal network).
3. **Take management interfaces off the internet** and restrict them to a management network or VPN, even after patching.
4. **Assume compromise if an unpatched device was reachable** at any time since early October 2025. Fortinet tells customers to review the configuration and logs for unexpected changes or unauthorized administrator accounts. Specifically:
   - List all administrator accounts and remove any you can't explain.
   - Compare the configuration against a known-good backup.
   - If you find unknown admins, rebuild the appliance and rotate every credential and certificate private key stored on it. Upgrading alone does not undo changes an attacker made.
5. **Check what the FortiWeb connects to.** Arctic Wolf expects continued targeting because FortiWeb integrates with other Fortinet products.

## Detection

- **New or unknown administrator accounts**, especially local ones with the `prof_admin` profile. Attackers used `Testpoint`, `trader1` and `trader` (see the indicators below). Rapid7's test exploit created `hax0r`. Any name is possible, so review the whole list.
- **Requests to the traversal path.** Arctic Wolf saw `POST /api/v2.0/cmdb/system/admin%3f/../../../../../cgi-bin/fwbcgi`. watchTowr's sample uses a similar path with a **`CGIINFO` header** and a JSON body that defines a new user. Search web, proxy and packet logs for `fwbcgi` and for `CGIINFO`.
- **Unexpected configuration changes** around those requests.
- **Scanner signatures:** Rapid7 has an unauthenticated vulnerability check (SAFE mode must be off) and a Sigma rule in its Intelligence Hub.
- **Requests from the addresses below.** Check your logs back to early October 2025.

## Sources

- [Fortinet advisory FG-IR-25-910](https://fortiguard.fortinet.com/psirt/FG-IR-25-910)
- [CISA Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-64446)
- [watchTowr Labs technical analysis](https://labs.watchtowr.com/when-the-impersonation-function-gets-used-to-impersonate-users-fortinet-fortiweb-auth-bypass/)
- [watchTowr detection artefact generator](https://github.com/watchtowrlabs/watchTowr-vs-Fortiweb-AuthBypass)
- [Rapid7 analysis](https://rapid7.com/blog/post/etr-critical-vulnerability-in-fortinet-fortiweb-exploited-in-the-wild)
- [Arctic Wolf bulletin](https://arcticwolf.com/resources/blog/cve-2025-64446/)
- [BleepingComputer report with Defused and PwnDefend indicators](https://www.bleepingcomputer.com/news/security/fortiweb-flaw-with-public-poc-actively-exploited-to-create-admin-users/)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
