PHP security alert, 21 Oct 2026: PHP2Shell (CVSS 9.2) is being actively exploited. Patched: 8.2.35, 8.3.36, 8.4.27, 8.5.12. PHP 8.1 and older: no official patch. Get help now
Home Solutions Industries Platform About Us Our Team Insights Innovation Lab Contact
Active exploitation reported · Updated 22 Oct 2026

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.

9.2
CVSS v4 severity, rated Critical by the PHP security team
5.4 → 8.5
Every PHP version from 5.4 up to 8.5 is affected, old and new alike
~70%
Share of websites running PHP (W3Techs, cited by Wiz and Forbes)
≤ 8.1
Versions with no official patched release from the PHP project

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 versionStatusOfficial PHP2Shell fix?What to do
8.5.xSupportedYes: 8.5.12Update now and restart workers.
8.4.xSupportedYes: 8.4.27Update now and restart PHP-FPM / Apache / LiteSpeed.
8.3.xSupportedYes: 8.3.36Update now. Plan 8.4 before end of 2027.
8.2.xSecurity fixes onlyYes: 8.2.35Update now. 8.2 ends 31 Dec 2026; schedule 8.4 this quarter.
8.1.xEnd 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.xEnd of lifeNo 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.3Unsupported for yearsNoneIsolate and mitigate. Upgrade CMS or framework together with PHP. Expect code changes.
5.4 to 5.6Unsupported since 2018NoneMigrate 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.

WordPress

Runs on PHP 7.2+, so many sites quietly sit on 7.4 / 8.0
  • 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.

Joomla

Joomla 3 end of life Aug 2023 · Joomla 5 needs PHP 8.1+
  • 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.

Drupal

Drupal 7 end of life Jan 2025 · Drupal 11 needs PHP 8.3+
  • 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.

Magento / Adobe Commerce

Magento 1 unsupported since 2020 · 2.4.8 runs on PHP 8.4
  • 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.

Laravel, Symfony, CodeIgniter

Laravel 8/9, Symfony 4/5, CI3 often pinned to PHP 7.4 / 8.0
  • 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

PHP 5 intranets, portals and ERP add-ons nobody owns
  • 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 also fatal_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 PHPSESSID cookies.
  • 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.

Step 1

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.
Step 3

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.
Step 4

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.

We use your details only to respond to this request. See our privacy policy.

Prefer email?

Put "PHP2Shell" in the subject line and it is routed straight to the response team.

Prefer LinkedIn?

Message the page, or the Codenatives person who shared this with you. We reply from a real account, not a bot.

Who you are talking to
Codenatives, Cupertino CA, with delivery centers in Chennai and across 6 countries

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

What is PHP2Shell? +
PHP2Shell is the name given to two critical memory-safety vulnerabilities in the PHP interpreter, CVE-2026-109618 and CVE-2026-109619, disclosed on 21 October 2026 and rated CVSS 9.2. They allow unauthenticated remote code execution and memory disclosure regardless of which application runs on top, so WordPress, Joomla, Drupal, Magento, Laravel and custom PHP apps are all exposed if the PHP version underneath is vulnerable.
Which PHP versions are affected by PHP2Shell? +
Researchers report that every PHP version from 5.4 up to the current 8.5 is affected by at least one of the two bugs, so new versions are not exempt. Fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older no longer receive updates from the PHP project, so sites on 8.1, 8.0, 7.x or 5.x have no official patched release and must rely on a vendor backport or upgrade.
I am on PHP 7.4 or PHP 5.6. Can I just patch? +
There is no official patched release for PHP 7.4, 7.x or 5.x. The PHP security team published minimal source-level backports for 7.4, 8.0 and 8.1 for teams that compile PHP themselves, and some Linux distributions and long-term-support vendors ship backported packages. If neither applies to you, the only complete fix is to upgrade to a supported PHP version (8.2 or newer, ideally 8.4), which usually means upgrading the CMS or framework and fixing incompatible code at the same time.
Is my WordPress, Joomla or Drupal site vulnerable to PHP2Shell? +
Yes, if it runs on a vulnerable PHP version. Wiz Research demonstrated unauthenticated remote code execution against the latest WordPress, Drupal and Joomla container images. The vulnerability is in PHP itself, not in the CMS, so updating plugins or the CMS alone does not fix it. You must update PHP (or your vendor's PHP package) and restart PHP-FPM, Apache or LiteSpeed.
What can I do right now if I cannot update PHP today? +
Apply the interim mitigations published by the PHP security team: set session.upload_progress.enabled=0 in php.ini or the FPM pool config (not via ini_set), set memory_limit=-1 in a way applications cannot override while enforcing request size limits at the proxy and container level, set fatal_error_backtraces=0 on PHP 8.5, put a WAF in front of the server and only accept traffic from it, and consider maintenance mode for high-risk sites. These reduce exposure but are not a complete fix.
How do I know if my server has already been attacked? +
Look for unusual multipart requests followed by memory-limit errors or repeated HTTP 500 responses, unexpectedly large or malformed PHPSESSID cookies, and unexplained PHP worker restarts. Application logs may show little because the exploit runs below the application layer. If you see these signs, patch, treat the server as potentially compromised and rotate the credentials, API keys and tokens it holds.
How quickly can Codenatives help? +
We run a free exposure check within 24 hours of your request, emergency patching and hardening for supported PHP versions typically within 48 to 72 hours, and legacy PHP 5.x or 7.x upgrades in 2 to 8 weeks depending on the size of the codebase and the CMS or framework involved. We work across US, UK, UAE, Singapore and India time zones.
What does a legacy PHP upgrade involve? +
An inventory of every PHP site, server and version; static analysis of the code for removed functions and behaviour changes between PHP 5, 7 and 8; CMS or framework upgrades such as Joomla 3 to 5, Drupal 7 to 11, Magento 1 to 2 or Laravel 8 to 12; replacing abandoned plugins and extensions; automated regression testing; containerised deployment on a supported PHP version; and a managed patching routine so the next PHP security release is a routine update rather than an emergency.

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.

Stand out with Codenatives
PHP2Shell: actively exploited. PHP 8.1 and older have no official patch. Free 24-hour exposure check →