CVE-2025-61624: Authenticated CLI Path Traversal in Fortinet Products
- Vendors
- FortinetSiemens
CVE-2025-61624 is a path traversal vulnerability in the command-line interpreters of Fortinet FortiOS, FortiPAM, FortiProxy, and FortiSwitchManager. An authenticated attacker with an administrator profile and at least read-write permissions can supply specially crafted arguments to existing CLI commands to write or delete files outside the intended restricted directory. Affected releases include FortiOS 7.6.0–7.6.4, 7.4.0–7.4.9, and all 7.2, 7.0, and 6.4 releases; FortiProxy 7.6.0–7.6.4, 7.4.0–7.4.11, and all 7.2 and 7.0 releases; FortiPAM 1.7.0 and all 1.0–1.6 releases; and FortiSwitchManager 7.2.0–7.2.7 and 7.0.0–7.0.6. Observed FortiOS exploitation abused insufficiently sanitized auto-script object names to place scripts outside the intended directory and execute them with root privileges. CL-STA-0954, also tracked as UNC5820, exploited the vulnerability to deploy the PEERSTITCH implant.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Arbitrary file creation, modification, or deletion can compromise appliance integrity, bypass administrative restrictions, and disrupt services. On FortiOS, demonstrated exploitation escalates restricted administrative access to root-level operating-system control, enabling command execution and implant deployment. Observed attackers used this access to deploy PEERSTITCH, which modifies legitimate processes in memory to bypass security checks for selected VPN sessions. These post-exploitation capabilities extend beyond the vulnerability's immediate arbitrary-file-manipulation primitive.
Mitigation
If you can’t patch tonight, do this now.
Restrict HTTPS, SSH, and other administrative access to dedicated management networks and explicitly trusted hosts; disable public administrative access. Minimize accounts with read-write administrative permissions, enforce least privilege, and enable multifactor authentication. Review auto-script objects, administrative accounts, VPN sessions, and configuration changes for unauthorized activity. Where FortiManager compromise is suspected, treat credentials and trust material for its managed devices as exposed. Inspect live appliance memory during compromise assessment because PEERSTITCH can evade disk-only integrity checks.
Remediation
Patch, then assume compromise.
Upgrade FortiOS 7.6 to 7.6.5 or later and FortiOS 7.4 to 7.4.10 or later; FortiProxy 7.6 to 7.6.5 or later and FortiProxy 7.4 to 7.4.12 or later; FortiPAM 1.7 to 1.7.1 or later; and FortiSwitchManager 7.2 to 7.2.8 or later and 7.0 to 7.0.7 or later. Migrate affected FortiOS 6.4, 7.0, and 7.2, FortiProxy 7.0 and 7.2, and FortiPAM 1.0–1.6 installations to corrected release trains using Fortinet's supported upgrade paths. For Siemens RUGGEDCOM APE1808 deployments running FortiGate NGFW, version 7.4.10 is the minimum fix for this vulnerability. Patching does not remove existing implants or invalidate stolen credentials. If compromise is suspected, preserve volatile memory before restarting or upgrading, investigate unauthorized auto-scripts and administrative changes, and rotate exposed credentials, certificates, and cryptographic trust material.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-61624 exploited in the wild?
- Yes. As of Nov 18, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 16, 2026.
- Is there a public exploit for CVE-2025-61624?
- As of Nov 18, 2026, Mallory has found no public exploit for CVE-2025-61624.
- Is there a patch for CVE-2025-61624?
- Upgrade FortiOS 7.6 to 7.6.5 or later and FortiOS 7.4 to 7.4.10 or later; FortiProxy 7.6 to 7.6.5 or later and FortiProxy 7.4 to 7.4.12 or later; FortiPAM 1.7 to 1.7.1 or later; and FortiSwitchManager 7.2 to 7.2.8 or later and 7.0 to 7.0.7 or later. Migrate affected FortiOS 6.4, 7.0, and 7.2, FortiProxy 7.0 and 7.2, and FortiPAM 1.0–1.6 installations to corrected release trains using Fortinet's supported upgrade paths.
- What products are affected by CVE-2025-61624?
- Fortinet Fortios, Fortinet Fortipam, Fortinet Fortiproxy, Fortinet Fortiswitchmanager, and Siemens Ruggedcom Ape1808 Firmware.
- How severe is CVE-2025-61624?
- CVE-2025-61624 has a CVSS v3.1 score of 6.5 (Medium) and an EPSS score of 1.4% (73rd percentile) as of Nov 18, 2026.
Recent activity
73 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.