PHP2Shell: what the PHP vulnerabilities expose and how to patch

On November 13, Xerox updated its PHP2Shell bulletin with fixes for affected devices. New firmware for some multifunction printer families includes PHP 8.2.35. The update is a reason to look beyond web servers. PHP can also be embedded in management consoles and network appliances. Guidance checked on November 14, 2026. Xerox security bulletin XRX26-016.

What PHP2Shell can expose

CVE-2026-109618 and CVE-2026-109619 are memory corruption flaws in the way PHP handles web requests. Both scored 9.2 on CVSS 4.0. A successful attack can run code with the PHP process’s privileges without signing in to the application, or expose sensitive data in process memory. The impact depends on those privileges and can extend to site files, application credentials and databases the application can access.

Check WordPress, Drupal and Joomla sites as well as other PHP applications. Updating a CMS and its plugins leaves the PHP runtime on its own update path. The PHP team recommends checking every installation that serves web requests, including PHP-FPM, Apache with mod_php, PHP-CGI, LiteSpeed and containers. PHP security advisory, NHS England.

How the issue developed

  • October 21. The PHP team released security fixes. Cloudflare reported seeing attack attempts against its customers.
  • October 23. PHP issued a separate notice for CVE-2026-115560, an issue with file upload progress under an unusual combination of configuration and application behavior.
  • October 26. CISA added both original vulnerabilities to its Known Exploited Vulnerabilities catalog.
  • November 13. Xerox updated its list of fixes and interim measures for devices with embedded PHP.

Cloudflare’s observations, PHP notice for CVE-2026-115560, NHS England’s summary of the KEV listings.

How to remediate the vulnerabilities

  1. Inventory every PHP runtime that serves web requests. Start with public sites and management interfaces, then check internal services, containers and appliances. The version reported by php -v can differ from the version used by a web server or PHP-FPM pool.
  2. Install the fix for your release branch. The first releases to fix CVE-2026-109618 and CVE-2026-109619 were 8.5.12, 8.4.27, 8.3.36 and 8.2.35. For Linux packages, check the vendor’s advisory for both CVEs. Distribution maintainers can backport fixes to packages with earlier PHP version numbers. Ask your managed hosting provider to confirm coverage, and apply vendor firmware updates for embedded PHP. Move to a supported branch if yours is out of support and your vendor has issued no fix.
  3. Restart the updated processes or redeploy the containers. Check every node behind the load balancer and verify which PHP version is actually serving the site. If you cannot patch a service immediately, restrict internet access or take it offline temporarily. Request filtering can reduce exposure while the update is pending.
  4. Check CVE-2026-115560 separately. The October release for the original two vulnerabilities does not address this issue. Until you have installed a fix confirmed by your vendor, PHP recommends turning off upload progress with session.upload_progress.enabled=0 in the PHP configuration used by the web service. Restart the workers and test your file upload workflows.

PHP team’s remediation guidance, Ubuntu security updates, Guidance for CVE-2026-115560.

What to do if a server may have been compromised

Patching closes the vulnerability. If you see signs of compromise, isolate the host and preserve web server, proxy and PHP logs from before the update. Check for unexpected file changes, new accounts and unusual outbound connections. If you confirm a breach, rebuild the service from a trusted, patched image and rotate credentials and keys the service could access after isolating it.