Updated 25 October 2026
Security

PHP2Shell: Patching is mandatory. Modernizing is the opportunity.

Your IT reports: our website runs on PHP, and there is a critical flaw. What does that mean for the business, how fast do we have to react, and how do we make sure that next time we are not stuck waiting again? A plain-language briefing, with a pinch of .NET bias.

Am I affected?

The 30-second check

Every website on PHP 5.4 to 8.5 is affected unless PHP has been updated to 8.2.35, 8.3.36, 8.4.27 or 8.5.12. Which CMS runs on top does not matter. PHP 8.1 and older get no official update.

Output of php -v or the value shown in your hosting panel, e.g. 8.1.27

PHP 8.1 and older: patched is not saved

PHP 8.1 has had no security updates since 31 December 2025. For PHP2Shell it only gets source backports and packages from some distributions, and PHP 8.2 reaches end of support on 31 December 2026. If you are on 8.1 or 8.2 today, you will be without a patch again at the next flaw. Now is the time to ask: update to PHP 8.4, or migrate?

In plain words

A crack in the foundation, not in the roof

PHP is the programming language that WordPress, TYPO3, Drupal, Joomla and many other CMS run on. PHP2Shell is not a bug in a plugin or in one particular CMS, it sits in PHP itself, in every version since 5.4 from 2012. An attacker needs no password: a crafted request to your website can be enough to run their own code on your server. Experts rate it as critical (CVSS 9.2 out of 10).

What it can mean for your business

  • Strangers take over your website

    Attackers can change content, serve malware to your visitors or plant fake forms. Under your name.

  • Data leaks out

    One of the flaws can expose the server's memory: passwords, sessions, API keys. With those, attackers often get further than the website, into the CRM or other connected systems.

  • Trust and obligations

    An incident on your website is public. If personal data is affected, a duty to report under the Swiss FADP or the GDPR can apply.

  • Website offline

    Several organisations took their websites offline this week as a precaution. That is safe, but every day offline costs inquiries and visibility.

How it happens

From a form request to the command line

How can a single request take over a server? The short version in four steps. Deliberately not a recipe, but precise enough that you understand why updating WordPress or TYPO3 does not help here.

  1. 01 · The request

    An innocent-looking upload

    The attacker sends a crafted form request with a file upload (multipart/form-data) to any page of your website. No login needed. PHP reads such requests before WordPress, TYPO3 and the like even start. That is why it does not matter which CMS or plugins you use.

  2. 02 · CVE-2026-109618

    Memory runs out mid-parse

    The request is built so that PHP hits its memory limit while processing the upload data and aborts. That happens at a moment when internal data is only half built. During cleanup PHP treats this half-finished data as valid and keeps working with it.

  3. 03 · CVE-2026-109619

    The leftovers stay in the worker

    To keep websites fast, one PHP worker (PHP-FPM or Apache with mod_php) handles many requests in a row. After the abort, internal references still point to memory that has already been freed. The next request to the same worker touches these leftovers.

  4. 04 · PHP → Shell

    From memory leak to a stranger's command

    Through these leftovers attackers read server memory, for example via the session cookie, and defeat protections such as address space randomization (ASLR). In the final step the server runs their commands. Hence the name: from PHP to the shell, your server's command line.

Why a configuration trick is not enough

Settings like session.upload_progress.enabled=0 close one known path, not the flaw itself. And because the bug lives on inside the worker, even the update only takes effect once every PHP process has been restarted. Only both together make your website safe again.

Response time

The attackers were faster than the patch

Today the gap between a flaw becoming known and being exploited is hours, not weeks. What matters is not whether your website gets patched at some point, but how fast. Every hour in between is an open window.

  1. 17.10.2026
    First exploitation attempt observed, four days before disclosure
  2. 20.10.2026
    Details leak, the flaw is public
  3. 21.10.2026 07:43
    First attacks reported, before any fix exists
  4. 21.10.2026 14:00
    PHP releases the fixed versions
  5. ?
    Your website is patched. When was that for you?

The real question: who patches your website?

Many companies noticed this week that they could not do anything themselves. Website, access and know-how sit with an agency or a hoster. You file a ticket and wait. That is no reproach to the agency, it is a question of how you are set up.

Website run by a third party

  1. Flaw becomes known
  2. File a ticket, wait, follow up, wait
  3. Patched, eventually

Your own stack, maintained together

  1. Flaw becomes known
  2. Your team or we patch right away, the access is there
  3. Back to work. The coffee is still warm.
For your IT

The checklist to forward

If your website runs on PHP, forward this section to your IT or your agency. Updating the CMS alone is not enough, PHP itself has to be updated.

  1. 01 Check the PHP version (php -v) and update to 8.2.35, 8.3.36, 8.4.27 or 8.5.12.
  2. 02 Restart PHP-FPM or Apache. Only then is the fix actually running.
  3. 03 Still on PHP 8.1 or older? There are no official releases. Use your distribution's packages or move to a supported branch. PHP 7.3 and older get no fix at all.
  4. 04 Remove temporary mitigations (memory_limit, session.upload_progress.enabled=0, WAF rules) after the update and check the logs for unusual multipart/form-data requests.
