BrainyTech
Security

PHP2Shell: Critical PHP Vulnerability, What Website Owners Should Do Now

BrainyTech TeamOctober 23, 20265 min read

A critical PHP vulnerability, found with the help of AI, was disclosed on 21 October 2026. If your website runs on PHP, here is what it means in plain language and what to do about it.

What happened

On 21 October 2026, the PHP project released emergency security updates for two critical vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619 and widely reported under the name PHP2Shell. Both are rated 9.2 on the CVSS v4 scale.

The flaws sit in PHP itself, not in any one website's code. According to published reports, an attacker does not need to log in, and in the worst case could run code on the server. Because PHP powers a very large share of the web, including WordPress, Drupal, Joomla, WooCommerce and Laravel applications, the impact is wide. Security researchers say versions going back to PHP 5.4 are affected.

Two details made this story unusual:

  • AI helped find the bugs. Security firm Calif reported the first flaw using OpenAI's GPT-5.6 Sol, and Wiz said it independently found the same class of issues using AI tools as well.
  • Some operators took sites offline. After details leaked early and a proof-of-concept circulated, several organizations temporarily pulled parts of their sites while they patched, and national security agencies issued advisories.

Why this one matters for business owners

Most security warnings say "your code has a bug." This one says "the engine under your code has a bug."

  • A perfectly written application can still be exposed. Reports describe the problem as being triggered inside PHP before your application logic runs.
  • Memory disclosure is a risk even without code execution. Researchers warn that sensitive data such as passwords, session tokens and API keys could leak from server memory.
  • Old PHP versions are the biggest concern. PHP 7.4, 8.0 and 8.1 are no longer officially supported, and many business websites still run on them.
  • The window is short. A public proof-of-concept exists, and attackers move quickly once a fix is published, because the patch itself shows them where to look.

We have not seen confirmed reports of widespread compromise at the time of writing, and that is exactly why acting now is cheaper than acting after an incident.

Is your website affected?

If your site runs on any of the following, it uses PHP and you should check:

  • WordPress or WooCommerce
  • Drupal or Joomla
  • Laravel, Symfony, CodeIgniter or another PHP framework
  • A custom PHP application built several years ago
  • A shared hosting plan where you don't manage the server yourself

A quick check: ask your developer or hosting provider two questions. Which PHP version is the server running, and has it been updated since 21 October 2026?

What to do now

  1. Find out your PHP version. Your hosting control panel, your developer, or a phpinfo() page on your own server will tell you. Remove any phpinfo() page afterwards.
  2. Apply the security update for your branch. Reports list the patched releases as PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, plus backported fixes for 7.4, 8.0 and 8.1. Confirm the exact versions on the official PHP release notes at php.net before you act.
  3. Plan an upgrade if you are on an unsupported version. Patches for old branches are a stopgap. A supported PHP version is the real fix, and it needs testing so plugins and custom code keep working.
  4. Ask your host what they have done. On shared or managed hosting, the provider controls PHP. Get a written confirmation of the version and patch level.
  5. Turn on web application firewall rules if you can. Providers such as Cloudflare released protective rules. These help, but the PHP project itself warns that they do not replace updating.
  6. Watch for warning signs. Reports mention repeated HTTP 500 errors, unusual large requests followed by memory errors, malformed session cookies and unexplained PHP worker restarts.
  7. Rotate secrets if you suspect exposure. Change admin passwords, API keys and database credentials on any server you believe was reachable before patching.
  8. Keep recent backups. Make sure a clean backup exists before you update, and test restoring it.

Where businesses usually get stuck

Updating PHP sounds like a five-minute job. In practice, we see the same blockers again and again:

  • A plugin or theme that breaks on a newer PHP version
  • Custom code written years ago for PHP 5 or 7
  • No staging site to test an update safely
  • Nobody sure who manages the server
  • Fear that an update will take the live site down

None of these are reasons to wait. They are reasons to do it carefully, with a plan.

How BrainyTech can help

If your website or application runs on PHP and you'd like a second pair of eyes, we can help with:

  • PHP version and exposure check: we identify what your site runs on and where the risk is
  • Patching and safe upgrades: updates tested on a staging copy before anything touches your live site
  • WordPress and WooCommerce compatibility fixes: plugins, themes and custom code updated to run on supported PHP versions
  • Hardening and monitoring: sensible server and application settings, plus alerts so problems don't go unnoticed
  • Migration off aging stacks: a clear plan if an old application is better rebuilt than patched

We'll tell you honestly what needs doing and what doesn't. If your site is already patched, we'll say so.

📩 Not sure whether your site is affected? Write to us at [email protected] with your website address, and we'll come back with a straightforward assessment.

🌐 brainytech.in

Sources

This article summarizes public reporting as of 23 October 2026 and is general information, not a substitute for the official PHP security advisory. Details may change as vendors publish further guidance.

Share this article:
← Back to blog