Skip to content

PHP2Shell Chained With a Linux Kernel Flaw Roots 25 PAN-OS Devices in the US, Japan, Taiwan and South Korea

An attacker chained PHP2Shell with the Fragnesia kernel bug to get root on 24 Palo Alto firewalls and a management server. Palo Alto confirms it. Fixed PAN-OS versions inside.

PHP2Shell Chained With a Linux Kernel Flaw Roots 25 PAN-OS Devices in the US, Japan, Taiwan and South Korea

An attacker chained the PHP2Shell flaws with a Linux kernel bug to take root on Palo Alto Networks firewalls. Dream Research reports that the chain rooted 25 PAN-OS firewall and management servers across the United States, Japan, Taiwan and South Korea, and Palo Alto's Unit 42 says it independently verified the same attacker's tooling and confirmed the reported results. Neither names the victims.

The PHP flaws, CVE-2026-109618 and CVE-2026-109619, were fixed in PHP on 21 October. Both let a single unauthenticated request run code on a PHP server.

How the chain works

PHP2Shell gave the attacker code execution on the firewall's management interface as a low-privilege user. Dream identifies the second step as Fragnesia, CVE-2026-46300 in the kernel's XFRM ESP-in-TCP code, which the attacker used to overwrite the system's PAM rules with pam_permit.so so that su root worked without a password. The whole run, from an unauthenticated HTTPS connection to a persistent root webshell, takes under 15 minutes.

The attacker scanned 19,000 firewalls, rooted 24 and then rooted the 25th machine, an internal management server it reached through a tunnel, with the same chain. Once it had root, it "zeroed in on three specific servers in a US government-affiliated environment". Dream dates the first rooted device to 23 October, two days after the PHP fix shipped.

Dream doesn't name a group. It writes that "multiple indicators point to a Chinese-nexus operation".

How many firewalls are exposed

Unit 42 puts the devices with an affected internet-facing management interface at approximately 0.02% of its global installed base. The advisory says active exploitation has been observed against exposed management interfaces, and the company raised its rating to Critical on 27 October.

The flaws reach PAN-OS on PA-Series and VM-Series firewalls and Panorama through the web UI and XML API.

CISA added Fragnesia to its Known Exploited Vulnerabilities catalogue on 28 October, with a 31 October deadline for US federal agencies.

PHP servers that aren't firewalls

Whether the exploit lands on an ordinary web server depends on how PHP runs there. Tenable got its honeypot exploits working on Apache with mod_php and a single worker, and found that "under FPM, session affinity (PHPSESSID) is required".

PHP's 23 October note lists a related bug, CVE-2026-115560 in session upload progress, unfixed as of that date. The note's mitigation is to set session.upload_progress.enabled=0 in php.ini or the FPM pool, not through ini_set(). Palo Alto says that bug doesn't affect PAN-OS.

What to do