Critical PHP vulnerabilities CVE-2026-109618 and CVE-2026-109619 PHP2Shell CVSS 9.2 alert

PHP2Shell: Two Critical PHP Vulnerabilities (CVSS 9.2) Every Website Owner Must Patch Now

Author Name: Jay Pandya
Last Updated October 30, 2026
sparkle
Short on time?

Get the gist in seconds, pick your assistant below.

Table of Contents

TL;DR

On October 21, 2026, the PHP project patched two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, known as PHP2Shell. Both are rated CVSS 9.2 and can let attackers run code remotely without logging in. Because the flaws sit in PHP’s core runtime, they can affect WordPress, Laravel, Magento, custom apps, APIs and anything else running on an unpatched PHP installation. Updating your application code won’t fix them; the PHP runtime itself must be upgraded.

  • – What: Two critical flaws in PHP’s core, a memory corruption bug during out-of-memory handling and a use-after-free bug
  • – Risk: Unauthenticated remote code execution, data exposure, and backdoors
  • – Affected: PHP versions before the fixed releases, across all frameworks and CMSs
  • – Fixed in: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35
  • – Older PHP (8.1 and below): End-of-life, so use vendor backports or upgrade to a supported version
  • – Do now: Inventory every PHP runtime, patch internet-facing systems first, and verify the runtime that actually serves your website (not just php -v)
  • – Docker users: Rebuild and redeploy your images
  • – After patching: Check logs and files for signs of compromise, because patching doesn’t remove existing backdoors

Introduction

Imagine waking up to find your website modified, customer data possibly exposed, or your server running programs you never installed. You might suspect a weak password, a vulnerable plugin, or a compromised database.

But what if the weakness is in the technology that powers your website itself?

On October 21, 2026, the PHP project released fixes for two critical PHP vulnerabilities. in PHP. PHP is the language behind a large share of the world’s websites, APIs, e-commerce stores, and business systems. The flaws are tracked as CVE-2026-109618 and CVE-2026-109619 and are widely referred to as “PHP2Shell”. Each carries a CVSS v4.0 score of 9.2 out of 10.

Under certain conditions, these flaws can let an attacker execute code remotely, without logging in, on an unpatched PHP server.

This is not just a WordPress problem. It can affect Laravel, Symfony, CodeIgniter, Drupal, Joomla, Magento, custom PHP code, and any product that bundles PHP internally.

The priority is simple: find every PHP runtime you run, patch it, and check for signs of compromise. If you’re a business owner looking for a jargon-free overview first, read our guide on the PHP vulnerability 2026, explained in plain English.

1. What Is PHP, and Why Does This Matter?

PHP is a server-side language. It works behind the scenes whenever a site processes data, authenticates users, or generates dynamic pages. When you log in to an online store, PHP may check your credentials, load your profile, total your cart, and talk to the database.

PHP powers:

  • – CMS platforms such as WordPress, Drupal, and Joomla
  • – E-commerce platforms such as Magento and WooCommerce
  • – Business apps built with Laravel, Symfony, and CodeIgniter
  • – Custom portals, admin dashboards, and SaaS products
  • – REST APIs and mobile app backends
  • – Subscription and payment-related integrations

Think of PHP as the engine of a vehicle. A bug in your app’s logic is like a faulty dashboard light: one feature is affected. A flaw in the engine affects every vehicle that uses it.

That is the issue here. These flaws live in PHP’s core runtime, not in one plugin or app. Updating your application code alone will not fix them. The PHP installation that serves your requests must be patched.

2. Understanding the Two Critical PHP Vulnerabilities

CVE-2026-109618: Memory corruption during out-of-memory handling

PHP has a memory limit that stops a single request from using too many resources. When a request exceeds it, PHP interrupts execution and handles an out-of-memory (OOM) error.

The flaw is that PHP can be interrupted while internal request data is only partially initialized. The cleanup step may then treat that half-built data as valid and act on it.

Analogy: A worker is assembling a product when an emergency stops the line halfway. The cleanup crew assumes the product is finished and starts dismantling it, damaging parts it should never have touched.

Specially crafted HTTP requests can trigger this path and potentially lead to remote code execution.

