China-Linked Hackers Exploit PHP2Shell and Fragnesia to Gain Root Access on Firewalls
A China-linked threat actor has chained vulnerabilities in PHP2Shell and the Linux kernel's Fragnesia to achieve root access on firewalls, compromising critical network infrastructure.

A sophisticated threat actor, believed to be operating with a Chinese nexus, has been actively exploiting a combination of vulnerabilities to gain deep access into network firewalls. The attackers are chaining two PHP flaws, identified as CVE-2026-109618 and CVE-2026-109619 (collectively referred to as PHP2Shell), with a privilege escalation bug in the Linux kernel known as Fragnesia (CVE-2026-46300).
The initial phase of the attack involves reconnaissance using the FOFA internet asset search engine to identify potential targets. Researchers observed the attackers filtering for approximately 19,000 internet-facing firewalls from a specific vendor. Further refinement narrowed down the pool to 240 potential targets by filtering for specific geographic locations (US, Japan, Taiwan, and South Korea) and newer PHP releases.
Using an automated tool, the threat actors then deployed the full PHP2Shell-Fragnesia exploit chain against these selected firewalls. This process successfully resulted in the deployment of a PHP root webshell on 24 devices, establishing a persistent backdoor for future access. The primary goal of this stage was to gain initial control and establish a foothold within the network perimeter.
While most compromised devices did not show further malicious activity, two servers belonging to a US government-affiliated organization became the focus of more advanced exploitation. One of these firewalls crashed shortly after the initial compromise. The attackers, demonstrating persistence, launched a second wave of attacks the following day, successfully compromising the second firewall, which was definitively linked to the target organization.
To maintain and expand their access, the attackers established a reverse SSH tunnel. This tunnel was then used to pivot to an internal firewall management server. By exploiting the same PHP2Shell-Fragnesia chain on this management server, the attackers gained access to sensitive configurations, credentials, and settings for all firewalls managed by the organization.
The ultimate objective of the attack was to compromise the organization's internal infrastructure. The threat actors leveraged their access to the management server to decrypt an LDAP service account password, enumerate domain users and groups, conduct password spraying attacks, and attempt to create Active Directory backdoor accounts. This indicates a clear intent to move laterally within the victim's network and potentially exfiltrate data or disrupt operations.
While the cybersecurity firm Dream, which reported on these attacks, has not definitively attributed the activity to a specific named threat actor, the targeting and methodologies strongly suggest a Chinese state-aligned operation. The focus on strategic adversaries and intelligence targets in the Pacific theater further supports this assessment, highlighting the ongoing sophisticated cyber espionage efforts by nation-state actors.
This new report details how the suspected China-nexus threat actor utilized AI-assisted tooling, including Anthropic's Claude Code and AI-powered platforms like aiscan, to develop a custom PHP2Shell exploit. The investigation further reveals the attacker's methodology, which involved using FOFA to identify potential targets and then employing a custom version scanner before executing the PHP2Shell-Fragnesia exploit chain to gain root access on 25 servers, including three within a U.S. government-affiliated network.
This new report details the specific technical steps taken by attackers, including the custom nature of the PHP2Shell implementation and the use of the Fragnesia exploit (CVE-2026-46300) to achieve root privileges. It also provides further insight into the post-compromise activities, such as Active Directory enumeration and attempts to steal SAML signing keys, and notes potential Chinese links based on recovered artifacts and timestamps.
Palo Alto Networks has issued its own advisory confirming that threat actors are actively exploiting the recently patched PHP2Shell vulnerabilities against internet-exposed management interfaces on its devices. The company noted that no special configuration is required to be affected, with the highest risk on PAN-OS when management interface access is permitted from external IP addresses. This confirmation follows earlier reporting by Dream that linked the PHP2Shell flaws, chained with the Fragnesia Linux kernel vulnerability, to attacks against critical network infrastructure.
This new report from The Register details how suspected Chinese attackers chained the PHP2Shell exploit (CVE-2026-109618, CVE-2026-109619) with the Fragnesia Linux kernel exploit (CVE-2026-46300) to compromise 25 servers, including Palo Alto Networks firewalls running PAN-OS 12.1 and 12.2. The attackers achieved root access within 15 minutes via unauthenticated requests, enabling persistent access to networks in the US, Japan, Taiwan, and South Korea, and even launching a full Active Directory attack campaign on one US government-affiliated firewall.
Palo Alto Networks has now confirmed active exploitation of the PHP2Shell vulnerabilities (CVE-2026-109618, CVE-2026-109619) specifically targeting their PAN-OS management interfaces. The vendor's Unit 42 independently verified that attackers are chaining these PHP flaws with a Linux kernel vulnerability (CVE-2026-46300) to achieve root access on compromised devices. Palo Alto stated that approximately 0.02% of its global customer base with publicly exposed management interfaces was impacted, with evidence of webshell placement and credential extraction found on affected systems.
This new report details the specific targeting methodology employed by the China-linked threat actor, including the identification of approximately 19,000 internet-facing PAN-OS firewalls worldwide and a subsequent narrowing of focus to 240 devices based on geographic location and PAN-OS version. It further elaborates on the post-exploitation activities, noting that while most rooted firewalls only received a webshell, two US government-affiliated servers were used to establish persistent access and compromise a third central management server, leading to the theft of credentials and network settings.
This new report details that the PHP2Shell vulnerability has been actively exploited for over a week, with threat actors chaining it with the Fragnesia kernel privilege escalation bug to gain root access on Palo Alto Networks firewalls. While the exploit targets network devices, it has reportedly failed against WordPress installations, despite millions of exposed PHP instances being scanned.