FortiOS, FortiProxy, FortiSwitchManager and FortiPAM CLI

CVE-2025-61624: Fortinet CLI path traversal lets an admin write or delete any file

The CLI in FortiOS, FortiProxy, FortiSwitchManager and FortiPAM fails to restrict pathnames, so a privileged admin can write or delete arbitrary files. Fixed in April 2026, marked exploited by Fortinet and added to CISA KEV on 2026-10-16.

Published Updated Fortinet advisory FG-IR-26-122

ExploitedYes, in CISA KEVAdded 16 Oct 2026
Ransomware useNot reportedPer CISA
SeverityMEDIUMCVSS 3.1 5.4
EPSS1.4%Chance of exploitation in 30 days
Public exploitNone reported
FixAvailable

Affected and fixed versions

Product / branchFixed in
FortiOS 7.6.0 to 7.6.47.6.5 or later
FortiOS 7.4.0 to 7.4.97.4.10 or later
FortiOS 7.2, 7.0 and 6.4 (all versions)No fix. Migrate to a fixed release
FortiProxy 7.6.0 to 7.6.47.6.5 or later
FortiProxy 7.4.0 to 7.4.117.4.12 or later
FortiProxy 7.2 and 7.0 (all versions)No fix. Migrate to a fixed release
FortiSwitchManager 7.2.0 to 7.2.77.2.8 or later
FortiSwitchManager 7.0.0 to 7.0.67.0.7 or later
FortiPAM 1.7.01.7.1 or later
FortiPAM 1.0 to 1.6 (all versions)No fix. Migrate to a fixed release
FortiPAM 1.8Not affected

Always confirm against the vendor advisory, which lists every fixed hotfix.

What it is

The command line interpreter in FortiOS, FortiProxy, FortiSwitchManager and FortiPAM does not properly restrict pathnames (CWE-22). An attacker who is logged in as a privileged admin can pass crafted arguments to existing CLI commands and write or delete arbitrary files on the device.

It is not a way in by itself. The attacker needs an admin account first. That is why the score is only medium (CVSS 5.4 with Fortinet’s temporal metrics). It matters now because Fortinet’s advisory marks it as known exploited and CISA added it to the KEV catalog on 2026-10-16, with a federal due date of 2026-10-19. The fix has been out since April 2026.

Fortinet has not said who exploited it, how, or against whom. Expect it to be used after an attacker already holds admin credentials, for example to tamper with files and persist. That is our inference, not a published finding.

Am I affected?

You are affected if the device runs one of these and anyone could log in as a privileged admin:

  • FortiOS 7.6.0 to 7.6.4, 7.4.0 to 7.4.9, or any 7.2, 7.0 or 6.4 release.
  • FortiProxy 7.6.0 to 7.6.4, 7.4.0 to 7.4.11, or any 7.2 or 7.0 release.
  • FortiSwitchManager 7.2.0 to 7.2.7 or 7.0.0 to 7.0.6.
  • FortiPAM 1.7.0, or any 1.0 to 1.6 release.

Not affected: FortiPAM 1.8. The CVE record also says FortiSASE was already remediated and needs no action.

The CVE record lists an admin profile with at least read-write permission as the requirement. Exposed admin interfaces, shared admin accounts and stolen credentials raise the real risk.

The advisory says the whole FortiOS 7.2, 7.0 and 6.4 branches, FortiProxy 7.2 and 7.0, and FortiPAM 1.0 to 1.6 have no fix and must migrate. Check your version in the GUI dashboard or with get system status.

What to do

  1. Upgrade to FortiOS 7.6.5 or 7.4.10, FortiProxy 7.6.5 or 7.4.12, FortiSwitchManager 7.2.8 or 7.0.7, or FortiPAM 1.7.1 or later. The CVE record also lists FortiOS 8.0.0 and FortiPAM 1.8.0. Use Fortinet’s upgrade path tool, since some jumps need intermediate steps.
  2. If you run an unfixed branch (FortiOS 7.2, 7.0, 6.4; FortiProxy 7.2, 7.0; FortiPAM 1.0 to 1.6), migrate to a fixed release. There is no patch for these.
  3. If you can’t upgrade tonight, the advisory names one mitigation: the virtual patch FG-VD-59270.0day in FMWP database update 25.120. The advisory lists no other workarounds.
  4. Reduce who can be an admin. Remove unused admin accounts, restrict administrative access to trusted hosts, and keep the management interface off the internet. This is general hardening, not a Fortinet-listed workaround.
  5. If an unpatched device had admin access exposed, treat it as possibly compromised. Review admin accounts and configuration for changes you did not make, and follow CISA’s Forensics Triage Requirements referenced in the KEV entry. If you find tampering, rebuild on fixed firmware and rotate admin passwords, API keys and any secrets stored on the device.

Detection

Fortinet has published no indicators and no log signatures for this CVE. What is left is general review:

  • Admin logins and CLI activity: look for logins from unfamiliar addresses and for CLI commands you did not expect in the event and audit logs.
  • New or changed admin accounts and changes to trusted-host settings.
  • Unexpected file changes or missing files on the device, since the bug writes or deletes files.
  • Management access from the internet in traffic logs.

If you find anything, send it to Fortinet PSIRT and your incident response team.

Indicators of compromise

Checked the Fortinet advisory and a web search for published indicators. None have been published.

No indicators of compromise have been published for this CVE yet. We'll add them here if the vendor or a researcher releases any. Until then, use the behaviour in Detection.

Sources

Spotted a mistake on this page? Tell us, and we'll fix it.

Page changelog

  • Full analysis published.

KEV status, EPSS score and vendor data refreshed automatically, last on 24 Nov 2026.

Get alerts

A notification when we publish a new analysis or a covered vendor gets a new actively exploited CVE. No account, no email.

Tell us what you think

What do you rely on here, what's missing, which vendor should we add? Every message is read by the editor.

Write to us

contact-us@patchtonight.com