The php2shell vulnerabilities CVE-2026-109618 and CVE-2026-109619, published on 21 October 2026, allow unauthenticated remote code execution on servers running PHP. Whether you run a WordPress site, a Laravel application or both, the fix is the same: run a patched PHP version everywhere PHP serves web requests.
This guide walks you through the checks and updates step by step. How we handled it for the sites we host is described in PHP2Shell: what Metanow Cloud did about it.
Fixed versions: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older get no fixes from the PHP project. Interim mitigation for CVE-2026-115560: session.upload_progress.enabled=0.
Step 1: Check which PHP version you run
- On the server:
php -v. Note that the command-line PHP can differ from the version that serves your website. - In WordPress: Tools → Site Health → Info → Server shows the PHP version used by the site.
- In Laravel:
php artisan aboutshows the PHP version of the CLI; check PHP-FPM or your web server for the version that serves requests. - In cPanel: the MultiPHP Manager shows which PHP version each domain uses.
Step 2: Update PHP on WHM/cPanel servers
On cPanel servers PHP comes from EasyApache 4 packages such as ea-php82, ea-php83 or ea-php84. Install the patched builds through your normal system or cPanel updates as soon as they are available, then check the installed package version. In WHM → MultiPHP Manager, check which version every account uses and move accounts off PHP 8.1 and older. Restart PHP-FPM and the web server afterwards.
Step 3: Apply the CVE-2026-115560 mitigation
CVE-2026-115560 is not fixed by the 21 October releases. Until a fix is released, set session.upload_progress.enabled = 0 for every PHP version in use, for example in WHM → MultiPHP INI Editor or in php.ini. Restart PHP-FPM and verify the value with php -i | grep upload_progress.
Step 4: WordPress checks
- Confirm in Site Health that the site now runs a patched PHP version.
- Keep WordPress core, plugins and themes up to date so they work on a supported PHP branch.
- Replace plugins that only run on PHP 8.1 or older.
- Look for unknown administrator accounts and unexpected PHP files, for example in wp-content/uploads.
- Make sure a recent backup exists before and after the update.
Step 5: Laravel checks
- Check the PHP version of the web server process (PHP-FPM), not only the CLI.
- Restart long-running processes so they load the new PHP binary: queue workers (
php artisan queue:restart), Horizon and Octane. - If you deploy with Docker, rebuild your images on a patched base image. FrankenPHP is affected as well.
- Check the PHP constraint in composer.json and run your test suite on the new version.
Step 6: Use a WAF as a stopgap and monitor
According to CISA, a web application firewall may provide some protection until systems are patched, but it does not replace the update. Monitor for PHP worker processes that launch shells or download tools, unexpected outbound connections and new files in web directories. CISA has also published a SIGMA detection rule for this.
If you cannot update right away
CISA advises taking PHP systems offline until they can be patched if you cannot update immediately or still run PHP 8.1 or older. The Canadian Centre for Cyber Security recommends at least isolating internet-facing applications from public networks until a fix is applied.
Sources
- CISA: Critical Vulnerabilities in PHP Require Immediate Patching
- PHP Foundation: Today’s PHP Security Release, and How We’re Strengthening PHP Security
- Canadian Centre for Cyber Security: AL26-026 Critical vulnerabilities impacting PHP
Frequently asked questions
How do I know whether my site is vulnerable?
If PHP serves your site in a version below 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or in PHP 8.1 or older, the site is exposed to php2shell until you update.
Does updating WordPress fix php2shell?
No. php2shell is a flaw in PHP itself. Updating WordPress, plugins or Laravel does not change the PHP version on the server.
Do I need to restart anything after the update?
Yes. PHP-FPM, queue workers, Horizon and Octane keep the old PHP code loaded until they are restarted.
Will session.upload_progress.enabled=0 break my site?
It only disables PHP’s built-in session upload progress tracking, which most sites do not use. Test uploads after the change.
Is my site protected if Metanow hosts it?
Yes. We updated PHP across our entire hosting server, and no client sites were affected.
Want us to check your PHP setup?
We host and maintain WordPress, Laravel and other PHP sites on managed servers. Take a look at our cloud and hosting services or get in touch.
Comments