Skip to navigation

Threat reportVulnerabilityTL-2026-3921

Fortinet FortiOS/FortiPAM/FortiProxy/FortiSwitchManager CLI Path Traversal Privilege Escalation (CVE-2025-61624) Exploited by UNC5820 to Deploy PEERSTITCH

mediumACTIVE

CVE-2025-61624 is a path traversal flaw (CWE-22) in the FortiOS-family CLI that lets an authenticated administrator write or delete arbitrary files, escalating to root. CISA added it to KEV on 2026-10-16, and Palo Alto Unit 42 reports UNC5820 (CL-STA-0954) used it to deploy the memory-resident PEERSTITCH implant on FortiGate firewalls. First disclosed .

By

Key facts

IdentifiersTL-2026-3921, CVE-2025-61624, CVE-2024-47575, CVE-2024-26008
Also known asFG-IR-26-122, PEERSTITCH, FortiJump (initial access CVE-2024-47575)
SeverityMEDIUM
CVSS6 (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H)
First disclosed
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2025-61624 (added ), CVE-2024-47575 (added )
EPSSCVE-2024-47575: 94.7% (99.8th percentile); CVE-2025-61624: 1.3% (71.4th percentile); CVE-2024-26008: 0.5% (47.5th percentile)
Affected productsFortinet FortiOS; Fortinet FortiPAM; Fortinet FortiProxy; Fortinet FortiSwitchManager; Siemens RUGGEDCOM APE1808 (Fortinet NGFW)
Weaknesses (CWE)CWE-22
AttributionUNC5820, CL-STA-0954 (low confidence)
MalwarePEERSTITCH
MITRE ATT&CK techniquesT1036 Masquerading, T1040 Network Sniffing, T1055 Process Injection, T1059 Command and Scripting Interpreter, T1071 Application Layer Protocol, T1190 Exploit Public-Facing Application, T1548 Abuse Elevation Control Mechanism, T1602 Data from Configuration Repository, T1685 Disable or Modify Tools
MotivationUNKNOWN
Target sectorstelecoms, managed-service-providers, industrial
Target regionsGlobal
Detection rules9 (1 shown free)
Sources9 cited sources

Detection coverage

As of 2026-10-20, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3921 across Splunk SPL, Microsoft KQL and Sigma, covering 22 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: CVE-2025-61624 FortiOS system.auto-script Path Traversal Object Name — Exploitation

Detects creation or modification of a FortiOS system.auto-script object whose name contains '../' traversal sequences, the exploitation primitive for CVE-2025-61624 (CWE-22) used by UNC5820 / CL-STA-0954 to write a script to an arbitrary path and run it as root before deploying PEERSTITCH. Flags the Unit 42 observed names '../../../../setup' and '../../tmp/apache2/conf/md-acme.conf' explicitly. Legitimate auto-script names never contain path separators.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1068, T1548
  • Data sources: fortios_event_log, fortinet_fgt_event, CommonSecurityLog
  • Severity: high
  • Confidence: high

Splunk SPL

index=fortinet sourcetype=fgt_event cfgpath="system.auto-script" | eval auto_script_name=coalesce(cfgobj, cfgattr, msg) | where match(auto_script_name, "[.][.]/") | eval matched_known_name=if(match(auto_script_name, "[.][.]/[.][.]/[.][.]/[.][.]/setup|md-acme[.]conf"), "yes", "no") | stats count min(_time) as first_seen max(_time) as last_seen values(auto_script_name) as auto_script_name values(matched_known_name) as matched_known_name values(user) as admin_user values(ui) as admin_ui values(action) as action by devname | convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

CommonSecurityLog
| where TimeGenerated > ago(24h)
| where DeviceVendor =~ "Fortinet"
| extend RawEvent = strcat(Activity, " ", Message, " ", AdditionalExtensions)
| where RawEvent contains "system.auto-script" and RawEvent contains "../"
| project TimeGenerated, DeviceName, DeviceProduct, SourceUserName, SourceIP, Activity, Message, AdditionalExtensions
| order by TimeGenerated desc

Sigma

title: Fortinet FortiOS system.auto-script Object Name Path Traversal (CVE-2025-61624)
id: 7c1e4a52-3b8d-4f6a-9e21-5d0a8b3c7f10
status: experimental
description: Detects a FortiOS configuration change on system.auto-script where the object name or attribute contains '../' path traversal sequences, the exploitation primitive of CVE-2025-61624 abused by UNC5820 (CL-STA-0954) to gain root before deploying PEERSTITCH.
references:
    - https://fortiguard.fortinet.com/psirt/FG-IR-26-122
    - https://unit42.paloaltonetworks.com/fortimanager-cve-2024-47575-peerstitch-malware/
    - https://nvd.nist.gov/vuln/detail/CVE-2025-61624
author: Threadlinqs Team
date: 2026/10/20
tags:
    - attack.initial-access
    - attack.privilege-escalation
    - attack.t1190
    - attack.t1068
    - attack.t1548
    - cve.2025-61624
