# CVE-2025-59718: FortiCloud SSO login bypass gives attackers admin access

A crafted SAML message bypasses FortiCloud SSO login on FortiOS, FortiProxy and FortiSwitchManager, giving unauthenticated admin access. Exploited since December 12, 2025, three days after the fix, and listed in CISA KEV.

- Vendor: Fortinet, FortiOS, FortiProxy and FortiSwitchManager FortiCloud SSO login
- Severity: CRITICAL (CVSS 3.1 9.1)
- Exploited (CISA KEV): yes, added 2025-12-16
- EPSS: 68.1% on 2026-11-23
- Public exploit: none reported
- Patch available: yes
- Vendor advisory: FG-IR-25-647, https://fortiguard.fortinet.com/psirt/FG-IR-25-647
- Published: 2025-12-09; updated: 2026-10-12
- Page: https://patchtonight.com/cve/CVE-2025-59718/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiOS 7.6.0 to 7.6.3 | 7.6.4 or later |
| FortiOS 7.4.0 to 7.4.8 | 7.4.9 or later |
| FortiOS 7.2.0 to 7.2.11 | 7.2.12 or later |
| FortiOS 7.0.0 to 7.0.17 | 7.0.18 or later |
| FortiOS 6.4 | Not affected |
| FortiProxy 7.6.0 to 7.6.3 | 7.6.4 or later |
| FortiProxy 7.4.0 to 7.4.10 | 7.4.11 or later |
| FortiProxy 7.2.0 to 7.2.14 | 7.2.15 or later |
| FortiProxy 7.0.0 to 7.0.21 | 7.0.22 or later |
| FortiSwitchManager 7.2.0 to 7.2.6 | 7.2.7 or later |
| FortiSwitchManager 7.0.0 to 7.0.5 | 7.0.6 or later |

## What it is

FortiCloud SSO lets administrators log in to a Fortinet device with their FortiCloud account. The device checks a SAML message to confirm who is logging in. In this bug the signature on that message isn't verified properly (CWE-347). An **unauthenticated attacker can send a crafted SAML message and log in as an administrator.**

Fortinet rated it critical (CVSS 9.8) and says it is exploited. Attackers moved fast. Arctic Wolf saw malicious SSO logins from December 12, 2025, three days after the fix. Logins mostly targeted the `admin` account and came from several hosting providers. The attackers then exported the configuration through the GUI. Those files hold hashed credentials that can be cracked offline.

Rapid7 later described one intrusion end to end: configuration download, new admin and local accounts, SSL VPN switched on, firewall policies added, then Mimikatz, PsExec and RDP inside the network.

A sibling flaw, CVE-2025-59719, is the same bug in FortiWeb. It has its own fixed versions in the same Fortinet advisory (FortiWeb 8.0.1, 7.6.5, 7.4.10).

## Am I affected?

You're exposed if both are true:

1. **You run an affected version:** FortiOS, FortiProxy or FortiSwitchManager older than the fixed releases in the table above. FortiOS 6.4 is not affected.
2. **FortiCloud SSO admin login is enabled.** It is off in factory defaults. It turns **on** when an administrator registers the device to FortiCare from the GUI and leaves "Allow administrative login using FortiCloud SSO" switched on.

To check, go to **System > Settings** and look at "Allow administrative login using FortiCloud SSO". Many devices were registered this way without anyone noticing, so check every one.

The management interface also needs to be reachable by the attacker. Arctic Wolf advises limiting it to trusted internal users.

## What to do

**1. Upgrade** to FortiOS 7.6.4, 7.4.9, 7.2.12 or 7.0.18, FortiProxy 7.6.4, 7.4.11, 7.2.15 or 7.0.22, or FortiSwitchManager 7.2.7 or 7.0.6, or later. Use Fortinet's upgrade path tool for multi-step jumps.

**2. If you can't upgrade yet, turn off FortiCloud login.** Production impact: admins can't use FortiCloud SSO until you turn it back on. Local admin logins keep working.

In the GUI, set **System > Settings > Allow administrative login using FortiCloud SSO** to Off. Or in the CLI:

```
config system global
set admin-forticloud-sso-login disable
end
```

**3. Restrict management access** to trusted internal addresses. Don't leave the admin GUI open to the internet.

**4. If a device was vulnerable and exposed since December 9, 2025, check it** (below). If you find signs of compromise:

- Assume the configuration was exported. Reset all credentials stored on the device, since Arctic Wolf says exported files hold hashed credentials that can be cracked.
- Delete admin accounts you didn't create, including SSO admins, and review SSL VPN settings and firewall policies for additions.
- Hunt for lateral movement from the firewall, as in the Rapid7 case.

## Detection

- **SSO admin logins from untrusted public IPs.** Kudelski gives this log line as an example:

```
logdesc="Admin login successful" user="admin" ui="sso(199.247.7.82)" method="sso"
```

- **Configuration downloads through the GUI** by an admin from an external address (`action="download"`, "system config file has been downloaded by user admin via GUI"). Rapid7 saw this as log ID 0100032095.
- **New accounts:** log entries such as `Add system.sso-forticloud-admin <name>@forticloud.com-1`, plus unexpected local or system admin accounts.
- **Unplanned changes** to `vpn.ssl.settings` (SSL VPN enabled) and `firewall.policy` (log IDs 0100044546 and 0100044547 in Rapid7's case), made from the GUI by an external address.
- **Connections from the indicators above,** and on internal hosts, Advanced IP Scanner, Advanced Port Scanner and Mimikatz.

## Sources

- [Fortinet advisory FG-IR-25-647](https://fortiguard.fortinet.com/psirt/FG-IR-25-647)
- [Rapid7 incident response findings](https://rapid7.com/blog/post/ve-fortigate-cve-2025-59718-exploitation-incident-response-ir-findings)
- [Kudelski Security analysis](https://kudelskisecurity.com/research/fortinet-forticloud-sso-authentication-bypass-vulnerabilities-actively-exploited-cve-2025-59718-cve-2025-59719)
- [Help Net Security (citing Arctic Wolf)](https://www.helpnetsecurity.com/2025/12/17/fortigate-vulnerability-cve-2025-59718-exploited/)
- [Security Affairs on the CISA KEV listing](https://securityaffairs.com/185765/security/u-s-cisa-adds-a-flaw-in-multiple-fortinet-products-to-its-known-exploited-vulnerabilities-catalog.html)
- [Fortinet upgrade path tool](https://docs.fortinet.com/upgrade-tool)

---

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.
