PHP2Shell Explained: Affected PHP Versions and What Website Owners Should Do
PHP2Shell: run PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 or later. How to confirm your host patched, and whether Squarespace, Wix, Webflow or Framer are affected.
PHP2Shell is the name given to two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can let an unauthenticated attacker run code on a server that uses PHP to answer web requests. PHP first fixed them on October 21, 2026 (8.2.35, 8.3.36, 8.4.27 and 8.5.12); as of December 4, 2026, run the November 19 releases (8.2.36, 8.3.37, 8.4.28, 8.5.13 or 8.6.0) or later, or a Linux vendor package with the same fixes. If your site runs on PHP, as almost every WordPress site does, the fix is a patched PHP build on the server and a restart of the PHP workers; updating WordPress core, themes or plugins does not fix it.
Updated December 4, 2026: PHP's November 19 releases, which also fix CVE-2026-115560, are now the builds to ask for. We updated the version advice and packages and added a section on Squarespace, Wix, Webflow and Framer.
Do this now
- List every PHP site you are responsible for, including staging copies and old sites on subdomains.
- Get each one onto a current PHP build. On shared or managed hosting, ask your host: "Is the PHP build serving my site 8.2.36, 8.3.37, 8.4.28, 8.5.13 or later, or a vendor package that fixes CVE-2026-109618, CVE-2026-109619 and CVE-2026-115560?" On your own server, update the package and restart every PHP worker.
- Confirm it with the PHP version your website reports, for example in WordPress Site Health, not only the command line.
- Check for signs of an attack from October 17, 2026, when attack attempts were first seen, not from the day you patched.
- Change passwords and API keys stored on any internet-facing server that ran unpatched PHP, because the flaws can leak server memory.
The rest of this guide explains each step, who is most at risk, what is known about attacks, and what server administrators need to know.
Who is affected
Any site where PHP answers web requests is potentially affected until its PHP build has the October 21 fixes. The bug is in PHP itself, not in the application, so it does not matter whether you run WordPress, Drupal, Joomla, Magento, Laravel or something custom. Researchers at Calif showed attacks working against default or common installs of all of those and more. Logging in is not required, so login pages do not protect you.
How PHP runs on your server changes how exposed you are:
| How PHP is run | Risk | Why |
|---|---|---|
| Apache with mod_php | Highest | A single request can trigger the flaw before your site's own code runs. |
| PHP-FPM (common on modern hosting) | High | Some attack paths are blocked, but one of the two flaws was still shown to work. |
| php-cgi, FrankenPHP, LiteSpeed | Affected | Named as affected in the PHP announcement. |
| PHP used only for scripts and scheduled jobs | Lower | The attack needs a web request, but check that no web server uses the same PHP. |
Older PHP versions are affected too. Researchers trace the vulnerable code back to PHP 5.4, and the PHP project published fixes for the unsupported 7.4, 8.0 and 8.1 branches as source code only, so whether you have them depends on your host or Linux vendor. You may also run PHP without knowing it: the EU's joint statement warns that many products use PHP behind the scenes, such as admin panels on network devices.
Not sure whether your site runs PHP?
- It is WordPress, Drupal, Joomla or Magento. Then it runs PHP. For WordPress,
/wp-login.phpon your domain usually shows a login page. - The response headers say so. An
X-Powered-By: PHP/8.xheader confirms it. Many hosts hide this header, so its absence proves nothing. - Your hosting control panel has a PHP version selector. Then PHP is available to that site.
As a worked example, we ran these checks on polydraft.ai on October 22, 2026: responses come from Cloudflare with no X-Powered-By header, and /wp-login.php returns 404. That matches how the site is built, as a PolyDraft site with no PHP runtime. For your own site, get a definite answer from your host.
Is Squarespace, Wix, Webflow or Framer affected?
If your site is built and hosted on Squarespace, Wix, Webflow or Framer, there is nothing for you to patch: the vendor runs the servers. We found no statement about PHP2Shell on any of the four vendors' security pages or help centers as of December 4, 2026, and we don't guess at what they run on their own servers. Here is what their security pages and help articles say:
| Vendor | What the vendor says |
|---|---|
| Squarespace | "Squarespace doesn't support server-side code, including PHP, Ruby, Ruby on Rails, and SQL." A Security Operations Center monitors for threats 24/7. |
| Wix | Every Wix site "comes with fully managed, enterprise-grade protection," with automated vulnerability scans. Its security page doesn't mention PHP. |
| Webflow | Custom code "can't run server-side languages like Perl, PHP, Python, or Ruby." Security page: "Automated patches and updates with no customer maintenance." |
| Framer | Hosted on Amazon Web Services; Dependabot automatically opens pull requests to update outdated dependencies. No mention of PHP. |
Hosted-builder owners have nothing to patch on the site itself, but PHP scripts they host elsewhere are theirs to check. The Squarespace and Webflow statements mean you can't run PHP in your own code on those platforms; they don't describe what the vendor runs behind the scenes. What stays yours is anything outside the builder: a contact form that posts to a PHP script on another server, an old WordPress blog on a subdomain, or a tool you host yourself needs the same check as any other PHP site. Code that only runs in the visitor's browser, such as a JavaScript widget, is not affected.
How to get the fix

