Safeguard
Vulnerability Analysis•

CVE-2021-26102: Critical Unauthenticated File Deletion in FortiWAN

CVE-2021-26102 lets an unauthenticated attacker delete files on FortiWAN and reset the admin password. Upgrade 4.5 to 4.5.8 or move off 4.4.

Safeguard Security Team
3 min read

CVE-2021-26102 is a critical (CVSS 9.8) relative path traversal in Fortinet FortiWAN that lets an unauthenticated attacker delete files with a crafted POST request, including configuration files, which resets the admin password to default. Upgrade 4.5 to 4.5.8 or later, and migrate off 4.4.

What's affected

  • FortiWAN 4.5.0 through 4.5.7: upgrade to 4.5.8 or above, per Fortinet advisory FG-IR-21-048.
  • FortiWAN 4.4, all versions: Fortinet says to migrate to a fixed release.
  • FortiWAN 5.2 and 4.3 are listed as not affected.
  • The advisory (first published 27 April 2021) rates it Critical, CVSS 9.8, attack type unauthenticated, and Known Exploited No. This matches the record, which also has kev false.
  • The record lists CWE-305 and CWE-22.

How to check if you're exposed

Log in to the FortiWAN administration interface and check the firmware version on the dashboard. Compare with the table above. Also check whether the management interface is reachable from untrusted networks.

If you cannot confirm that the admin password was not reset, treat the device as suspect: check whether your usual admin password still works and review configuration for unexpected changes.

What to do now

  1. Upgrade FortiWAN 4.5.x to 4.5.8 or later, and plan a migration for any 4.4 system.
  2. Restrict management access to a dedicated network and block it from the internet.
  3. After patching, verify administrator credentials and configuration, in case the device was attacked earlier.
  4. Change the admin password to a unique value and review administrator accounts.
  5. Back up the configuration to a protected location, so a deleted file is recoverable.

Why it matters

The record lists CWE-22, path traversal, and CWE-305, authentication bypass by primary weakness. A request containing directory climbing elements could reach files outside the intended location, and the deletion required no login. Removing the right configuration file returns the system to its factory state, including a default admin password, which turns a deletion bug into an account takeover.

Perimeter and network appliances are high value targets because they sit between networks. The safe habits are the same each time: keep management off the internet, patch promptly, and treat any unexplained reset as an incident.

Patching alone does not tell you whether the device was already affected. Compare the running configuration with a backup, look at the admin account list, and check whether passwords you set before are still accepted. If anything looks off, rebuild the configuration from a known good source instead of cleaning it by hand.

Quick check

Is this known to be exploited?

The Fortinet advisory says Known Exploited: No, and the record has kev false. That can change, so check the advisory.

What if I run 4.4?

Fortinet says to migrate to a fixed release, since all 4.4 versions are affected.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

We email you a link to confirm, and only then add you to the list. Unsubscribe in one click. Privacy

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.