| |

FortiOS CVE-2025-61624: PEERSTITCH Implant Hides in FortiGate Memory

A FortiOS flaw that Fortinet patched in April and scored as medium severity is now on CISA’s exploited list. Unit 42 found attackers using it to plant PEERSTITCH, an implant that lives only in firewall memory, on the network of a telecom managed service provider. Federal agencies have until Monday. Patching closes the door; it does not show whether someone already came through it.

DataWater Threat Intelligence Desk | Published October 18, 2026 | 13-minute read

Threat level: High (exploited, KEV-listed)

What: CVE-2025-61624, a path traversal flaw (CWE-22) in the command-line interpreter of FortiOS, FortiProxy, FortiPAM and FortiSwitchManager. An attacker with an administrator account can write or delete arbitrary files. Fortinet advisory FG-IR-26-122; CVSS 6.0 from Fortinet, 6.5 from NVD.

Status: Exploited in the wild to deploy the PEERSTITCH implant, per Palo Alto Networks Unit 42. Fortinet’s advisory is marked “Known Exploited.” CISA added it to the Known Exploited Vulnerabilities catalog on Friday, October 16, 2026.

Deadline: Monday, October 19, 2026 for U.S. federal civilian agencies.

Fix: FortiOS 7.6.5 or 7.4.10 or later. FortiOS 7.2, 7.0 and 6.4 get no fix: migrate to a fixed branch. Then hunt firewall memory and configuration for PEERSTITCH, and rotate credentials.

Key takeaways

  • CVE-2025-61624 is now a federal must-fix: CISA added the FortiOS path traversal bug to KEV on October 16, 2026 and set an October 19 deadline, three days later.
  • Every FortiOS 7.2, 7.0 and 6.4 firewall is affected and will not be patched. Fortinet’s fix exists only for 7.6.5+ and 7.4.10+, so older branches need a version migration, not a hotfix.
  • The bug needs admin credentials, and the attackers already had them. Unit 42 says the intruders stole configurations for more than 500 FortiGates from a compromised FortiManager and cracked the stored passwords.
  • PEERSTITCH leaves no file on disk, opens no ports and makes no outbound connections. Unit 42 says it hooks the FortiOS logging and IPsec VPN daemons in memory and lets specially tagged VPN sessions skip default security checks.
  • Disk-based checks will miss it. Hunt for 16 KB read-write-execute memory regions in miglogd and iked, auto-script objects containing ../, and the Unit 42 indicators listed below.
  • A medium CVSS score is not a low priority here. The KEV listing, the stolen-credential context and the stealth of the implant matter more than the 6.0 rating.

Executive Summary

The FortiOS bug is old news to patch teams. The way it was used is not.

Fortinet published advisory FG-IR-26-122 on April 14, 2026, describing a path traversal weakness in the FortiOS command-line interpreter that lets a privileged user write or delete files outside the directories they should reach. Fortinet listed the discovery as internal and rated it medium. Many organizations reasonably queued it behind the run of critical, unauthenticated edge-device bugs this year.

On October 14, Unit 42 published an investigation into a cluster it tracks as CL-STA-0954 (also known as UNC5820). According to that report, the group broke into a telecom managed service provider by exploiting the FortiManager flaw CVE-2024-47575 (“FortiJump”), took configuration data for more than 500 managed FortiGate firewalls, recovered passwords from it, and then used CVE-2025-61624 to install a new implant, PEERSTITCH, on firewalls. Two days later, CISA put CVE-2025-61624 on its KEV list with a Monday deadline.

The bottom line: upgrade or migrate every affected FortiOS device now, but treat that as the start. If your firewalls are managed by a FortiManager that was ever exposed or unpatched for CVE-2024-47575, or if a service provider manages them for you, assume the credentials in those configurations are known to someone else and hunt for PEERSTITCH in memory.

Why This Matters to CISOs and Security Leaders

The attack went through the management layer. Unit 42 describes attackers who did not need a pre-authentication firewall bug. They took the central management system, collected the configuration of every firewall it controlled, and logged in. This is the same pattern DataWater flagged in the FBI and Secret Service FortiBleed advisory earlier this month: stolen FortiGate credentials keep working long after the original breach.

