PHP2Shell: Check Your Website’s PHP Version and Patch Now

If your website runs on PHP, contact your hosting provider today and confirm it is patched.

What is PHP? PHP is a server-side scripting language that powers many websites. A PHP vulnerability is a security flaw in the PHP server-side scripting language — or in code written with it — that lets unauthorized users compromise a web server, steal data, or run arbitrary code.

Two critical vulnerabilities, collectively known as PHP2Shell — CVE-2026-109618 and CVE-2026-109619, where CVE stands for Common Vulnerabilities and Exposures — each carry a severity score of 9.2 out of 10.

For small businesses, the key detail is where the problem lives: PHP itself. Updating WordPress, Drupal, or your plugins alone does not fix the underlying vulnerability. Your host or server administrator must update the PHP runtime serving your website.

PHP released fixes on October 21, 2026: 8.5.12, 8.4.27, 8.3.36, and 8.2.35. These are the first fixed releases for their respective branches. Vendor packages may include backported fixes, so an older-looking version number does not automatically mean the patch is missing. Ask your provider to confirm coverage for both CVEs.

On October 26, the Cybersecurity and Infrastructure Security Agency (CISA) added both flaws to its Known Exploited Vulnerabilities catalog, which tracks vulnerabilities exploited in the wild. This deserves immediate attention.

PHP considers the risk highest for Apache with mod_php, where a demonstrated attack can begin before your website’s own code runs. Other PHP web deployments—including PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed—also need attention.

Four steps to take now:

  1. Confirm what your website actually runs. Check your hosting control panel or ask your host directly: “Is the PHP runtime serving my website patched for CVE-2026-109618 and CVE-2026-109619?” If you manage the server, “php -v” checks the command-line installation; verify the website’s runtime separately because it may use a different version.
  2. Apply the appropriate security update. Install a fixed release or a vendor package confirmed to contain both patches. Have your host or administrator verify that every affected site and PHP installation is covered.
  3. Restart the affected services and verify. Make sure every PHP worker loads the patched code. Depending on your setup, this may require restarting PHP-FPM, Apache, or another service.
  4. Address unsupported versions. PHP 8.1 and older no longer receive regular upstream releases. Some vendors supply backported fixes, and PHP has provided limited source patches for certain older branches. Confirm your immediate protection and plan a move to a supported version.

One additional check: Ask your administrator to review PHP’s October 23 follow-up advisory for CVE-2026-115560. It describes a separate, uncommon session-handling issue and recommends disabling “session.upload_progress.enabled” where applicable until a fixed release is available.

Also ask whether your host has reviewed logs and other evidence for signs of compromise. Patching fixes the vulnerability; it does not remove an attacker’s existing access. Clean logs alone cannot prove a server was untouched.

Timing is part of the risk here. Exploitation attempts were reported before the flaws were publicly disclosed, and confirmed exploitation followed soon after the patches shipped. Every day an unpatched server stays online is another day attackers already know about the hole have to find it. That is why this post is going out now, rather than waiting for the next regular slot.

A website can look fine while the software underneath it needs urgent attention.

When was the last time you checked what PHP version your website runs—and who is responsible for keeping it patched?