PHP2Shell Exposes the Long Patch Tail Across Enterprise Devices

| 5 min read

PHP2Shell’s biggest enterprise risk may be the systems security teams can’t patch on their own. The two flaws, CVE-2026-109618 and CVE-2026-109619, affect PHP, a runtime embedded in web services and a wide range of appliances. Attackers are already exploiting them, but many affected devices depend on vendors for firmware updates—or run software that no longer receives them.

That creates a problem beyond the familiar task of updating exposed web servers. PHP can sit inside NAS devices, firewalls, VPN gateways, printers, building management systems, industrial IoT equipment and human-machine interfaces on operational technology networks. An organization may not know those devices contain PHP, and even a complete inventory won’t make a vendor release a patch faster.

“PHP2Shell has the potential to become a Log4Shell-scale event, but for a different reason,” Sai Molige, senior manager of threat hunting at Forescout, told CSO via email. “With Log4j, the main problem was finding a library you didn’t know you had. With PHP, much of the forgotten infrastructure will be found, but won’t have an upstream fix.”

Finding the runtime is only the first step

The PHP project lists PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 as fixed releases. Those upstream version numbers don’t tell the whole story, though. Linux distributions often package older PHP branches and apply security fixes through their own maintenance process. In those cases, the fix may arrive as a backport, with a package version that doesn’t match the PHP project’s release number.

That mismatch can trip up scanners that rely on version banners. AlmaLinux, for example, has a patched package labeled php-8.3.33-1.el10_2.alma.1, even though the upstream fixed version for PHP 8.3 is 8.3.36. A scanner that compares only the visible version number could report a fixed system as vulnerable. Accurate assessment requires knowing how each distribution handles patches, not simply comparing installed versions with upstream releases.

Support also varies by distribution and release. Ubuntu 22.04 provides a PHP 8.1 update, while the PHP 7.4 fix on Ubuntu 20.04 requires a Pro subscription. Debian 11’s PHP 7.4 fix is available through Freexian extended support. AlmaLinux 8 has backports for retired PHP 7.2, 7.3 and 8.0 branches. Red Hat Enterprise Linux, SUSE, Alpine and Amazon Linux each set their own support boundaries.

Upstream support doesn’t cover every version still in use. PHP 7.4, 8.0 and 8.1 have reached end of life, though developers published minimal source backports to help package maintainers address these flaws. PHP 7.3 and older received no such coverage. VulnCheck found that 42% of 2.6 million internet-facing PHP hosts it scanned ran an end-of-life branch: 27% used PHP 3.x through 7.3, and another 15% ran 7.4, 8.0 or 8.1.

Third-party products add another layer. Their virtual machines, containers and firmware images may bundle a PHP runtime that standard host scans can’t inspect easily. “The problem for most companies is they don’t know where they’re running PHP,” said Eylam Milner, co-founder and CTO at software supply chain security firm Echo. “It’s in base images and in components that bundle their own runtime, and a lot of it is on versions older than 8.2 that are past end of life.”

The exposure extends beyond web servers

There’s no public count of how many enterprise appliances, IoT products or OT devices run vulnerable PHP versions. But internet scans show that the runtime appears in equipment beyond conventional application servers. Flare analyzed 2,220,231 service records from PHP hosts across 224 countries. In a regional sample from one US state, researchers identified NAS devices, VPN gateways, remote access portals, building automation systems and physical access controllers.

Cogent Security’s scan of dozens of Fortune 500 customer environments on the disclosure day found an average of 2,266 affected assets per company. Of those, 926 were actively running the PHP service and 122 were internet-exposed. The assessment covered servers and virtual machines, not hardware appliances or OT devices, so it offers only a partial view of the installed base.

“Organizations still view PHP as a basic application dependency, but it’s often embedded deep inside appliances, hosting platforms, and upstream container images where day-one patching simply isn’t an option,” said Tom Kellermann, vice president of AI security and threat research at TrendAI. “The real battle isn’t just the vulnerability; it’s visibility.”