Managed service providers multiply the blast radius. The victim was a provider whose firewalls protected both its own network and its clients’. Unit 42 notes it examined only the provider’s environment, so the impact on downstream customers is unknown. If an MSP or MSSP runs your firewalls, this is a question to put to them in writing this week.

The deadline is tight and lands on a Monday. CISA gave agencies three days, which falls on October 19. Teams already working through this week’s other KEV additions, summarized in our CISA KEV weekly roundup, now have one more edge-device item, and it was added after that roundup went out. The BeyondTrust Remote Support zero-day CVE-2026-102764 was added the same day with the same deadline.

Executive insight

Ask your network team one question: “When did we last rotate the admin, VPN and integration credentials stored in our FortiGate and FortiManager configurations?” If the answer comes before your FortiManager was patched for CVE-2024-47575, patching CVE-2025-61624 does not close your exposure.

The Timeline

Date What happened
September 2024 CL-STA-0954 intrusion at a telecom managed service provider begins through FortiManager CVE-2024-47575, according to Unit 42
Unknown Date CVE-2025-61624 was first exploited. Unit 42 does not say whether it was used before Fortinet’s patch.
April 14, 2026 Fortinet publishes FG-IR-26-122 with fixed FortiOS, FortiProxy, FortiPAM and FortiSwitchManager releases
October 6, 2026 FBI and Secret Service advisory says FortiBleed credential operations against exposed systems are continuing (listed by Unit 42 as related reading)
Wednesday, Oct 14, 2026 Unit 42 publishes its PEERSTITCH research, with indicators, detection checks and a YARA rule
Friday, Oct 16, 2026 CISA adds CVE-2025-61624 to the KEV catalog
Monday, Oct 19, 2026 CISA remediation deadline for federal civilian agencies

PEERSTITCH writes nothing to disk, listens on nothing and calls out to nothing. It just waits inside the firewall’s own VPN process.

Vulnerability & Exploit Analysis

What CVE-2025-61624 is

Fortinet describes CVE-2025-61624 as a path traversal weakness in the command-line interpreter shared by FortiOS, FortiProxy, FortiPAM and FortiSwitchManager. A privileged attacker can pass crafted arguments to existing commands and write or delete files anywhere on the system. NVD’s description specifies an admin profile with at least read-write permissions. Fortinet scores it CVSS v3 6.0 (local attack vector, temporal score 5.4); NVD scores it 6.5 with a network attack vector.

Unit 42 says the vulnerable feature was the system.auto-script engine. By naming an auto-script with a traversal string such as ../../../../setup, the attackers could read and write files as root. They used it to drop the PEERSTITCH loader and to plant a rogue Apache configuration file used for a second command channel.

Affected and fixed versions

Product / branch Vulnerable Fixed in
FortiOS 7.6 7.6.0 – 7.6.4 7.6.5 or later
FortiOS 7.4 7.4.0 – 7.4.9 7.4.10 or later
FortiOS 7.2, 7.0, 6.4 All versions No fix on these branches; migrate to a fixed release
FortiProxy 7.6 7.6.0 – 7.6.4 7.6.5 or later
FortiProxy 7.4 7.4.0 – 7.4.11 7.4.12 or later
FortiProxy 7.2, 7.0 All versions Migrate to a fixed release
FortiPAM 1.7 1.7.0 1.7.1 or later (1.8 not affected)
FortiPAM 1.6 – 1.0 All versions Migrate to a fixed release
FortiSwitchManager 7.2 7.2.0 – 7.2.7 7.2.8 or later
FortiSwitchManager 7.0 7.0.0 – 7.0.6 7.0.7 or later

Interim protections

Fortinet lists no workaround. It does offer a virtual patch, FG-VD-59270.0day, in FortiGuard FMWP database update 25.120. Because exploitation requires an admin session, the practical stopgaps are to remove management access from untrusted networks, cut the number of admin accounts and rotate their passwords. None of these remove an implant that is already running.

