CVE-2025-25249: 178 FortiGate Devices Compromised by AI-Built PivotC2 RAT

Proactive Security for the AI Era
NodeZero continuously and autonomously pentests infrastructure, identity, cloud, and now web applications, chaining weaknesses across every domain the way real attackers do. Every finding ships with replayable proof showing exploitable business impact, not theoretical risk.
CVE-2025-25249, a CVSS 9.8 pre-authentication heap overflow in FortiOS, has enabled a Russian-speaking cybercrime group to compromise 178 FortiGate firewalls and establish persistent access inside the protected networks behind them. The attacker's target list contains more than 30,000 FortiGate IP addresses still running unpatched firmware eight months after Fortinet published the fix. CISA added CVE-2025-25249 to its Known Exploited Vulnerabilities catalog on September 9, 2026, with a federal remediation deadline of September 12. That deadline is tomorrow.
CVE-2025-25249 is a heap-based buffer overflow in the cw_acd daemon, the CAPWAP (Control and Provisioning of Wireless Access Points) controller service in FortiOS and FortiSwitchManager. The daemon listens on UDP port 5246. An unauthenticated attacker sends a specially crafted CAPWAP request that overflows the heap buffer, redirecting execution into attacker-supplied shellcode. No credentials, no prior reconnaissance, and no user interaction are required. The entire exploit chain executes remotely from a single malformed UDP packet.
The threat actor exploiting CVE-2025-25249 deploys PivotC2, a custom Node.js remote access trojan built specifically for FortiOS. PivotC2 provides an interactive shell on the compromised FortiGate, traffic tunneling through the appliance into the internal network, configuration and credential harvesting, and network scanning of internal ranges. Researchers at SOCRadar assess that the RAT was developed with AI assistance, a capability once reserved for sophisticated nation-state actors now within reach of financially motivated criminals.
Any organization running FortiOS before version 7.6.4, 7.4.9, 7.2.12, or 7.0.18 is vulnerable today. Run execute shell ls /tmp/.i.js from the FortiGate CLI. A file returned confirms active compromise. Apply the patch from Fortinet advisory FG-IR-25-084 before the September 12 deadline. The gap between your firewall firmware version and the patched release is the precise gap this campaign exploits.
How Does CVE-2025-25249 Work?
CVE-2025-25249 is classified as CWE-122 (heap-based buffer overflow) in the cw_acd daemon, a component responsible for managing CAPWAP protocol communication with wireless access points. CAPWAP is a standard protocol defined in RFC 5415 that allows a wireless LAN controller, in this case the FortiGate, to centrally manage connected access points. The cw_acd service listens on UDP port 5246 for incoming CAPWAP control messages.
The overflow occurs when the daemon processes an incoming CAPWAP Discovery Request or Join Request message with a malformed element field that exceeds the allocated heap buffer. The attacker controls the overflow content, which enables a write-what-where primitive sufficient to redirect the instruction pointer into attacker-controlled shellcode. Because the vulnerability is in the CAPWAP listener and not in the web management interface or VPN stack, it bypasses authentication entirely: the service does not validate credentials before processing the message that triggers the overflow.
Fortinet confirmed that patched firmware has been available since early 2026, with the public advisory FG-IR-25-084 published on January 14, 2026. The fix validates the length fields in incoming CAPWAP messages before any heap allocation, preventing the overflow condition. Organizations that applied the January 2026 update are not vulnerable. The 30,000+ devices still on the attacker target list represent deployments where the firmware update was not applied, consistent with the common pattern of delayed patch adoption for network appliances that require scheduled maintenance windows.
If the wireless controller feature is not in use, disabling the CAPWAP listener on UDP 5246 is a viable interim control. This blocks the specific protocol the exploit targets while the organization schedules a firmware update maintenance window. Confirm the listener is disabled by verifying from the FortiGate CLI that no process is bound to UDP 5246 after disabling the wireless controller feature in the system configuration.
PivotC2 RAT: AI-Assisted Post-Exploitation on FortiOS
PivotC2 is a post-exploitation remote access trojan written in Node.js and designed to run persistently within the FortiOS environment on compromised FortiGate appliances. The choice of Node.js for a firewall-targeted RAT is deliberate: FortiOS ships with JavaScript runtime support for certain management automation features, making Node.js execution less anomalous than a compiled ELF binary introduced from outside. The file lands at /tmp/.i.js and is executed by the attacker's shellcode immediately after gaining code execution via CVE-2025-25249.
PivotC2 provides five primary capabilities on a compromised FortiGate. First, an interactive reverse shell channels commands from the attacker's C2 server through an encrypted connection to the firewall. Second, bidirectional traffic tunneling routes the attacker's network traffic through the FortiGate appliance into the internal network behind it, allowing the attacker to reach internal hosts as if they were on the LAN without any additional compromise. Third, a built-in network scanner enumerates internal IP ranges and open ports using the FortiGate's privileged network position. Fourth, the RAT reads and decrypts stored FortiGate configuration files, extracting VPN credentials, administrator account password hashes, and network topology data. Fifth, harvested browser credentials from the system are exfiltrated to the attacker's C2 servers.
SOCRadar's analysis of PivotC2's code structure concludes the RAT was likely developed with AI assistance. Indicators include consistent code formatting across modules, systematic error handling, and documentation comments that follow a pattern inconsistent with the ad-hoc development common in financially motivated cybercrime tools. This represents a confirmed operational use of AI-assisted malware development, not theoretical. The same campaign that deployed PivotC2 also exfiltrated data from two US-based organizations, demonstrating that AI-developed tooling translates directly to confirmed intrusion outcomes.
Attackers use PivotC2's tunneling capability to make subsequent lateral movement appear to originate from the FortiGate appliance itself. Standard endpoint detection tools monitoring internal network traffic trust traffic from the firewall management IP and are unlikely to flag connections originating from it as malicious. Review your SIEM for lateral movement activity attributed to your FortiGate management or LAN IP addresses.
“The threat actors highly likely leveraged AI to develop PivotC2, a sophistication level previously associated with nation-state tooling now confirmed in a financially motivated campaign.”
SOCRadar Threat Intelligence Report, September 2026
Briefings like this, every morning before 9am.
Threat intel, active CVEs, and campaign alerts, distilled for practitioners. 50,000+ subscribers. No noise.
Campaign Scope: 30,000 Targeted, 178 Confirmed Compromised
The CVE-2025-25249 exploitation campaign has been active since at least July 2026. SOCRadar's investigation, triggered by attacker infrastructure analysis, recovered files containing a target list of more than 30,000 FortiGate IP addresses. These are not randomly scanned targets but a curated list of internet-facing FortiGate devices confirmed by the attacker to be running vulnerable FortiOS versions, indicating preparatory reconnaissance before mass exploitation.
Of the 30,000+ targeted devices, 178 confirmed infections have been identified, representing a 0.6% infection rate on the known target list. The highest concentration of compromised devices is in the United States. Two US-based organizations experienced full network intrusions in which attackers used PivotC2's tunneling capability to move beyond the FortiGate into internal networks and exfiltrate data. These are not opportunistic drive-by compromises: the attacker conducted deliberate post-exploitation operations including network mapping, credential harvesting, and data staging before exfiltration.
Attribution assessment identifies the campaign as a Russian-speaking, financially motivated cybercrime operation based on observed tradecraft, C2 infrastructure registration patterns, and operational timing consistent with Eastern European business hours. No nation-state APT designation has been applied. This is the category of threat actor for which ransomware deployment is a common second-stage objective after credential and configuration harvesting from perimeter devices such as the N-able N-central RMM platform exploited in the September 2026 RMM campaign.
The 8-month gap between the January 2026 patch release and the current active exploitation demonstrates a persistent and widely observed pattern: perimeter device firmware updates are systematically deprioritized relative to endpoint and server patching. Network appliances require maintenance windows, vendor support, and configuration validation that extend the patch cycle. Attackers exploit this gap deliberately, selecting CVEs where the patch exists but adoption lags. The same dynamic enabled the Citrix NetScaler authentication bypass campaign earlier this year.
Indicators of Compromise
The following indicators are confirmed in the CVE-2025-25249 PivotC2 exploitation campaign. Block the C2 IP addresses at your perimeter immediately, regardless of whether your FortiGate firmware has been patched, as blocking eliminates the attacker's ability to receive data from any already-compromised devices.
To check for post-exploitation artifacts on your FortiGate, connect to the CLI and run: execute shell ls /tmp/.i.js
A returned file path confirms active PivotC2 infection. Immediately isolate the device from network connectivity, preserve a configuration backup, and initiate your incident response process before applying the firmware patch, as patching alone does not remove an already-installed PivotC2 instance.
Subscribe to unlock Indicators of Compromise
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Sigma Detection Rules for FortiGate CVE-2025-25249 PivotC2
These rules detect two distinct phases of the CVE-2025-25249 attack chain. The network-layer rule targets the CAPWAP exploitation attempt at UDP port 5246 using Zeek connection logs; deploy on any network tap positioned in front of FortiGate appliances. The C2 communication rule detects outbound connections from any internal host to the confirmed PivotC2 command-and-control IPs; deploy on any SIEM receiving network flow data.
Requirements: Zeek network logs with conn.log ingested to SIEM for Rule 1. Network flow data (NetFlow, sFlow, or firewall traffic logs) for Rule 2. Both rules carry status experimental and should be validated against your environment before promotion to a production alert. Block the two C2 IPs at your perimeter firewall regardless of detection rule deployment status.
Subscribe to unlock Sigma Detection Rules
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Subscribe to unlock Sigma Hunt Queries
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Subscribe to unlock WAF Detection Rules
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Remediation: Patch FortiOS and Verify Your Exposure
Apply the patch from Fortinet PSIRT advisory FG-IR-25-084 to the appropriate patched version for your FortiOS branch. The CISA mandatory remediation deadline is September 12, 2026. If you cannot patch before that deadline, apply the interim controls below immediately to reduce exposure while scheduling a maintenance window.
Remediation steps, in order:
Subscribe to unlock Remediation & Mitigation steps
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Why the FortiGate CVE-2025-25249 Gap Matters for Your Organization
The CVE-2025-25249 PivotC2 campaign illustrates the core structural problem with perimeter device patch management: network appliances are consistently patched months later than servers and endpoints, and attackers build target lists specifically from unpatched perimeter device inventory. The January 2026 Fortinet patch was not a surprise. The active exploitation in July 2026 was also not a surprise. The 30,000-device target list is a direct measurement of how many organizations have not yet closed this gap.
FortiGate firewalls are among the most widely deployed network security appliances globally. CVE-2025-25249 is not a complex supply chain attack or a novel technique. It is a straightforward heap overflow in a well-understood protocol component. The PivotC2 RAT that follows is sophisticated, but it only matters if the initial access step succeeds. Applying the January 2026 patch closes the door.
The two confirmed US network intrusions with data exfiltration in this campaign serve as the concrete stakes. A compromised FortiGate is not a single compromised device. It is a compromised network perimeter with a persistent, trusted-position pivot into everything behind it. PivotC2's tunneling capability means that every internal network segment reachable from the FortiGate LAN interface is reachable by the attacker through a channel your internal detection tools will see as originating from your own firewall.
The September 12 CISA deadline applies to federal agencies but the threat is not sector-limited. If your FortiGate is on the 30,000-device target list, the remediation deadline is not September 12. It is before the next automated exploitation attempt runs against your appliance.
The bottom line
CVE-2025-25249 is an 8-month-old FortiOS heap overflow that attackers are still successfully weaponizing because the patch rate is low and the target list is large. The FortiGate CVE-2025-25249 PivotC2 campaign has confirmed 178 compromises and 2 full US network intrusions with data exfiltration. CISA's September 12 deadline applies to federal agencies but the threat is not sector-limited. Patch to FortiOS 7.6.4, 7.4.9, 7.2.12, or 7.0.18 today. If the patch cannot be applied immediately, disable the CAPWAP listener on UDP 5246 and block C2 IPs 146.103.99.177 and 46.151.29.58 at your upstream firewall. Check /tmp/.i.js on every FortiGate appliance in your estate.
This analysis is generic. create a free account to score threats like this against your own stack.
Frequently asked questions
What is CVE-2025-25249 in Fortinet FortiOS?
CVE-2025-25249 is a CVSS 9.8 heap-based buffer overflow vulnerability in the cw_acd daemon component of FortiOS and FortiSwitchManager. The cw_acd process manages CAPWAP (Control and Provisioning of Wireless Access Points) protocol traffic and listens on UDP port 5246. An unauthenticated remote attacker can send a specially crafted CAPWAP request that overflows the heap buffer, allowing arbitrary code or command execution on the FortiGate appliance without any valid credentials. Fortinet disclosed and patched the flaw in January 2026 via advisory FG-IR-25-084.
Is CVE-2025-25249 being actively exploited right now?
Yes. Exploitation of CVE-2025-25249 has been confirmed since at least July 2026. A Russian-speaking financially motivated threat actor has targeted more than 30,000 FortiGate IP addresses using this vulnerability and confirmed infections on 178 devices. Two organizations in the United States suffered full network intrusions with confirmed data exfiltration. CISA added CVE-2025-25249 to its Known Exploited Vulnerabilities catalog on September 9, 2026, confirming active exploitation in the wild. Active exploitation is ongoing as of September 11, 2026.
Which FortiOS versions are vulnerable to CVE-2025-25249?
CVE-2025-25249 affects FortiOS versions before 7.6.4, 7.4.9, 7.2.12, and 7.0.18. FortiSwitchManager versions before 7.2.7 and 7.0.6 are also vulnerable. Organizations must upgrade to one of the patched branches: FortiOS 7.6.4 or later, 7.4.9 or later, 7.2.12 or later, or 7.0.18 or later. The vulnerability is present in any FortiOS deployment where the cw_acd daemon is active and reachable, which includes FortiGate appliances with wireless controller functionality enabled. Review Fortinet advisory FG-IR-25-084 for the complete version matrix.
What is PivotC2 and what can it do on a compromised FortiGate?
PivotC2 is a custom Node.js-based remote access trojan built specifically to operate within the FortiOS environment on FortiGate appliances. Post-exploitation capabilities include an interactive remote shell on the FortiGate, bidirectional traffic tunneling through the compromised appliance into the protected network, internal network scanning, harvesting of stored FortiGate configuration files including decrypted credentials, and exfiltration of network topology data. Researchers at SOCRadar assess that PivotC2 was developed with AI assistance based on its code structure, which explains its sophistication relative to the campaign's assessed financial motivation. The RAT writes itself to /tmp/.i.js on the FortiGate filesystem.
How do I check if my FortiGate has been compromised by PivotC2?
Run the following command from the FortiGate CLI to check for the PivotC2 file artifact: execute shell ls /tmp/.i.js. A file found at this path indicates active compromise. Additionally, check for unexpected outbound connections from the FortiGate management IP to external addresses, particularly 146.103.99.177 and 46.151.29.58, which are confirmed PivotC2 command-and-control servers. Review FortiGate logs for unusual processes, unexpected configuration changes, and any connections from the firewall itself to external non-Fortinet infrastructure.
How do I patch FortiOS for CVE-2025-25249?
Access the Fortinet PSIRT advisory at fortiguard.fortinet.com/psirt/FG-IR-25-084 and download the appropriate patched firmware for your platform: FortiOS 7.6.4, 7.4.9, 7.2.12, or 7.0.18 depending on your branch. Apply the update through the FortiGate management interface under System then Firmware. Schedule a maintenance window to reboot the appliance after the update. If the wireless controller (cw_acd) is not in use in your environment, disable the CAPWAP listener on UDP port 5246 as an interim control until the patch can be applied. Follow Fortinet's upgrade path guidance for your specific hardware model.
Why would attackers target FortiGate firewalls specifically?
FortiGate firewalls sit at the network perimeter and control all traffic entering and leaving an organization. A compromised FortiGate gives attackers a persistent bridgehead inside the network perimeter, access to decrypted traffic that the firewall processes, stored VPN credentials and authentication secrets, and a trusted pivot point for lateral movement that bypasses endpoint detection tools monitoring internal hosts. PivotC2 exploits the CAPWAP tunneling capability to route attacker traffic through the compromised appliance into the internal network, making C2 communications appear to originate from the trusted firewall rather than an external attacker IP.
Is CVE-2025-25249 related to the Fortibleed campaign?
The Fortibleed campaign label has been applied to a broader wave of FortiGate exploitation activity in mid-2026. CVE-2025-25249 is the specific technical vector used in the PivotC2 deployment campaign tracked by SOCRadar and reported by SecurityWeek in September 2026. Both involve mass targeting of internet-facing FortiGate devices. The shared objective is credential harvesting and persistent access to the internal networks behind the compromised firewalls. The CVE-2025-25249 campaign is distinguished by the AI-developed PivotC2 payload and by the confirmed full network intrusions in the United States.
Sources & references
- Fortinet PSIRT Advisory FG-IR-25-084
- SOCRadar: CVE-2025-25249 Exploitation Delivers PivotC2 FortiGate RAT
- CISA KEV: CVE-2025-25249 Added September 9, 2026
- SecurityWeek: Fortinet Code Execution Flaw Exploited in PivotC2 RAT Attacks
- GBHackers: Hackers Exploit Critical FortiGate Flaw to Deploy AI-Assisted PivotC2 RAT
Free resources
Critical CVE Reference Card 2025–2026
25 actively exploited vulnerabilities with CVSS scores, exploit status, and patch availability. Print it, pin it, share it with your SOC team.
Ransomware Incident Response Playbook
Step-by-step 24-hour IR checklist covering detection, containment, eradication, and recovery. Built for SOC teams, IR leads, and CISOs.
Get threat intel before your inbox does.
50,000+ security professionals read Decryption Digest for early warnings on zero-days, ransomware, and nation-state campaigns. Free, daily, no spam.
Unsubscribe anytime. We never sell your data.

Founder & Cybersecurity Evangelist, Decryption Digest
Cybersecurity professional with expertise in threat intelligence, vulnerability research, and enterprise security. Covers zero-days, ransomware, and nation-state operations for 50,000+ security professionals every morning.
