— Security Alert
PHP2Shell Exposed a Decade of PHP Releases. What Headless Architecture Changes for Enterprise Risk.
Every PHP release back to version 5.4 is affected, and Amazon recorded an exploitation attempt four days before disclosure. React2Shell showed in December 2025 that modern JavaScript frameworks carry the same class of risk. What separates teams that patched in hours from teams still exposed is architecture: what runs on the public server, who patches each layer, and whether the version still receives fixes.
TL;DR
Every company with PHP websites needs to confirm this week that its servers run the fixed version of PHP, the programming language behind about seven in ten websites whose server language W3Techs can identify. Two serious holes let outsiders take over a web server without a password. Fixes came out on 21 October 2026. Updating WordPress or plugins does not fix them; the PHP software on the server must be updated. Someone tried to use the holes four days before the fix was public.
Ask your web team or host to confirm every site runs the fixed version, and when it was applied. Sites on PHP 8.1 or older get no regular fixes from the PHP project. How a site is built decides how much is exposed and who must fix it. We build headless platforms (the public site kept apart from the content system) and favour them. React had its own serious hole in December 2025, so no technology is immune.
- PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a pair of critical flaws in the PHP engine, patched on 21 October 2026.
- Every PHP release back to version 5.4 is affected, and plugin or CMS updates do not fix the flaws.
- React2Shell (CVE-2025-55182, December 2025) showed that React Server Components, a modern JavaScript framework feature, carried the same class of unauthenticated code execution risk.
- In both events, exposure depended on architecture: what ran on the public server, who patched it, and whether the version still received patches.
- What is PHP2Shell, and is your site affected?
- What should you do in the next 72 hours if you run large PHP sites?
- Why does a flaw in the language runtime matter more than a plugin flaw?
- What is React2Shell, and does it weaken the case for headless?
- Does headless architecture reduce exposure to flaws like these?
- What happened after Drupalgeddon 2 and Log4Shell?
- How fast will attackers move now that AI helps write exploits?
- How can a CMO audit a web estate's exposure in five working days?
- When is it time to plan a modernization, and when is patching enough?
- What should each executive do first?
- How we built this analysis
- Frequently asked questions
- Sources
What is PHP2Shell, and is your site affected?
Any site that serves web requests on an unpatched PHP runtime is in scope for PHP2Shell, whether it runs WordPress, Drupal, Joomla or custom code, and the fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, shipped by the PHP project on 21 October 2026.
PHP2Shell is two flaws, CVE-2026-109618 and CVE-2026-109619. The PHP project's own security advisory rates the severity "Critical 9.2", and Qualys Threat Research describes vulnerabilities "that can allow unauthenticated remote code execution on PHP installations serving web requests."
The flaw sits in the language, not the CMS. Wiz Research writes: "Every PHP version released in the last decade is affected by at least one of these vulnerabilities, going back to version 5.4." Wiz also "demonstrated that it could execute code remotely without authentication on deployments of WordPress (wordpress:latest), Drupal (drupal:latest), and Joomla (joomla:latest)".
Two figures give the scale. W3Techs reports that "PHP is used by 69.2% of all the websites whose server-side programming language we know" (read 27 October 2026). Palo Alto Networks Unit 42 counts "over 22.6 million exposed instances potentially vulnerable" in its own telemetry, a vendor figure for possible exposure, not confirmed compromise.
Amazon Threat Intelligence identified an exploitation attempt dated 17 October 2026, four days before disclosure, and adds that "it's unclear if any of these attempts would have succeeded in real-world systems." Unit 42 has retracted an earlier attribution of initial access to these CVEs. As of 27 October, our sources document attempts, not confirmed successful exploitation.
What should you do in the next 72 hours if you run large PHP sites?
In the next 72 hours, confirm that a patched PHP runtime is serving live traffic on every property you own, because CMS and plugin updates do not fix PHP2Shell, then review logs from 17 October 2026 and rotate credentials wherever the single rule below applies.
- Patch the runtime, then verify it. The Vercel Security Team is direct: "Updating your application code or plugins does not fix these vulnerabilities." Confirm that 8.5.12, 8.4.27, 8.3.36 or 8.2.35 answers production requests on every property, including microsites and campaign sites.
- Treat firewall rules as a bridge. Vercel says its WAF rules "reduce exposure to known exploit patterns, but do not replace patching."
- Investigate from 17 October. Amazon's guidance reads: "For PHP2Shell, investigate from at least starting on October 17th."
- Rotate credentials by one rule. Wiz notes that the exposed memory "may contain passwords, authentication tokens, API keys and certificates belonging to other requests or the server itself." We apply one rule throughout this post (Dotfusion judgment). Rotate credentials on any host not patched within 24 hours of the 21 October release, and on any host showing suspicious activity from 17 October onward, whatever its patch time.
Why does a flaw in the language runtime matter more than a plugin flaw?
A runtime flaw matters more than a plugin flaw because, in the PHP project's own words of 21 October 2026, the attack can trigger "before any application code runs", so the CMS's own hardening does not help and the fix rests with whoever controls the runtime.
The PHP project puts it plainly: "We consider the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs." Security plugins, CMS permissions and hardened themes all live in application code, so none of them stand between the request and the flaw.
A plugin flaw waits on the vendor's update. A runtime flaw waits on whoever controls PHP on the server: an internal infrastructure team, a managed host or a cloud customer. Google Cloud drew that line clearly: "While Google Cloud itself is not vulnerable, users of PHP running on Google Cloud may be vulnerable."
The PHP project deserves credit for the response. Wiz reported the flaws on 24 August 2026, and patched releases for four supported branches shipped on 21 October through coordinated disclosure. The PHP Foundation notes that "security work on PHP itself still depends on a small group of foundation-funded developers and a little volunteer help."
What is React2Shell, and does it weaken the case for headless?
React2Shell strengthens this post's architectural argument rather than weakening it: the flaw (CVE-2025-55182, CVSS 10.0, disclosed 3 December 2025) let an unauthenticated request run code on servers using React Server Components, and React's own advisory put apps whose code used no server outside scope.
The React team wrote: "There is an unauthenticated remote code execution vulnerability in React Server Components." Within hours of disclosure, Amazon "observed active exploitation attempts by multiple China state-nexus threat groups".
Next.js confirmed that "Applications using React Server Components with the App Router are affected when running: Next.js 15.x Next.js 16.x", and that "Next.js 13.x, Next.js 14.x stable, Pages Router applications, and the Edge Runtime are not affected." It told exposed teams to rotate the secrets their applications use.
The scoping line is what matters for architecture. React's advisory says: "If your app's React code does not use a server, your app is not affected by this vulnerability." Google Cloud described the same boundary, with exposure arising "when used for some server-side use cases." Front ends whose React code ran without a server sat outside scope, and those running React Server Components needed a named owner able to patch within hours.
| PHP2Shell | React2Shell | |
|---|---|---|
| Disclosed | 21 Oct 2026 | 3 Dec 2025 |
| Layer affected | PHP engine | React Server Components |
| Severity | CVSS v4.0 9.2 | CVSS 10.0 |
| Login required | No | No |
| Earliest observed activity | Attempt on 17 Oct 2026; success unconfirmed | Exploitation attempts within hours of disclosure |
| Not affected | Sites not running PHP | React apps with no server; Next.js Pages Router, Edge Runtime, 13.x, 14.x stable |
Source: PHP project, 21 Oct 2026; PHP security advisory GHSA-w8hw-w9fx-j79w, 21 Oct 2026; AWS Security Blog, 21 Oct 2026; React team, 3 Dec 2025; Next.js, 3 Dec 2025; AWS Security Blog, Dec 2025. All read 27 Oct 2026.
Does headless architecture reduce exposure to flaws like these?
Headless architecture reduces exposure when it removes code from the public path: a SaaS headless CMS with a read only delivery API and a prebuilt front end leaves less running code on the internet and moves CMS patching to the vendor, though the front end still needs a named patch owner.
Less code on the public path. A Next.js site can be exported as static files. The Next.js documentation says such an export "can be deployed and hosted on any web server that can serve HTML/CSS/JS static assets." The trade off: "Features that require a Node.js server, or dynamic logic that cannot be computed during the build process, are not supported".
Read only content access. In a self hosted PHP CMS, the public site and the CMS, with its credentials, run on the same server (Dotfusion analysis). With a SaaS headless CMS, the public site reads content through a delivery API. Contentful's documentation describes its Content Delivery API as "a read-only API for delivering content from Contentful to apps, websites and other media."
The CMS vendor patches the CMS. In a SaaS model the vendor operates the platform, so CMS patching leaves your team's list. Storyblok, for example, commits to "Continuous scanning, automated dependency updates, and proactive patching of security risks." This is the same shared responsibility line Google Cloud drew for PHP2Shell.
Independent security attestations give buyers a way to check a vendor's controls. Contentful lists ISO/IEC 27001 certification, SOC 2 Type 2, SOC 3, PCI DSS SAQ A and TISAX. Agility CMS states that "Agility is SOC 2 Type 2 Compliant" and "Our infrastructure runs on Microsoft Azure".
Two limits keep the claim accurate. A headless WordPress or decoupled Drupal back end still runs PHP, and the runtime patch in Vercel's bulletin applies to it in full. A server rendered front end, as React2Shell showed, carries its own runtime risk. Headless narrows exposure and moves responsibility; no architecture makes a site immune.
We favour this model because each runtime flaw like PHP2Shell falls on fewer layers your team owns, while the duty to patch what remains stays with you. Our headless versus traditional CMS ROI guide covers the business case.
| Self hosted PHP CMS | Headless SaaS CMS, server rendered front end | Headless SaaS CMS, prebuilt (static) front end | |
|---|---|---|---|
| What answers public requests | PHP runtime plus CMS | JavaScript server plus front end code | Static files on a web server or CDN |
| Exposed to PHP2Shell | Yes, if unpatched | No PHP runtime on your public path when the CMS is SaaS | No |
| Exposed to React2Shell | No | Yes, if using affected server features | Not affected by React2Shell (React: no server) |
| Who patches the CMS | Your team or host | CMS vendor | CMS vendor |
| Content access from the public site | CMS and its credentials on the same server | Read only delivery API (for example, Contentful CDA) | Read only API at build time |
| Trade off | Full server features | Front end patch owner required | Server features unsupported |
Source: Vercel, 21 Oct 2026; React team, 3 Dec 2025; Next.js, 3 Dec 2025; Next.js Docs; Contentful Docs; Storyblok; Dotfusion analysis. All read 27 Oct 2026.
What happened after Drupalgeddon 2 and Log4Shell?
After Drupalgeddon 2 (March 2018) and Log4Shell (December 2021), the risk outlasted the first patch: Drupal issued a second remote code execution fix four weeks later, both Drupal flaws were exploited in the wild, and 2.8% of scanned applications still ran Log4Shell versions about two years after disclosure.
Drupalgeddon 2. The Drupal Security Team rated SA-CORE-2018-002 "Highly critical" on 28 March 2018, warning that it "could result in the site being completely compromised." According to BleepingComputer, "Hackers started exploiting the Drupalgeddon 2 vulnerability only two weeks after patches came out". On 25 April 2018 the team published SA-CORE-2018-004, a highly critical remote code execution advisory, and wrote: "Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild."
By early June 2018, researcher Troy Mursch, as reported by BleepingComputer, had identified 115,070 sites running an outdated Drupal 7 version vulnerable to CVE-2018-7600.
Log4Shell. Log4Shell was disclosed on 9 December 2021 (Veracode). Seven months later, the US Cyber Safety Review Board called Log4j an "endemic vulnerability" and wrote that "vulnerable instances will remain in systems for many years, perhaps a decade or more." About two years on, Veracode, a security vendor, found that "2.8 percent of applications are still using versions of Log4j with the Log4Shell vulnerabilities" and that 38% used some vulnerable version of Log4j.
React2Shell. Exploitation attempts began within hours of the 3 December 2025 disclosure. The React team then published follow on advisories for two denial of service flaws (CVSS 7.5) and a source code exposure flaw (CVSS 5.3), and on 26 January 2026 a further high severity denial of service flaw (CVE-2026-23864, CVSS 7.5). About eleven months after React2Shell, PHP2Shell arrived on a different stack.
Our sources hold no 12 month figure for any of the three events, so we leave those cells empty rather than estimate. Across these three events, time to first exploitation fell from about two weeks in 2018 to hours in 2025 to a recorded attempt before disclosure in 2026, while the unpatched tail stays measured in years.
| Event | Disclosed | First exploitation | About 1 to 2 months | About 7 months | About 24 months |
|---|---|---|---|---|---|
| Drupalgeddon 2 | 28 Mar 2018 | About 2 weeks after patch | Follow on RCE fix 25 Apr 2018, both exploited; 115,070 Drupal 7 sites unpatched at 2 months (researcher Troy Mursch, as reported by BleepingComputer) | No sourced figure | No sourced figure |
| Log4Shell | 9 Dec 2021 | Not stated in our sources | No sourced figure | CSRB: "endemic", "a decade or more" | About two years after Log4Shell (Veracode, December 2023): 2.8% of 38,278 apps on Log4Shell versions; 38% on some vulnerable Log4j |
| React2Shell | 3 Dec 2025 | Within hours | Follow on CVEs, latest 26 Jan 2026 | No sourced figure | Not yet reached |
Source: Drupal Security Team, 28 Mar 2018; Drupal Security Team, 25 Apr 2018; BleepingComputer, 5 Jun 2018; Cyber Safety Review Board, 11 Jul 2022; Veracode, 7 Dec 2023 (Log4Shell disclosure date and two year figures); React team, updated 26 Jan 2026; AWS Security Blog, Dec 2025. All read 27 Oct 2026.
How fast will attackers move now that AI helps write exploits?
Attackers now move in hours: Wiz says one researcher using frontier AI models did in a week what once took a world class team months, and Amazon tells security teams to measure patch timelines for critical internet facing flaws in hours, against about two weeks to first exploitation in 2018.
Wiz Research writes: "With frontier AI models and the right tools, a single researcher completed in a week what previously would have taken a world-class team months of work." The PHP Foundation expects the volume to keep rising: "Tools now find bugs faster than ever, for defenders and attackers alike, and the number of reports will keep growing."
We plan around three scenarios. The time ranges come from the sources cited; the boundaries between scenarios are Dotfusion judgment. Every scenario uses the same rotation rule. Rotate credentials on any host not patched within 24 hours of the 21 October release, and on any host showing suspicious activity from 17 October onward, whatever its patch time.
- Scenario A: Patched in hours. The host runs a supported branch and was patched within 24 hours of 21 October. Review logs for 17 to 21 October, when Amazon recorded an attempt, and rotate credentials if that review shows suspicious activity.
- Scenario B: Patched in days to four weeks. Every patch in this window sits far past the hours Amazon now expects (AWS), and a patch after about two weeks also sits past the time it took exploitation to begin after the 2018 Drupal patch (BleepingComputer). Treat the host as exposed: review its logs from 17 October and rotate its credentials, as Next.js advised for unpatched apps after React2Shell.
- Scenario C: Unsupported or still unpatched. PHP 8.1 and earlier receive no regular upstream fixes (Vercel), and at least 34.4% of PHP sites run major versions 7, 5 or 4 (our sum of W3Techs shares). For any host still unpatched on 27 October, patch now, review logs from 17 October and rotate credentials. For unsupported branches, the options are an LTS vendor backport, an upgrade to a supported branch, or a replatform.
How can a CMO audit a web estate's exposure in five working days?
A CMO can audit a web estate's PHP2Shell exposure in five working days with six checks run alongside the web team: inventory, runtime version, patch owner and speed, verified serving runtime, exposure window review, and support runway, each with a pass condition from a source or labelled as Dotfusion judgment.
Every check is a question the CMO asks and the web team, host or agency answers with evidence.
| Check | Question for the web team | Pass condition | Basis |
|---|---|---|---|
| 1. Inventory | List every public site and microsite, with its owner, platform and host. | A complete list | Dotfusion judgment |
| 2. Runtime version | Which PHP branch runs each property? | PHP 8.2 or later, on 8.2.35, 8.3.36, 8.4.27 or 8.5.12 | PHP project; supported versions |
| 3. Patch owner and speed | Who applies runtime patches, and at what date and hour did the PHP2Shell fix land? | Within hours of 21 October 2026 | AWS |
| 4. Verified serving runtime | Is the patched runtime answering production traffic, beyond staging or plugin updates? | Confirmed on production | Vercel |
| 5. Exposure window review | Were logs reviewed from 17 October, and were credentials rotated under the rotation rule? | Both done | AWS; Wiz; rotation rule is Dotfusion judgment |
| 6. Support runway | How many months until the branch's security support ends? | 12 months or more (threshold is Dotfusion judgment) | PHP project: 8.2 ends 31 Dec 2026; 8.3 ends 31 Dec 2027 |
Source: PHP project, AWS Security Blog, Vercel and Wiz Research as linked, all read 27 Oct 2026; thresholds marked Dotfusion judgment are ours.
Read the scorecard by one rule (Dotfusion judgment). A fail on checks 2 to 5 means fix now, using the 72 hour steps above. A fail on check 6 means a modernization decision is due. A fail on check 3 also counts as a modernization trigger. A property on PHP 8.2 passes check 2 today and fails check 6, because its security support ends on 31 December 2026.
When is it time to plan a modernization, and when is patching enough?
Patching i