What nobody is talking about
A “requires admin” bug gets triaged as low urgency because an attacker who is already an admin can do damage anyway. This case shows why that reasoning fails on edge devices. An admin login permits visible configuration changes; CVE-2025-61624 let the attackers reach root and inject code into the VPN daemon’s memory, beyond the scope of ordinary configuration reviews and disk-focused integrity checks. A reboot may remove volatile code, but it does not invalidate stolen credentials, repair the original management compromise or prove the device was clean. The real risk was never simply “an admin can write a file.” It was “someone with stolen admin credentials can become difficult to see.”

Threat Intelligence Breakdown

Attribution: Unit 42 tracks the activity as CL-STA-0954, which it also lists as UNC5820. It says some post-exploitation behavior overlaps with intrusions attributed to suspected nation-state actors, but it does not name a country or give an overall confidence level. Victim count beyond the one provider is unknown, and CISA’s catalog entry, as reported, does not establish ransomware use.

How the intrusion unfolded, per Unit 42: the attackers registered a rogue virtual device on the provider’s FortiManager through CVE-2024-47575 and pulled a configuration archive covering more than 500 FortiGates. Passwords in those configurations were stored in reversible form, so the attackers recovered them and opened SSL VPN sessions from their own infrastructure. They pushed packet-sniffer settings to downstream firewalls aimed at cleartext HTTP, TFTP, RADIUS and LDAP traffic. They used CVE-2025-61624 to install PEERSTITCH and abused Apache’s ACME certificate module as a backup channel to launch an SSH reverse shell. They then covered their tracks by killing logging daemons, clearing crash logs and deleting the admin accounts and scripts they had created. Unit 42 assesses with medium confidence that they also impersonated FortiManager to pull configurations from other firewalls.

What PEERSTITCH does: Unit 42 describes it as a statically linked ARM64 Linux program written in C that runs once, injects code into /bin/miglogd and /bin/iked using ptrace, and then deletes itself. The injected hooks watch traffic for the markers 8550 and 169.254.0.1 and pass matching tags between the two processes through /proc/<pid>/mem. When the VPN daemon sees a tag, it takes a different code path that Unit 42 says skips default FortiOS security checks. Unit 42 does not detail exactly which checks are bypassed, or explain how the in-memory hooks survive a reboot.

Indicators of compromise (Unit 42, defanged):

Type Indicator Context
IP address 23.240.77[.]233 Hosted installer and PEERSTITCH; ACME and reverse-shell endpoint (ports 8084/8085); also used for SSL VPN sessions
IP address 47.18.167[.]159 Hosted installer and PEERSTITCH; also used for SSL VPN sessions
IP address 45.32.41[.]202 Rogue FortiGate added to FortiManager
IP address 198.199.122[.]22 Rogue FortiGate added to FortiManager
URL hxxp://23.240.77[.]233:8085/pM.js and hxxp://47.18.167[.]159:8085/pM.js Stager downloads
Files lldprx, pM.js, index.js, index.wasm, ipssem.js (staged in /data2/template/) PEERSTITCH injector and its Node.js/WebAssembly delivery chain
Auto-script names ../../../../setup, ../../tmp/apache2/conf/md-acme.conf CVE-2025-61624 path traversal abuse
SHA-256 b9fb0b27ddd59b58d3ae53c7227298a3e0de1e6f868b9429ae21533bb9cd1e70 PEERSTITCH ARM64 ptrace injector
SHA-256 9c4c4436ff5cdf0d6d68f5108031cbf3708a095cde4ef8c09316af7a7110437e Staging script
SHA-256 fc1b10c58057ef9f1f9a1e2a3d4a1c89f43b0ead451398c70ed7a6e0312b36ee Node.js deployment orchestrator
SHA-256 b7ae166fd49a7ecfe6322a80b8aa56d6aa0825d8f5d106dab2e4fb7d14ce15a8 Emscripten WebAssembly module
Memory Anonymous 16,384-byte rwxp regions in miglogd or iked; NOP value 0xAA0003E0 at base+0x106F7B8, base+0x1072E20, base+0x109A570 Signs of PEERSTITCH injection
Crash logs Signal 11 crashes in miglogd, iked or syslogd Possible side effect of injection or log-daemon kills