logsource:
    product: fortios
    service: event
detection:
    selection_path:
        cfgpath: 'system.auto-script'
    selection_traversal:
        - cfgobj|contains: '../'
        - cfgattr|contains: '../'
    condition: selection_path and selection_traversal
falsepositives:
    - None expected; legitimate auto-script names do not contain path separators
level: high

Known false positives:

  • Administrators who scripted a misformatted auto-script name containing a relative path during testing
  • Configuration management tooling that imports a config with unusual object names; verify the importing admin and source IP

Tuning notes: Adjust index and sourcetype to your Fortinet Add-on for Splunk deployment (fgt_event) and confirm CLI audit logging is forwarded so cfgpath/cfgobj are populated. Any hit should be treated as high priority: pull the full config revision history and the admin session. Exclude nothing by default; if a known test admin triggers it, allowlist by user and ui only.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • FortiOS auto-script Traversal to /setup or Apache md-acme.conf — Targeted Exploitation · unlock with TL Creds
  • PEERSTITCH File Chain Artifacts ([indicator], [indicator], [indicator], [indicator]) — Post-Exploitation · unlock with TL Creds
  • Rogue FortiGate Registration Source IPs to FortiManager (CVE-2024-47575 Stage) — C2 and Config Theft · unlock with TL Creds
  • FortiOS system.auto-script Object Added or Edited via CLI — Exploitation Hunt · unlock with TL Creds
  • Linux Host Fetching PEERSTITCH Chain via curl or wget on TCP 8085 — Post-Exploitation · unlock with TL Creds
  • PEERSTITCH Covert Bridge Marker Traffic [indicator] TCP 8550 — C2 Hunt · unlock with TL Creds
  • PEERSTITCH miglogd/iked Daemon Crash (Signal 11) After Memory Patching — Post-Exploitation · unlock with TL Creds
  • Connections to PEERSTITCH Payload Hosting and ACME Servers ([indicator] / [indicator]) — C2 and Delivery · unlock with TL Creds

Indicators of compromise

As of 2026-10-20, Threadlinqs Intelligence tracks 22 indicators of compromise for TL-2026-3921.

Sample indicators (3 of 22)

  • IP address: 23.240.77[.]233
  • File hash: b9fb0b27ddd59b58d3ae53c7227298a3e0de1e6f868b9429ae21533bb9cd1e70
  • IP address: 47.18.167[.]159

Defanged, TLP:CLEAR. Full set of 22 indicators: unlock with TL Creds.

22 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

CVE-2025-61624 is an Improper Limitation of a Pathname to a Restricted Directory (CWE-22) weakness in the command line interpreter of FortiOS, FortiPAM, FortiProxy and FortiSwitchManager. An authenticated attacker with an admin profile and at least read-write permissions can write or delete arbitrary files through specifically crafted arguments to existing CLI commands, enabling security restriction bypass, data manipulation and elevation of privilege. Fortinet (FG-IR-26-122, published 2026-04-14, internally discovered) scores it CVSS 3.1 6.0 (AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H, temporal 5.4); NVD scores it 6.5 (AV:N). Fortinet lists it as known exploited and ships a virtual patch signature (FG-VD-59270.0day, FMWP db update 25.120).

Unit 42 (published 2026-10-14) documents the exploitation: in the FortiOS CLI system.auto-script engine, '../' traversal sequences in the auto-script object name let the attacker place the script body at any filesystem location and have it run with elevated privileges, giving root on the underlying firewall OS. Observed traversal script names include '../../../../setup' and '../../tmp/apache2/conf/md-acme.conf'.

The activity is attributed to UNC5820 (tracked by Palo Alto Networks as CL-STA-0954), which Unit 42 describes as showing complex tradecraft overlapping with intrusions attributed to suspected nation-state actors. The victim was a telecommunications managed service provider compromised in September 2024 via FortiManager CVE-2024-47575 (FortiJump), which Mandiant reported exploited since 2024-06-27. The actor registered a rogue virtual FortiGate, used CVE-2024-26008 to terminate authentic FortiManager sessions, and exfiltrated configuration data covering more than 500 managed FortiGate firewalls, including credentials, configurations and cryptographic material. After an extended dwell period, CVE-2025-61624 was used to reach root and deploy PEERSTITCH.

PEERSTITCH is an ARM64 statically linked Linux ELF, delivered as a five-file chain (pM.js, index.js, index.wasm, ipssem.js, and the native lldprx binary) fetched from attacker-hosted HTTP servers on port 8085. It is memory-resident with no persistent binary on disk: a one-shot injector patches the running /bin/miglogd and /bin/iked daemons, writing a 1,344-byte payload into a 16,384-byte RWX buffer, applies NOP patches (0xAA0003E0) to suppress tamper checks and a 20-byte trampoline to redirect execution. It builds a covert inter-process bridge between the two daemons via /proc/<pid>/mem, keyed on a marker in traffic (TCP 8550, 169.254.0.1), and opens no listening ports and makes no outbound connections of its own. Unit 42 also describes abuse of the Apache mod_md ACME DNS-01 flow to obtain an SSH reverse shell.