CVE-2026-109619: Stale internal state (use-after-free)

When a request finishes or fails, the memory it used should be released safely. Here, request-owned internal state can survive after its memory has been freed. A later request handled by the same worker may use that stale state before PHP resets it.

Analogy: An office is vacated and reassigned, but an employee keeps using the old address, which now points to someone else’s room.

Under suitable conditions, an attacker can exploit this to run code or read sensitive data.

Why both are dangerous: the flaw sits in PHP’s core, so it can be reached before your application’s own security checks even run.

3. Why a CVSS Score of 9.2 Is So Serious

CVSS (Common Vulnerability Scoring System) rates severity from 0 to 10. Scores of 9.0–10.0 are critical.

A score of 9.2 does not mean a 92% chance of being hacked. It means the flaw combines several dangerous traits:

  • – Remote exploitation: reachable over the network
  • – No authentication needed: no account or password required
  • – Remote code execution (RCE): attacker code runs with the PHP process’s permissions
  • – Possible data exposure: app data or memory contents may leak
  • – Wide reach: PHP runs a large part of the web

Real-world impact depends on server permissions, isolation, configuration, and other controls. Still, internet-facing systems on vulnerable PHP versions should be patched immediately.

4. Which Applications and Versions Are Affected?

Any application that serves web requests through an affected PHP runtime may be at risk. That holds whether it runs on shared hosting, dedicated servers, VMs, cloud, containers, or managed platforms.

Application typeExamples
Content management systemsWordPress, Drupal, Joomla
PHP frameworksLaravel, Symfony, CodeIgniter
E-commerceMagento, WooCommerce, custom stores
Business applicationsCRM, ERP, billing, subscriptions
Backend servicesREST APIs, mobile app backends
Custom applicationsPortals, admin panels, SaaS platforms

Fixed upstream versions:

PHP branchFixed version
PHP 8.58.5.12
PHP 8.48.4.27
PHP 8.38.3.36
PHP 8.28.2.35

Earlier releases in these branches are affected. Vendor advisories list affected versions going back as far as PHP 5.4.

What about older PHP (8.1, 8.0, 7.4)? These branches are end-of-life and receive no official releases. The PHP security team published minimal source-level backports for teams that build PHP themselves. Some commercial vendors also ship backported patches, and those may fix the flaw without changing the displayed version number.

So a version number alone does not prove you’re safe or vulnerable. Check the package build and your vendor’s security status. For the long term, move to a supported, patched PHP release.

5. What Could an Attacker Do

It depends on what the PHP process can access and what controls are in place.

  • – Website tampering: altered files, injected scripts, visitor redirects
  • – Data theft: config files, database credentials (e.g. .env files), uploaded documents
  • – Malware and backdoors: hidden access that survives the patch
  • – API and service compromise: attacks on mobile backends and connected systems, not just visible pages
  • – Service disruption: crashes, resource exhaustion, downtime
  • – Wider infrastructure impact: in poorly isolated setups, attackers may try to move to other systems

Vulnerable does not mean compromised. The flaw creates an opening, and prompt patching closes it.

6. How to Protect Your Applications from Critical PHP Vulnerabilities

Step 1: Inventory every PHP runtime

Don’t stop at the main website. Include:

  • – Staging and test environments
  • – Internal admin portals
  • – Mobile app APIs
  • – Background workers and cron jobs
  • – Docker containers
  • – Third-party products and appliances that bundle PHP
  • – Legacy, unmaintained applications

Patch internet-facing systems first, then internal systems that handle sensitive data.

Step 2: Upgrade to a patched release

  • – Test framework compatibility, extensions, and deprecated features before deploying to production.
  • – Docker: update the base image and rebuild and redeploy. Updating your laptop doesn’t update a running container.
  • – Shared hosting or managed platforms: contact your provider if you can’t change the runtime yourself.

Step 3: Update the hosting stack

PHP may come from OS packages, EasyApache, CloudLinux, Plesk, container images, or managed cloud runtimes. Follow the procedure for how your PHP was installed. For example, cPanel/EasyApache users should apply vendor updates and confirm that the web-serving PHP packages are patched.

Step 4: Review application security

Update frameworks, libraries, CMS core, and plugins. Remove unsupported components and tighten permissions. This helps overall, but it does not replace the runtime patch.

Step 5: Look for signs of compromise

If a system was exposed while vulnerable, review web and app logs, auth records, unknown processes, file changes, scheduled tasks, and unusual outbound connections. If you suspect compromise, preserve evidence and involve your security team or host. Patching does not remove backdoors that are already there.

7. How to Check Your PHP Version

From the command line:

bash
php -v
php –ini
php -i | grep -E ‘PHP Version|Server API|Loaded Configuration File’

The CLI PHP may not be the PHP serving your website. Servers often have several versions installed. Check the runtime actually assigned to your domain: the hosting panel, the PHP-FPM pool, the container image, or the managed runtime config. Then confirm with your vendor’s advisory, because backported fixes may not change the version number.

php -v alone does not prove your website is patched.

8. Can’t Patch Immediately?

Temporary mitigations can reduce exposure, but they are not a substitute for the fix. Depending on your environment, admins may adjust PHP-FPM pool settings, limit request sizes at the web server, or isolate the app.

Some mitigations must apply before a request is processed. Setting them inside application code may be too late. Follow the official PHP advisory and your host’s guidance, because wrong settings can break uploads and imports.

If an internet-facing app can’t be patched or mitigated, consider restricting public access until a fix is in place.

9. Key Takeaways

Securing a website means securing both the application and the technology beneath it:

  • – Keep an inventory of PHP apps and runtimes
  • – Patch public-facing systems first
  • – Run supported PHP releases and apply security updates promptly
  • – Test compatibility before upgrading runtimes
  • – Keep frameworks and dependencies current
  • – Isolate applications and apply least-privilege access
  • – Monitor for suspicious activity and keep reliable backups
  • – Investigate, rather than assume that patching fixed everything

For dev teams: security maintenance covers the runtime, dependencies, container images, and hosting platform, not just your source code.

Conclusion

CVE-2026-109618 and CVE-2026-109619 are critical PHP vulnerabilities in PHP’s core that can enable remote code execution. Because PHP runs such a wide range of sites and systems, this goes far beyond any single CMS or framework.

The response is clear: inventory → patch → verify the deployed runtime → investigate.

Do not wait for a malfunction or a breach. A timely update can stop this vulnerability from becoming a business incident.

Need help securing your PHP applications? Talk to Wishtree Technologies experts about fixing critical PHP vulnerabilities, runtime patching and legacy modernization

Frequently Asked Questions (FAQs)

What are the new critical PHP vulnerabilities?

CVE-2026-109618 and CVE-2026-109619, known as PHP2Shell, are two critical PHP vulnerabilities in PHP’s core runtime. Both are rated CVSS 9.2 and can allow unauthenticated remote code execution on unpatched servers.

Which PHP versions fix these vulnerabilities?

The fixed upstream releases are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. Older end-of-life branches need vendor backports or an upgrade to a supported version.

Does updating WordPress or Laravel fix it?

No. The flaw is in the PHP runtime itself, not in your CMS or framework. The PHP installation that serves your website must be patched.

How do I check if my website’s PHP is patched?

php -v shows only the command-line version, which may differ from the one serving your site. Check the runtime assigned to your domain through your hosting panel, PHP-FPM pool or container image, and confirm the build with your vendor’s advisory.

Is a vulnerable server already compromised?

Not necessarily. A vulnerable server gives attackers an opening, but it doesn’t mean they’ve used it. Patch promptly, and if the server was exposed, review logs and files for signs of compromise.

Share this blog on :

Have a Complex Technology Challenge?

Talk to our experts about AI, data, cloud, or product engineering.

Author

Jay Pandya

Technical Architect at Wishtree Technologies

Jay Pandya is a Technical Architect at Wishtree Technologies with over 14 years of experience in software development. He leads cross-functional teams, architects enterprise solutions, and mentors developers across the full software development lifecycle. Jay specializes in PHP, Laravel, VueJS, ReactJS, NodeJS, and AWS infrastructure. He builds scalable products and drives technical innovation across web and mobile platforms.

October 29, 2026