How to read these: the IP addresses and hashes will age quickly. The durable checks are auto-script objects containing ../, unexpected RWX memory in the logging and VPN daemons, unexplained gaps in firewall logging, and SSL VPN logins from addresses you cannot explain. Unit 42 lists further hashes and a YARA rule in its report.

Enterprise Impact: What’s Actually at Risk

Remote access integrity: If PEERSTITCH lets tagged VPN sessions skip security checks, the firewall can no longer be trusted to enforce who gets in. Treat any device with indicators as compromised and rebuild it rather than patching in place.

Credentials and trust material: Unit 42 stresses that keys and certificates taken from a management platform stay valid until they are rotated. That covers admin passwords, VPN pre-shared keys, LDAP and RADIUS bind accounts, and certificates on every firewall the FortiManager controlled.

Traffic in the clear: The sniffer settings targeted RADIUS, LDAP, TFTP and plain HTTP. Any credential or configuration file that crossed those protocols through an affected firewall should be considered exposed.

Legacy branches: Organizations still running FortiOS 7.2, 7.0 or 6.4 face a migration project, not a patch window. That means change control, compatibility testing and probably hardware review, all against a Monday federal deadline.

Third-party risk: Customers of managed firewall services cannot see their provider’s FortiManager. Contracts and incident-notification clauses become the main control.

What Security Leaders Should Do Next

Today

  1. Inventory every FortiOS, FortiProxy, FortiPAM and FortiSwitchManager device and record the exact build, including lab, DR and branch units.
  2. Preserve evidence before you upgrade: export configurations, event and VPN logs, and run diagnose debug crashlog read. A reboot or upgrade may wipe in-memory evidence.
  3. Search configurations for auto-script objects with ../ in the name, admin accounts you did not create, and sniffer profiles you did not configure.
  4. Upgrade to FortiOS 7.6.5 or 7.4.10 or later (or the matching fixed release for other products). Plan migrations off 7.2, 7.0 and 6.4 now, and enable the FG-VD-59270.0day virtual patch where it is available in the meantime.
  5. Lock down management access to trusted internal hosts only.

Within 48 hours

  1. Hunt the Unit 42 indicators: the four IPs in firewall, VPN and proxy logs; the stager URLs; the file names; and the memory checks on miglogd and iked, with Fortinet TAC support where you lack shell access.
  2. Confirm your FortiManager patch history for CVE-2024-47575 and look for unknown registered devices, including any named “localhost,” or an unexpected “FortiGateCloud” account.
  3. Rotate credentials and trust material on every firewall managed by a FortiManager that may have been exposed: admin passwords, VPN keys, LDAP/RADIUS service accounts and certificates.
  4. Ask your MSP or MSSP in writing whether its FortiManager was exposed to CVE-2024-47575, whether it has checked for PEERSTITCH, and when it will rotate your credentials.

Long-term

  1. Treat management platforms as tier-zero assets. A FortiManager holds the keys to every firewall it touches; isolate and monitor it like a domain controller.
  2. Stop triaging edge-device bugs by CVSS alone. Use KEV status and whether an attacker could plausibly hold the required access.
  3. Add memory and process telemetry for network appliances to your detection plan, and alert on logging daemons stopping or crash logs being cleared.
  4. Retire end-of-fix firmware branches on a schedule, so the next “no fix for this branch” advisory doesn’t turn into an emergency migration.

Get zero-day alerts before they hit the headlines

DataWater’s executive threat briefing: the exploited CVEs, the deadlines and the first three actions to take.

Read more briefings

Winners and Losers

Better positioned More exposed
Teams that applied FG-IR-26-122 fixes in the spring Fleets still on FortiOS 7.2, 7.0 or 6.4, which have no fix
Organizations that rotated firewall credentials after patching FortiManager Organizations that patched FortiManager but never changed the secrets it held
SOCs that alert when appliance logging stops Teams that rely only on disk-based integrity checks
Companies with contractual breach notice from their MSP Managed-firewall customers with no visibility into their provider’s FortiManager