Siemens SSA-975644 (2026-03-10, updated 2026-05-12) separately lists CVE-2025-61624 as affecting RUGGEDCOM APE1808 running Fortinet NGFW 7.4.10. HKCERT (2026-10-20) rates it Medium and states it is exploited in the wild, citing Fortinet and CISA. No public PoC was found in the sources reviewed. BeaconBeagle lookups for the two payload-hosting IPs returned HTTP 404, so no C2 correlation could be recorded.

MITRE ATT&CK techniques by tactic:

Defense Evasion

T1036 Masquerading; T1055 Process Injection

Credential Access

T1040 Network Sniffing

Privilege Escalation

T1055 Process Injection; T1548 Abuse Elevation Control Mechanism

Execution

T1059 Command and Scripting Interpreter

Command and Control

T1071 Application Layer Protocol

Initial Access

T1190 Exploit Public-Facing Application

Collection

T1602 Data from Configuration Repository

defense-impairment

T1685 Disable or Modify Tools

Remediation

Patches

  • FortiOS 7.6.5+, 7.4.10+; migrate off 7.2, 7.0 and 6.4
  • FortiPAM 1.7.1+; migrate off 1.0-1.6 (1.8 unaffected)
  • FortiProxy 7.6.5+, 7.4.12+; migrate off 7.2 and 7.0
  • FortiSwitchManager 7.2.8+, 7.0.7+

Immediate actions

  • Apply Fortinet fixes per FG-IR-26-122 (CISA KEV due date 2026-10-19; BOD 26-04 requires forensic triage)
  • Audit FortiOS configuration revisions and system.auto-script objects for '../' sequences in names
  • Review admin accounts and CLI audit logs for unexpected read-write administrators and auto-script creation
  • Deploy IPS virtual patch FG-VD-59270.0day (FMWP db update 25.120)
  • Block and hunt for the network IOCs listed, including HTTP to ports 8084/8085 on 23.240.77.233 and 47.18.167.159

Workarounds

  • Restrict administrative CLI access to the minimum set of trusted admins
  • On suspected compromise, check running /bin/miglogd and /bin/iked for anonymous 16,384-byte rwxp mappings and 0xAA0003E0 patches, and review 'diagnose debug crashlog read' for Signal 11 crashes in those daemons

Longer-term hardening

  • Restrict CLI and management-plane access to trusted networks and personnel with MFA
  • Enable comprehensive CLI audit logging and forward it to the SIEM
  • Apply file integrity monitoring to critical directories
  • Rotate credentials and cryptographic material for devices managed by any FortiManager suspected compromised

Affected and fixed versions

  • Fortinet — FortiOS
    Vulnerable versions: 6.4 (all); 7.0 (all); 7.2 (all); 7.4.0-7.4.9; 7.6.0-7.6.4
    Fixed in: 7.4.10+; 7.6.5+
  • Fortinet — FortiPAM
    Vulnerable versions: 1.0-1.6 (all); 1.7.0
    Fixed in: 1.7.1+
  • Fortinet — FortiProxy
    Vulnerable versions: 7.0 (all); 7.2 (all); 7.4.0-7.4.11; 7.6.0-7.6.4
    Fixed in: 7.4.12+; 7.6.5+
  • Fortinet — FortiSwitchManager
    Vulnerable versions: 7.0.0-7.0.6; 7.2.0-7.2.7
    Fixed in: 7.0.7+; 7.2.8+
  • Siemens — RUGGEDCOM APE1808 (Fortinet NGFW)
    Vulnerable versions: All versions running Fortinet NGFW below V7.4.11
    Fixed in: Fortinet NGFW V7.4.11 or later

Timeline

  • Mandiant reports UNC5820 exploiting FortiManager CVE-2024-47575 (FortiJump) from as early as this date to exfiltrate FortiGate configuration data.
  • Telecommunications managed service provider compromised via CVE-2024-47575 (September 2024, exact day not stated); rogue virtual FortiGate registered and configuration data for 500+ managed firewalls exfiltrated.
  • Public disclosure of CVE-2024-47575 (FortiJump) and Mandiant's UNC5820 findings.
  • Siemens publishes SSA-975644 listing CVE-2025-61624 for RUGGEDCOM APE1808 (updated 2026-05-12).
  • Fortinet publishes FG-IR-26-122 and the CVE-2025-61624 record (CVSS 6.0, internal discovery); fixes released.
  • Unit 42 publishes analysis linking CVE-2025-61624 exploitation to PEERSTITCH deployment by CL-STA-0954 (UNC5820).
  • CISA adds CVE-2025-61624 to the Known Exploited Vulnerabilities catalog.
  • CISA KEV remediation due date for federal agencies under BOD 26-04.
  • HKCERT bulletin rates the vulnerability Medium and states it is exploited in the wild.

Sources cited

Other reports on CVE-2024-47575

Previous and next in vulnerability

AI-drafted from 9 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats