ZeroHour
GBHackerspublished ()ingested Divya2
Part of a story covered by 4 sources: “Fortinet CVE-2025-25249 Exploited to Deploy PivotC2 RAT; CISA Adds Flaw to KEV Catalog” — merged summary and timeline →

Hackers Exploit Critical FortiGate Flaw to Deploy AI-Assisted PivotC2 RAT

highMalware exploited in the wildimportance 72CVE-2025-25249
AI summary · glm-5.3-flash

SOCRadar says attackers exploit FortiGate CVE-2025-25249 to deploy the PivotC2 Node.js RAT, compromising 178 of 30,000 targeted devices and stealing credentials.

SOCRadar's Threat Research Unit reports active exploitation of CVE-2025-25249, a CVSS 9.8 heap-based buffer overflow in the cw_acd daemon of FortiOS and FortiSwitchManager, via crafted CAPWAP requests to UDP port 5246, compromising at least 178 of 30,000 targeted internet-exposed FortiGate devices since July 2026. The campaign deploys PivotC2, a Node.js RAT that provides interactive shells, SOCKS5/HTTP proxying, port forwarding, network scanning, and automated configuration harvesting that decrypts stored FortiGate credentials, including VPN pre-shared keys, SSL-VPN credentials, and LDAP secrets. Russian-language artifacts, AD enumeration, browser credential theft, RDP enablement, and exfiltration of Exchange .pst files to Wasabi S3 point to a Russian-speaking, financially motivated group; two US organizations confirmed full-network intrusions. Fixes include FortiOS 7.6.4/7.4.9/7.2.12/7.0.18+ and FortiSwitchManager 7.2.7/7.0.6+, plus blocking CAPWAP on internet-facing interfaces.

  • 178 of 30,000 exposed FortiGate devices compromised since July 2026
  • PivotC2 decrypts fsv_sync.dat exposing VPN, SSL-VPN, LDAP secrets
  • US most affected, then Chile, Colombia, UK; two US orgs breached
  • Block UDP 5246-5249; hunt for /tmp/.i.js and Node.js processes
  • Rotate appliance, VPN, LDAP, wireless, and IPSec credentials

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2025-25249
Heap-Based Buffer Overflow in Fortinet FortiOS, FortiSwitchManager, and FortiSASE

CVE-2025-25249 is a heap-based buffer overflow (CWE-122/CWE-787) in Fortinet FortiOS, FortiSwitchManager, and FortiSASE that allows an attacker to execute unauthorized code or commands. It is triggered by sending specially crafted packets to an affected device, causing an out-of-bounds write in heap memory that can be leveraged for code execution. Successful exploitation gives attackers command execution on the appliance; in observed intrusions against FortiGate firewalls, attackers have deployed custom Node.js malware and a post-exploitation RAT dubbed PivotC2. Any organization running the affected Fortinet products is at risk, with internet-facing FortiGate firewalls the primary concern. The flaw was added to CISA's KEV on 2026-09-09, confirming active exploitation in the wild (ransomware use unknown); no public PoC is known.

Do: Upgrade FortiOS, FortiSwitchManager, and FortiSASE in accordance with Fortinet's advisory (specific fixed versions are not listed in the available data), prioritizing internet-exposed FortiGate firewalls per CISA KEV and BOD 26-04 timelines. Hunt for signs of compromise, including custom Node.js malware and the PivotC2 RAT, on FortiGate devices, and review exposure and access logs for admin/SSL-VPN interfaces. If patching is not possible, apply vendor-recommended mitigations or, per BOD 26-04, discontinue use of the exposed product.

9.82% KEV PoC
  • Fortinet FortiOS
  • Fortinet FortiSwitchManager
  • Fortinet FortiSASE
mass≈300,000–500,000 internet-exposed FortiGate/FortiOS devices (plus FortiSASE cloud tenants)

Indicators of compromiseAll →

TypeIndicatorContext
ipv4146.103.99.177Incident responders should search for outbound sessions to 146.103.99.177 and 46.151.29.58, inspect the /tmp/ directory for .i.js fil
ipv446.151.29.58s should search for outbound sessions to 146.103.99.177 and 46.151.29.58, inspect the /tmp/ directory for .i.js files, and review ru
urlhttps://146[s. The initial stager downloads a second-stage payload from hxxps://146[.]103[.]99[.]177:8443/0c5b76709523, decodes it, and XOR-decr
Full article624 words · extracted from gbhackers.com · click to collapse

Threat actors are actively exploiting a critical vulnerability in FortiGate to deploy PivotC2, a Node. js-based remote access trojan (RAT) designed for persistent post-exploitation of FortiOS appliances.

Researchers at SOCRadar’s Threat Research Unit (STRU) reported that this campaign has targeted over 30,000 internet-exposed FortiGate IP addresses and has successfully compromised at least 178 devices since July 2026.

The exploitation targets CVE-2025-25249, a critical heap-based buffer overflow found in the cw_acd daemon used by FortiOS and FortiSwitchManager.

This vulnerability has a CVSS score of 9.8, allowing unauthenticated remote attackers to execute arbitrary code through specially crafted CAPWAP requests sent to UDP port 5246.

Critical FortiGate Flaw

According to SOCRadar’s research, attackers utilize an exploit binary named fortirun.bin, supported by Bash and Python automation scripts, to repeatedly target vulnerable devices. Once successfully exploited, a reverse shell is created, and a Base64-encoded JavaScript stager is executed through Node.js.

The initial stager downloads a second-stage payload from hxxps://146[.]103[.]99[.]177:8443/0c5b76709523, decodes it, and XOR-decrypts it using the key “pivot.” The resulting JavaScript implant is then written to /tmp/.i.js and launched as a background process, enabling it to persist even if the parent Node.js process is terminated.

Deploy AI-Assisted PivotC2 RAT (Source: ROCRadar)
Deploy AI-Assisted PivotC2 RAT (Source: SOCRadar)

PivotC2 is specifically tailored for compromised FortiGate firewalls. It establishes an outbound TLS connection to attacker-controlled infrastructure and uses a compact binary protocol that multiplexes multiple SSH-like channels over a single connection.

The RAT allows operators to gain interactive shells, execute commands, upload and download files, perform SOCKS5 and HTTP proxying, enable local and remote port forwarding, conduct DNS lookups, discover processes, and scan networks based on CIDR. Its tunneling capabilities can repurpose an edge firewall as a pivot point to access otherwise isolated internal networks.

One particularly concerning feature is its automated configuration-harvesting functionality. PivotC2 can collect FortiGate configuration files, including global settings, network interface data, virtual domain configurations, and the device-specific fsv_sync.dat secret file.

The malware’s tooling can reportedly decrypt stored FortiGate credentials, revealing VPN pre-shared keys, SSL-VPN credentials, wireless passwords, LDAP bind secrets, and administrator accounts.

Researchers also identified an –auto mode that automatically executes credential collection, network extraction, and scanning of discovered internal subnets when an infected FortiGate connects to the C2 server.

Comments and operational guidance in the recovered code suggest developers may have used AI tools to speed up the RAT’s development and intrusion workflows.

PivotC2 Architecture (Source: SOCRadar)
PivotC2 Architecture (Source: SOCRadar)

STRU has assessed with high confidence that this operation is linked to a Russian-speaking, financially motivated cybercrime group.

Investigators found Russian-language comments, evidence of Active Directory enumeration, browser credential theft, RDP enablement, reverse SSH relays, Tor-based proxying, and exfiltration of Microsoft Exchange .pst mailbox files to attacker-controlled Wasabi S3 storage.

Two U.S.-based organizations have confirmed they suffered full-network intrusions and data theft. The United States has reported the highest number of PivotC2 infections, followed by Chile, Colombia, and the United Kingdom.

Organizations should immediately upgrade affected systems to FortiOS 7.6.4, 7.4.9, 7.2.12, or 7.0.18, or later releases. FortiSwitchManager users should update to versions 7.2.7 or 7.0.6 and later.

Defenders should restrict CAPWAP exposure by disabling the fabric service on internet-facing interfaces or blocking inbound UDP traffic on ports 5246-5249 with local-in policies. Incident responders should search for outbound sessions to 146.103.99.177 and 46.151.29.58, inspect the /tmp/ directory for .i.js files, and review running Node.js processes.

If you find any PivotC2 artifacts, assume FortiGate configuration data has been compromised and rotate all associated credentials, including those for the appliance, VPN, LDAP, wireless, and IPSec.

Keep your SOC up to date on active malware & phishing within 24h of their emergence. Try ANYRUN to prevent incidents with early detection

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Text extracted automatically; images, tables and formatting may be missing. Original: https://gbhackers.com/hackers-exploit-critical-fortigate-flaw/