Final Executive Takeaway

CVE-2025-61624 looks like a medium-severity admin bug. In the hands of CL-STA-0954, it became a way to hide inside the firewall.

The patch has existed since April, and the CISA deadline is Monday. The harder work is assuming that stolen management data may already have given someone the admin access this flaw needs, and checking memory, configuration and credentials accordingly.

Patch or migrate now. Hunt memory, not just disk. Rotate every secret your FortiManager ever held.

Frequently Asked Questions

What is FortiOS CVE-2025-61624?

FortiOS CVE-2025-61624 is a path traversal vulnerability in the command-line interpreter of Fortinet FortiOS, FortiProxy, FortiPAM and FortiSwitchManager. An attacker with an administrator account that has read-write permissions can use crafted command arguments to write or delete arbitrary files. Fortinet published the fix in advisory FG-IR-26-122 on April 14, 2026.

Is FortiOS CVE-2025-61624 being exploited?

Yes. Palo Alto Networks Unit 42 reported on October 14, 2026 that a cluster it tracks as CL-STA-0954 used FortiOS CVE-2025-61624 to install the PEERSTITCH implant on FortiGate firewalls. Fortinet’s advisory is marked “Known Exploited,” and CISA added CVE-2025-61624 to its Known Exploited Vulnerabilities catalog on October 16, 2026.

What is the CISA deadline for CVE-2025-61624?

CISA set Monday, October 19, 2026 as the remediation deadline for U.S. federal civilian agencies to address FortiOS CVE-2025-61624, three days after adding it to the KEV catalog. Private organizations are not bound by the date, but it is a useful benchmark for an exploited edge-device flaw.

Which FortiOS versions fix CVE-2025-61624?

Fortinet fixed CVE-2025-61624 in FortiOS 7.6.5 and 7.4.10 and later. FortiOS 7.2, 7.0 and 6.4 are affected in all versions and will not receive a fix, so those devices must migrate to a fixed branch. FortiProxy is fixed in 7.6.5 and 7.4.12, FortiPAM in 1.7.1, and FortiSwitchManager in 7.2.8 and 7.0.7.

What is PEERSTITCH malware?

PEERSTITCH is a FortiGate implant that Unit 42 found being deployed through FortiOS CVE-2025-61624. It is an ARM64 program that injects code into the FortiOS logging daemon (miglogd) and IPsec VPN daemon (iked), then deletes itself. It leaves no file on disk, opens no listening port and makes no outbound connections, and Unit 42 says it lets specially tagged VPN sessions bypass default FortiOS security checks.

How can I detect PEERSTITCH on a FortiGate affected by CVE-2025-61624?

Unit 42 recommends checking for anonymous 16,384-byte read-write-execute memory regions in miglogd and iked, specific NOP patches in those processes, auto-script objects whose names contain “../”, and Signal 11 crashes in miglogd, iked or syslogd. Also search logs for the IPs 23.240.77[.]233, 47.18.167[.]159, 45.32.41[.]202 and 198.199.122[.]22. File-based integrity checks are unlikely to find PEERSTITCH because it runs only in memory.

Who is behind the FortiOS CVE-2025-61624 attacks?

Unit 42 attributes the PEERSTITCH activity exploiting FortiOS CVE-2025-61624 to a cluster it tracks as CL-STA-0954, also known as UNC5820. It notes overlaps with intrusions attributed to suspected nation-state actors but has not named a country or group, and the number of victims beyond one telecom managed service provider is unknown.

Sources

Primary sources: Fortinet PSIRT advisory FG-IR-26-122 (published April 14, 2026); Palo Alto Networks Unit 42, “Unit 42 Uncovers PEERSTITCH, a Stealthy FortiGate Implant” (October 14, 2026); NVD entry for CVE-2025-61624. KEV addition and due date confirmed through The Hacker News and the cvefeed.io KEV tracker; CISA’s catalog page could not be loaded during this review. Additional reporting reviewed: Security Affairs (Integrity Checker detail, single-source). Reflects public reporting as of October 18, 2026.

Similar Posts