PHP2Shell: every PHP version, 5.4 through 8.5, is exposed.
Patch today. Get off unsupported PHP this month.
Two critical remote code execution flaws in PHP itself (CVE-2026-109618 / 109619) hit WordPress, Joomla, Drupal, Magento, Laravel and custom PHP alike. On PHP 8.2 or newer there is a patch. On 8.1, 8.0, 7.x or 5.x there is no official fix, and attackers know it. We patch what can be patched and upgrade what cannot.
In brief: what PHP2Shell is and what to do
On 21 October 2026 PHP released emergency fixes for two critical bugs in the PHP interpreter, nicknamed PHP2Shell. An attacker needs no login to run code on your server or read passwords and API keys out of memory. Attacks were seen within hours; the Dutch government took DigiD offline as a precaution.
- PHP 8.2 to 8.5: update to 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 and restart PHP. Today.
- PHP 8.1, 8.0, 7.4: no official release. Mitigate now, upgrade to 8.4 within weeks.
- PHP 7.3 and older, incl. 5.x: nothing is coming. Isolate, then upgrade the application. Time to retire Joomla 3, Drupal 7, Magento 1 and old custom PHP.
- Everyone: check logs, rotate secrets if in doubt, avoid unofficial "fix" plugins.
A bug in PHP itself, not in your CMS
PHP2Shell is a flaw in the engine that runs your code. An attacker sends a crafted request and PHP's worker process reuses freed memory: one bug (CVE-2026-109618) leaks other visitors' passwords, tokens and API keys; the other (CVE-2026-109619) runs the attacker's code. No login, no vulnerable plugin, no user interaction. Wiz Research proved it against fresh installs of WordPress, Drupal and Joomla, and against a plain "Hello World" page.
Why legacy PHP is the real story: the fix exists only for PHP 8.2 and newer. PHP 8.1 left support in December 2025; 8.0, 7.x and 5.x years earlier. Those versions still run a large share of the web because a CMS, an extension or an in-house app was never upgraded. For them there is no update to install, only mitigations and an upgrade. As one research team put it: the oldest versions matter most because they will not be fixed.
Reported to PHP 24 Aug 2026 · details leaked 20 Oct · fixes released and attacks observed 21 Oct · Dutch DigiD and MijnOverheid taken offline as a precaution.
Find your PHP version. Here is your situation.
Run php -v on the server or check your hosting control panel. Don't know, or have many sites? That is what the free exposure check is for.
| Your PHP version | Status | Official PHP2Shell fix? | What to do |
|---|---|---|---|
| 8.5.x | Supported | Yes: 8.5.12 | Update now and restart workers. |
| 8.4.x | Supported | Yes: 8.4.27 | Update now and restart PHP-FPM / Apache / LiteSpeed. |
| 8.3.x | Supported | Yes: 8.3.36 | Update now. Plan 8.4 before end of 2027. |
| 8.2.x | Security fixes only | Yes: 8.2.35 | Update now. 8.2 ends 31 Dec 2026; schedule 8.4 this quarter. |
| 8.1.x | End of life (Dec 2025) | No release. Minimal source backport; some vendor packages. | Mitigate today. Check for a vendor-patched package. Upgrade to 8.4 within weeks. |
| 8.0.x / 7.4.x | End of life | No release. Minimal source backport only. | Mitigate, add a WAF, start the upgrade now. Most WordPress and Laravel code moves to 8.x with modest fixes. |
| 7.0 to 7.3 | Unsupported for years | None | Isolate and mitigate. Upgrade CMS or framework together with PHP. Expect code changes. |
| 5.4 to 5.6 | Unsupported since 2018 | None | Migrate or rewrite. Old Joomla, Drupal 7, Magento 1 and custom mysql_* code live here. A modernization project, not a patch. |
Patched after being probed? Check the log signs below and rotate secrets if unsure.
What PHP2Shell means for your CMS or framework
Updating the CMS does not fix PHP2Shell. Updating PHP does. The catch: old CMS and framework versions cannot run on new PHP, so the two upgrades go together.
WP WordPress
- Managed host: switch PHP to 8.3 or 8.4 in the control panel, then test.
- Blockers are old themes, page builders and abandoned plugins. We fix or replace them and move you to 8.4 with a rollback plan.
J! Joomla
- Joomla 3 sites are stuck on PHP 7 because 3 to 5 is a migration, not an update.
- We rebuild the template, replace extensions and migrate content and users.
D Drupal
- Drupal 7 cannot be lifted onto PHP 8. We migrate D7 to D11 with the Migrate API.
- Drupal 9/10: update Drupal, then PHP to 8.3/8.4.
M Magento / Adobe Commerce
- Payment tokens and customer data sit in worker memory. Highest-impact target.
- Magento 1 to 2 re-platforming, or 2.3/2.4.x upgrade to 2.4.8, with PCI controls documented.
L Laravel, Symfony, CodeIgniter
- Dependency audit, framework major upgrade, Rector-assisted code migration.
- Tests added where none exist; containerised on 8.4 so the next patch is routine.
<? Custom and legacy PHP
- We find every PHP runtime on your estate, then isolate it behind segmentation and a WAF.
- Modernise to 8.4, re-platform, or retire and replace. Your call, with real estimates.
Interim mitigations from the PHP team
These reduce exposure but do not make a vulnerable install safe. Set them in php.ini or the FPM pool (not ini_set()), then restart workers.
session.upload_progress.enabled=0; on PHP 8.5 alsofatal_error_backtraces=0.memory_limit=-1(non-overridable) with request-size and memory limits enforced at the proxy and container instead.- WAF rules from Cloudflare, Fastly and others, with the origin locked to CDN traffic only.
- High-risk site? Maintenance mode is a legitimate option. Avoid unofficial "fix" plugins and forum snippets.
Three signs in your logs
The exploit runs below the application, so WordPress or Laravel logs may show nothing. Check the web server and PHP-FPM logs for:
- Odd multipart requests followed by memory-limit errors or bursts of HTTP 500s.
- Unusually large or malformed
PHPSESSIDcookies. - Unexplained PHP worker restarts.
If you see them: patch, assume compromise, rotate every credential the server holds. Our emergency engagement includes this triage.
Four ways to engage, from a 24-hour check to a full modernization
Engineering-led, 20+ years of modernization, cloud and security work across the US, UK, UAE, Singapore and India. Start with the free check; most people do.
Free exposure check
Within 24 hours- Send us your domains or server list.
- We report PHP version, CMS and risk for each: red / amber / green, with the exact next action.
- No cost, no obligation.
Emergency patch & harden
48 to 72 hours- Patch 8.2+ hosts; deploy vendor backports for 8.1 / 8.0 / 7.4 where they exist.
- Mitigations, WAF and origin lock-down done right.
- Compromise check and credential rotation, plus a report for your CISO or insurer.
Legacy PHP upgrade
2 to 8 weeks- PHP 5.x / 7.x / 8.0 / 8.1 to 8.4, code migration included.
- WordPress, Joomla 3 to 5, Drupal 7 to 11, Magento 1 to 2, Laravel 8 to 12.
- Tested on staging, zero-downtime cutover, fixed-scope price after the check.
Managed PHP security
Ongoing- Monthly PHP, CMS and dependency patching with tested rollbacks.
- End-of-life tracking so you are never on unsupported PHP again.
- Monitoring and an on-call team for the next zero-day.
Get your free PHP2Shell exposure check
Tell us what you run. An engineer, not a sales rep, replies within one business day (usually hours this week) with your red / amber / green status and the next step.
Put "PHP2Shell" in the subject line and it is routed straight to the response team.
Message the page, or the Codenatives person who shared this with you. We reply from a real account, not a bot.
150+ enterprise engagements, 40+ Fortune 500 clients, 98% retention. Engineering, security and cloud under one roof, so patch, upgrade and hosting move are one accountable team.
Questions we are being asked
PHP project security releases of 21 Oct 2026 (php.net) · Wiz Research: PHP2Shell, AI uncovers critical RCE vulnerabilities affecting 70% of the Internet · Patchstack: Major security alert, PHP vulnerable to critical RCE, attacks ongoing · Forbes: Critical PHP security warning issued · BBC News coverage. Version support dates from php.net/supported-versions. CMS end-of-life dates from the WordPress, Joomla, Drupal and Adobe Commerce projects. This page is updated as the situation develops; last update 22 Oct 2026.
Still on PHP 7 or 5?
Let's make this the last PHP emergency you have. ↗
Free exposure check within 24 hours.