PHP branch Fixed version
8.58.5.12
8.48.4.27
8.38.3.36
8.28.2.35
7.4 - 8.1No official release. Source backports and distribution packages only.
5.4 - 7.3No fix. Move to a supported branch.

Sources: PHP security advisory of 21 October 2026, Tenable, Sansec. As of 23 October 2026.

Example for Debian/Ubuntu
php -v
sudo apt update && sudo apt install --only-upgrade 'php8.3*'
sudo systemctl restart php8.3-fpm   # or: apache2
// Disclaimer

Warning: we are biased

We write C# in our sleep, talk about .NET at conferences and would probably recommend a toaster built on .NET. So read the next section with a wink. But do read it.

And honestly: .NET is not immune

In October 2025 ASP.NET Core had CVE-2025-55315, rated CVSS 9.9, the highest score the framework ever received. Every platform has flaws. The difference is who owns the code, who has access and how fast the patch goes live. That is exactly where our model comes in.

Cooperation

Your website. Your stack. Your control.

We migrate your PHP CMS to an open source CMS on .NET, such as Umbraco or Oqtane. Not as a black box that ends up sitting with us instead, but set up so that you stay the owner and we work alongside you as a partner.

PHP website at a third party
Your cloud, your repository
  • Website (Umbraco on .NET)
  • Customer portal (.NET)
  • Internal apps (.NET)
The website moves to where your other .NET applications already run.
  • Open source, 0 CHF licence

    Umbraco and Oqtane are open source and run on current .NET. No licence fees and no vendor holding on to you.

  • Code and hosting stay with you

    The website runs in your cloud and the code lives in your repository. Access and know-how stay in-house, even if we were gone tomorrow.

  • One stack for everything

    If you already run .NET applications, your team can look after the website too. Same language, same tools and, if you like, one single sign-on.

  • Customizable down to the detail. It is .NET, after all.

    Umbraco and Oqtane are not closed construction kits. Custom content types, blocks and editor extensions, integrations with your ERP, CRM or your own APIs: we write them in C# with the same tools as any other .NET application. No plugin zoo, just normal, testable code in your repository.

  • We stay at your side

    We build together with your team, pass on our knowledge and take care of updates and further development within a clear monthly budget. When something is on fire, whoever is there first patches it.

What this looks like is shown by a current proof of concept: an existing PHP website rebuilt on Umbraco and .NET, with a multilingual editor, preview and automatic redirects from the old URLs. We cannot show the details publicly yet. A live demo in a call, we can.

How we work

Three steps, fixed prices

You keep the costs under control and decide after every step whether to go on.

  1. 01 · Small fixed price

    PHP legacy check

    We review the PHP version, hosting and access of your website and rate the risk. Then we work out with you what stays, what goes and what is new. The result: a clear scope and a binding offer.

  2. 02 · Fixed price

    Migration and build

    Content, page structure and URLs move to the new CMS, including the agreed extensions. A reserve for small changes is planned in.

  3. 03 · Time and materials, capped monthly

    Operations and development

    Updates, security patches and new wishes. Billed by effort, with a fixed monthly ceiling. Your team can take over at any time.

Proof of concept first. Then you decide.

All details on the fixed-price PHP migration
FAQ

PHP2Shell: questions and answers

What is PHP2Shell?

PHP2Shell is the name for two critical flaws in the PHP core (CVE-2026-109618 and CVE-2026-109619, CVSS 9.2), fixed on 21 October 2026. A crafted request without login can be enough to run code on the server.

Am I affected by PHP2Shell?

Yes, if your website runs on PHP 5.4 to 8.5 and PHP has not been updated to 8.2.35, 8.3.36, 8.4.27 or 8.5.12. The CMS does not matter: WordPress, TYPO3, Drupal and Joomla are all affected.

Is updating WordPress or TYPO3 enough?

No. The flaw sits in PHP itself. PHP has to be updated, and PHP-FPM or Apache restarted afterwards.

Does a configuration change help?

Only as a stopgap. Settings like session.upload_progress.enabled=0 close one known attack path, not the flaw. Only the update fixes it.

What about PHP 8.1 or older?

PHP 7.4 to 8.1 get no official releases. Check whether your distribution ships patched packages and plan the move to a supported branch. PHP 7.3 and older get no fix at all.

Do we have to migrate to .NET because of this?

No. In the short term only the patch matters. A migration pays off when the website is stuck on a PHP version that can no longer be updated cleanly, or when you wait for a third party on every patch. That is exactly what our PHP legacy check looks at.

Get In Touch

Who patches your website? Let's talk.

You talk directly to the people who will write your code.

  1. You get in touch: We do our best to reply within 24 hours.
  2. We get to know each other: 30 minutes. You talk, we ask. No pitch.
  3. We decide together: How to move forward, or honestly, that we're not the right fit.
186 / 2000

A few sentences are enough. What's holding you back today, is there a deadline?

We only use your details to reply to you.

Rather talk directly? 30 minutes on Google Meet with Steven Giesel.

Pick a time
Or email us at contact@bitspire.ch