The response is already complicated by active exploitation. Researchers first reported widespread scanning and attempted attacks, with no confirmed production compromises at that point. CISA later added both flaws to its Known Exploited Vulnerabilities catalog, confirming exploitation in the wild. The vulnerabilities followed two critical PHP disclosures; reports also described attacks progressing from scanning to remote code execution in a honeypot within days of the October 21 patches.

The comparison with Log4Shell is instructive, though the failure points differ. One year after Log4Shell’s December 2021 disclosure, nearly three-quarters of organizations still had vulnerable assets. Log4j also remained a leading attack vector in 2023. PHP2Shell may persist for a different reason: some forgotten runtimes will be hard to locate, and others may never receive an upstream fix.

Containment depends on the product

Security teams need an asset inventory that combines host package data, network scanning and software bills of materials where available. They also need product-specific advisories: a shared PHP flaw can require different actions depending on the appliance, firmware and vendor support status.

Some updates are still in progress. Palo Alto Networks scheduled updates for certain PAN-OS devices, and Siemens told users of its RUGGEDCOM APE1808 industrial network devices—which also run PAN-OS—to follow Palo Alto’s guidance. Delta Controls patched its enteliWEB building management platform, while firmware updates for affected HVAC and room controllers were still pending. Belden confirmed that some NetModule IIoT and industrial routers are vulnerable, with fixes in development.

Where an update isn’t ready, vendors may recommend disabling an embedded web service, restricting management access or isolating a device. Belden and Delta advise disabling the embedded HTTP server until patches become available. NetScaler’s guidance is to restrict its management GUI and API to trusted administrative networks. For industrial equipment that may remain in service for a decade or more, temporary isolation can be necessary while firmware is prepared and deployed.

Web application firewalls can add a layer of detection, but they don’t inspect every multipart upload deeply enough to catch all possible exploit variations. An attacker may pad a request so malicious content falls beyond a WAF’s inspection limit, or bypass the WAF by reaching a backend system directly. AWS, Cloudflare and Microsoft Azure have published PHP2Shell WAF rules, as have some enterprise WAF vendors; these rules can help block known patterns but don’t replace patching or network controls.

Network intrusion prevention systems also have a visibility constraint: HTTPS inspection must be configured for them to examine encrypted traffic. Available detections include Palo Alto Threat ID 543004, Check Point protection CPAI-2026-15172, Cisco Talos Snort rules 67359 and 67360, and Suricata rules 3000650 through 3000652.

Patch the flaw, then check for access

Installing a fix closes the vulnerable path, but it can’t remove an attacker who entered earlier. Steve Povolny, vice president of AI strategy and security research at Exabeam, put the distinction plainly: “Patching closes the door. It doesn’t tell you who is already inside.”

Investigation should draw on web server access and error logs, PHP-FPM records, WAF and reverse-proxy logs, CDN data, endpoint and process telemetry, DNS and outbound connection logs, authentication records, file-integrity monitoring and cloud audit trails. Teams can look for requests using PHP_SESSION_UPLOAD_PROGRESS or a PHPSESSID cookie; multipart form submissions to endpoints that don’t accept uploads; oversized or malformed request bodies; deeply nested field names; repeated POST requests from one source; and sudden increases in HTTP 500 errors.

Host telemetry can reveal what happened after a request reached PHP. Watch for PHP-FPM, Apache or httpd workers launching sh, bash, curl, wget, base64 or other interpreters, as well as unexpected child processes under the web service account, reverse shells and outbound connections from web workers. New or changed PHP files in web roots, upload folders and plugin directories also merit investigation. Researchers at Xint.io have identified abnormal PHPSESSID cookie lengths or corruption, unusually large session files, unexplained worker restarts and segmentation faults as additional warning signs.

PHP2Shell’s operational lesson is concrete: teams need to connect vulnerability data to product ownership, vendor support and network exposure. The organizations best positioned to contain the flaws will be those that can identify embedded runtimes, apply fixes or product-specific mitigations, and search for evidence of access while vendors work through the long patch tail.

Source: William Johnson · www.csoonline.com