| How the site is hosted | Who installs the patched PHP | What you do |
|---|---|---|
| Shared hosting | The host | Ask support the question in the checklist above and keep the answer. |
| Managed WordPress hosting | The host | Check the host's status page, and ask if it does not name CVE-2026-115560 as well as the two PHP2Shell CVEs. |
| VPS or dedicated server | You, or your server administrator | Install the patched package, then restart PHP-FPM and the web server. |
| Containers | Whoever builds the image | Rebuild on a patched base image and redeploy. |
Two details catch people out. First, restart every PHP worker after updating, or the old version keeps serving requests. Second, Linux distributions often add the fix without changing the version number, so a patched server can still report something like 8.3.6. In that case, check your vendor's security notice for the CVE numbers rather than the version string.
If your site is on PHP 8.2, plan the move now: the PHP project gives 8.2 security fixes only until December 31, 2026. If you run WordPress, our step-by-step guide on how to update PHP in WordPress covers checking the version, backups, plugin compatibility and the common host control panels.
Is it being exploited?
Yes. Attackers were trying before the fix was public. AWS reported attack attempts against its honeypots (decoy servers set up to attract attacks) from October 17, four days before disclosure, and watchTowr, Cloudflare and Datadog reported scanning and attack traffic after release. On October 24, researcher Adel Karimi reported working shells on his honeypots, consistent with CVE-2026-109618. On October 26, the US cybersecurity agency CISA added both CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalog, with an October 29 deadline for US federal agencies. Both were still listed when we checked on December 4. Neither report says how many real sites were broken into, but exploitation is confirmed: patch now, and look for signs of an attack from October 17.
On October 28, CISA also listed a Linux kernel flaw, CVE-2026-46300, that "can be chained with CVE-2026-109618 and CVE-2026-109619 to implant PHP webshells and run commands as root." On your own server, update the kernel too.
CVE-2026-115560: a related session flaw, fixed on November 19
CVE-2026-115560 is a separate PHP flaw in session upload progress handling. PHP described it in a notice on October 23, 2026, and fixed it in the November 19 releases, PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13 (advisory GHSA-658j-r8rw-q6mx). The October 21 releases don't fix it.
It needs an unusual setup: session upload progress is on, and session data written in one format is read back in another, for example when an application switches session.serialize_handler to php at runtime, or two applications with different settings share session storage. With a suitable class in the application to abuse, an attacker could then run code. The fix turns session upload progress off by default, but a setting that explicitly turns it on overrides the new default, so check your configuration. If you set session.upload_progress.enabled=0 for PHP2Shell, keeping it is fine.
The November 19 releases also fixed other flaws, several rated Critical, such as PHP-FPM request smuggling (CVE-2026-129289). Before the release, PHP said: "The issues rated CRITICAL require either non-default configuration or uncommon setups." None of these, including CVE-2026-115560, was in CISA's Known Exploited Vulnerabilities catalog when we checked on December 4, 2026.
If you cannot patch today
Patching is the only complete fix. Until you can:
- Take the site off the public internet if you can, as CISA suggests, or put staging and admin-only sites behind a VPN or IP allowlist.
- Use a web application firewall. Cloudflare added protection for these flaws on October 21, including on its free plan, and Akamai added a rule for its customers. Both say this does not replace the patch.
- Ask your server administrator to apply the interim settings from the PHP advisories, listed in the section below.
For server administrators: packages, interim settings and detection
Patched distribution packages
Package versions keep moving, so confirm against the linked notices. These packages include both the October and November fixes.
| Distribution | Patched package | Notice |
|---|---|---|
| Debian 12 (bookworm) | php8.2 8.2.36-1~deb12u1 | DLA-4916-1 (PHP2Shell first fixed in DLA-4848-1) |
| Debian 13 (trixie) | php8.4 8.4.28-1~deb13u1 | DSA-6641-1 (PHP2Shell first fixed in DSA-6574-1) |
| Ubuntu 24.04 LTS | php8.3 8.3.6-0ubuntu0.24.04.14 | USN-9185-1 (PHP2Shell: USN-8948-1, USN-8948-2) |
| Ubuntu 26.04 LTS and 26.10 | php8.5 8.5.4-0ubuntu1.6 (26.04), 8.5.9-0ubuntu2.2 (26.10) | USN-9185-1 |
| Ubuntu 22.04 LTS | php8.1 8.1.2-1ubuntu2.29 (20.04 and older: through Ubuntu Pro) | USN-9185-1; not affected by CVE-2026-115560, because Ubuntu's PHP2Shell update already disabled session upload progress |
| Red Hat Enterprise Linux 10 | New php and php8.4 packages | RHSA-2026:102300, RHSA-2026:100821 (PHP2Shell: RHSA-2026:87070, RHSA-2026:87071) |
| AlmaLinux 10 | php8.4 8.4.28-1.el10_3 | ALSA-2026:100821 |
Restart every PHP worker after updating, rebuild container images, and verify the version through the web server SAPI (for example a temporary phpinfo() page), because the CLI binary can differ.
Interim settings from the PHP advisories
Keep these in place until you have confirmed that the patched build is the one serving requests.
- CVE-2026-109618: set
memory_limit=-1at the administrator level (for examplephp_admin_value) so applications cannot override it, and limit decoded request body size at the front end and with container memory limits. Do not useRLIMIT_ASorRLIMIT_DATAinstead. - CVE-2026-109619: set
session.upload_progress.enabled=0, and on PHP 8.5 alsofatal_error_backtraces=0. Load these before request parsing and restart workers. The advisory suggests leaving upload progress off after patching if you don't need it. - CVE-2026-115560: if upload progress is explicitly on anywhere, every reader and writer of the same session storage must use the same
session.serialize_handler, even after the update. - WAF: Cloudflare's managed rules have been active since 03:02 UTC on October 21; Akamai App & API Protector uses rule 3000991.
Datadog notes that configuration mitigations "don't fully protect you." Treat them as a bridge to the patch.
What to look for, from October 17
- A PHP or web server worker that launched a shell such as
shorbash. This is the most direct sign of compromise. - Unusually large form submissions, such as a single field name of several megabytes, or control characters in form values.
- Out-of-memory errors that report
Unknown on line 0, and segmentation faults in web server logs. - Unexpected admin users, changed files in the web root, new scheduled tasks and unusual outbound connections.
Background: what PHP2Shell is and how it was found
The two flaws, in plain terms
- CVE-2026-109618: when PHP runs out of memory while reading a request, it can stop with that data only half set up. Cleanup code then treats the half-built data as valid, which an attacker can steer toward running their own code.
- CVE-2026-109619: a PHP worker can keep references to memory that belonged to an earlier request after that memory is freed, and the next request can use them. One route runs through session upload progress, a feature that was on by default until the November 19 releases.
Researchers also showed that the flaws can leak server memory, which may include passwords and keys. That is why the checklist includes changing them.
Why you see different severity scores
The PHP security team's official rating is CVSS 9.2 (on the v4.0 scale), and that is the number to use in reports. The US National Vulnerability Database scores the same flaws 9.8 on the older v3.1 scale, and Red Hat rates its own packages 8.1 because its default setup is harder to attack. The 10.0 you may have seen came from posts that leaked the CVE numbers before release, and it is wrong.
Timeline
The underlying weaknesses are old: the PHP Foundation traces related memory-limit problems to research from 2004, a 2020 bug report and a 2024 security audit that noticed the behaviour but did not prove it could be exploited. In 2026, researchers using AI-assisted tools turned them into a working attack.
- August 5: researcher @lcfr_hax posts a timestamp of a finding on X. Calif later credits them as the first to discover PHP2Shell and build a working exploit.
- August 11: Calif and OpenAI report the issues to PHP independently. Wiz and others later add more attack paths.
- October 17: AWS sees the first attack attempts against its honeypots.
- October 20: the CVE numbers leak online. The PHP Foundation announces the release for the next day.
- October 21, 14:00 UTC: PHP publishes the fixes. CISA issues an alert, and EU agencies including ENISA and CERT-EU publish a joint statement.
- October 21–22: Linux distributions ship patched packages and hosts publish their patch status.
- October 23: PHP publishes an informational notice about CVE-2026-115560.
- November 19: PHP releases 8.2.36, 8.3.37, 8.4.28 and 8.5.13, fixing CVE-2026-115560 and other flaws, and PHP 8.6.0.
- December 31: security support for PHP 8.2 ends.
PHP2Shell is not wp2shell
Search results often mix PHP2Shell up with wp2shell, a different flaw that needs a different fix. wp2shell (CVE-2026-63030, chained with CVE-2026-60137) was in WordPress core, was fixed in WordPress 6.9.5 and 7.0.2 on July 17, 2026 (6.8.6 for the 6.8 branch), and is on CISA's list of known exploited vulnerabilities. You fix it by updating WordPress. A WordPress site needs both fixes.
Other PHP vulnerabilities from the same period
Patching PHP does not cover flaws in the applications that run on it. If you run an online store, check these too:
| Flaw | Affects | Status | Fix |
|---|---|---|---|
| CVE-2026-75650 (StyleSmuggler), CVSS 10.0 | Adobe Commerce and Magento | Known exploited (CISA) | Adobe hotfix APSB26-146 |
| CVE-2026-103849 (BlockStrap), CVSS 10.0 | Adobe Commerce and Magento | Public proof of concept | APSB26-153; verify it applied, as a routine Composer update may not |
| CVE-2026-71362, CVSS 9.1 | Adobe Commerce and Magento | Known exploited (CISA) | APSB26-92 |
| CVE-2026-59944, CVSS 6.1 | Composer (PHP package manager) | Needs a malicious dependency; not remote | Composer 2.10.3 or 2.2.30 |
What PHP2Shell says about website maintenance
Runtimes of every language get bugs. Two lessons from this one matter for a business website. The first is responsibility: a self-hosted PHP site depends on a chain of the PHP runtime, the web server, the CMS, its plugins and theme, and whoever is supposed to update each one. The second is speed: AI-assisted research turned weaknesses known for years into a working attack, and attempts began before the fix was public. Four weeks later, on November 19, PHP shipped another batch of fixes rated up to Critical. Expect that to happen again, with patch deadlines measured in hours.
For many small businesses, the honest answer to "who patches this?" is "nobody in particular." If that describes your site, this is a good time to decide whether to keep operating that stack or move to a setup with fewer moving parts. Our guide to WordPress alternatives compares the options by who maintains what, our Webflow vs WordPress comparison sets the upkeep of a hosted platform against self-hosting, our website migration checklist covers planning and verifying the move, and the website redesign SEO checklist keeps your rankings intact.
PolyDraft is one of those options. It builds a server-rendered Astro site that you deploy into your own Cloudflare account, so there is no PHP runtime or plugin stack for you to patch. That is a smaller maintenance surface, not a promise of zero vulnerabilities: every platform has dependencies, and our security page lists what we do and do not claim. PolyDraft does not import or sync a WordPress backend. It rebuilds the public site from its URL, as described on WordPress to Astro.
Frequently asked questions
Which PHP version should my site be on now?
As of December 4, 2026: PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 or 8.6.0, released on November 19, or later, or a Linux vendor package that lists CVE-2026-109618, CVE-2026-109619 and CVE-2026-115560 as fixed.
Does updating WordPress fix PHP2Shell?
No. WordPress core, themes and plugins run on top of PHP. The fix is a patched PHP build on the server, installed by your host or server administrator, followed by a restart of the PHP workers.
My site shows a PHP version below the fixed release. Am I vulnerable?
Not necessarily. Linux distributions often add security fixes without changing the version number. Ask your host, or check the vendor's notice for CVE-2026-109618, CVE-2026-109619 and CVE-2026-115560.
Was PHP2Shell exploited before the patch?
Attack attempts against AWS honeypots started on October 17, 2026, four days before disclosure. Successful exploitation was confirmed later: CISA added both flaws to its Known Exploited Vulnerabilities catalog on October 26, 2026. Check your logs from October 17.
Is the severity 9.2, 9.8 or 10.0?
The official rating from the PHP security team is CVSS 9.2. NVD's 9.8 uses an older scale, and the 10.0 from leaked pre-release posts is wrong.
Is PHP2Shell the same as wp2shell?
No. wp2shell is a WordPress core flaw fixed by updating WordPress. PHP2Shell is in PHP and is fixed by a patched PHP build. A WordPress site needs both fixes.
Does Squarespace use PHP?
Squarespace says it doesn't support server-side code, including PHP, so you can't run PHP on a Squarespace site. Squarespace runs the servers, so there is nothing for you to patch.
Does Wix use PHP?
Wix's security page doesn't mention PHP. It says every Wix site comes with fully managed protection, so the servers are Wix's to patch, not yours.
Does Webflow use PHP?
Webflow says custom code can't run server-side languages such as PHP, and that it handles security updates itself, so there is nothing for you to patch.
Is Framer affected by PHP2Shell?
Framer's security page does not mention PHP. Framer runs the hosting, so there is nothing for you to patch.
Do static or JavaScript sites need to do anything?
Not for PHP2Shell itself, unless PHP runs somewhere in the stack, for example a PHP contact-form handler or an old admin tool on a subdomain. Check before you assume.
Continue with the next task
- Patch a WordPress site step by step: How to update PHP in WordPress
- Compare platforms by who maintains what: WordPress alternatives for business websites
- Plan and verify a platform move: Website migration checklist
- Move platforms without losing rankings: Website redesign SEO checklist
About this article. First published on October 22, 2026, the day after the PHP security release, and updated the same day with the disclosure timeline, attack reports, distribution packages and related vulnerabilities. Sources were rechecked on December 4, 2026. It draws on the official advisories, CISA, distribution notices, vendor research and the researchers' own posts on X, listed below. Attack and host patch status change quickly, so check the sources for the latest. We are a website platform, not a security vendor: the technical details come from the PHP project and the researchers cited, we did not test exploits ourselves, and we do not reproduce exploit steps. Drafted by an AI agent from the sources below, then checked against them and approved for publication by Vincent Chen; he approved the December 4 refresh in advance. The illustrations are original diagrams made for this article.
Sources
Accessed October 22, 2026. Exploitation status and CVE-2026-115560 checked November 6, 2026; those sources are marked "Added November 6, 2026" below. Rechecked December 4, 2026; sources added that day are marked "Added December 4, 2026".
Official advisories and agencies
- PHP: PHP security releases announcement, October 21, 2026
- PHP security advisories: GHSA-w8hw-w9fx-j79w (CVE-2026-109618) and GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)
- Added December 4, 2026: PHP: news archive (November 19 releases, pre-announcement and the CVE-2026-115560 informational notice), PHP 8 ChangeLog and supported versions
- Added December 4, 2026: PHP security advisory GHSA-658j-r8rw-q6mx (CVE-2026-115560) and the PHP advisories list
- The PHP Foundation: Today's PHP security release and how we're strengthening PHP security
- NVD: CVE-2026-109618 and CVE-2026-109619
- CISA: Critical Vulnerabilities in PHP Require Immediate Patching and the Known Exploited Vulnerabilities catalog (rechecked December 4, 2026, including the CVE-2026-46300 entry)
- Added November 6, 2026: BleepingComputer, CISA confirms PHP2Shell vulnerabilities now exploited in attacks; SecurityWeek, PHP2Shell exploitation moves from probes to working shells
- ENISA: Joint statement on critical PHP vulnerabilities
Research and security vendors
- Calif: php2shell: A tale of two PHP remote vulnerabilities
- Wiz: PHP2Shell: AI uncovers critical RCE vulnerabilities
- Datadog Security Labs: PHP2Shell: detection, analysis and remediation
- AWS Security Blog: Amazon threat intelligence identifies PHP2Shell exploitation prior to public disclosure
- watchTowr: PHP RCE FAQ: PHP2Shell
- Cloudflare: WAF protection for the PHP vulnerabilities
- Akamai: Critical remote code execution vulnerabilities in PHP core
- Tenable: PHP2Shell frequently asked questions
Distributions
- Debian: security tracker for CVE-2026-109618; added December 4, 2026: security tracker for CVE-2026-115560
- Ubuntu: CVE-2026-109618 and USN-8948-1; added December 4, 2026: CVE-2026-115560 and USN-9185-1
- Red Hat: CVE-2026-109618 and RHSA-2026:87070; added December 4, 2026: CVE-2026-115560
- AlmaLinux: Patched PHP packages released; added December 4, 2026: ALSA-2026:100821
Website builders (added December 4, 2026)
- Squarespace: Add custom code to your site and Security
- Wix: Website security and Embedding custom code on your site
- Webflow: Custom code embed, Custom code in head and body tags and Security
- Framer: Security
Related advisories
- WordPress: WordPress 7.0.2 release
- Rapid7: CVE-2026-63030: wp2shell (CISA KEV listing, July 21, 2026)
- Adobe: APSB26-146, APSB26-153 and APSB26-92
- Sansec: BlockStrap Magento RCE
- Composer: GHSA-96h3-5x6v-m776 (CVE-2026-59944)
Posts on X
- The PHP Foundation: security release pre-announcement
- Calif: discovery credit to @lcfr_hax
- @lcfr_hax: August 5 timestamp post


