Security alert · Updated 25 October 2026

PHP2Shell PHP Vulnerability: Is Your Website Safe and What to Do Now

Two critical flaws in PHP itself (CVE-2026-109618 and CVE-2026-109619) let attackers run code on a web server without logging in. Almost every WordPress, WooCommerce, Laravel and custom PHP website is affected until its PHP is updated. Here is what happened, which PHP versions are fixed, how to check your site in two minutes, and what to ask your hosting company. Includes a free PHP version checker.

By iBACT Digital Web TeamUpdated 25 October 20269 min read

Quick answer

PHP2Shell is the name for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, both rated 9.2 (CVSS 4.0) and fixed in an emergency PHP release on 21 October 2026. They can allow unauthenticated remote code execution, meaning an attacker could take over a website's server. Every PHP setup that serves web pages is at risk (PHP-FPM, Apache mod_php, CGI, LiteSpeed, FrankenPHP). The fix is to update PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 or later, or to a patched package from your host, and restart PHP. Attacks were already seen before the fix was published.

Not sure if your website is patched? Send us the URL and we'll check it for free.

PHP2Shell at a glance

ItemDetails
NamePHP2Shell
CVE numbersCVE-2026-109618 and CVE-2026-109619
SeverityCritical, 9.2 out of 10 (CVSS 4.0) each
What an attacker can doRun their own code on the server without a login (remote code execution)
Where the bug isIn PHP itself (how it handles fatal and out-of-memory errors), not in WordPress or a plugin
Who is affectedAny PHP installation serving web requests: PHP-FPM, Apache mod_php, php-cgi, LiteSpeed, FrankenPHP
Fixed versionsPHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 (released 21 October 2026)
Older PHP (7.4, 8.0, 8.1)No new official release; source patches only. Your host must backport them, or you should upgrade
Exploited?Yes: attempts seen from 17 October, mass scanning since 21 October

What happened

On 21 October 2026 the PHP project released emergency security updates for every supported version. The two bugs sit deep in PHP's core: when a request triggers a fatal error or runs out of memory, PHP can leave memory in an unsafe state that a later request can abuse. A specially crafted web request can turn that into running code on the server.

Because the flaw is in PHP rather than in any one application, it doesn't matter how well your WordPress site, plugins or theme are maintained. If the PHP version underneath is unpatched, the site is exposed. PHP's own advisory rates the risk highest for Apache's mod_php, where an attack can run before any of your website's code does.

Attacks are already happening. Amazon's honeypots logged an exploit attempt on 17 October, four days before the fix was public. Cloudflare reported attempts growing from tens of thousands to millions within a day of disclosure, and security firms have reported attempts to install botnet malware. Palo Alto Networks' Unit 42 counted more than 22 million potentially exposed PHP servers on the internet.

Is my website affected?

Assume yes until you have confirmed otherwise, if your website runs on PHP. That includes:

  • WordPress and WooCommerce websites, which is most business websites in India.
  • Laravel, CodeIgniter, Symfony and custom PHP applications.
  • Joomla, Drupal, Magento, OpenCart, PrestaShop and most PHP-based CMS and shopping carts.
  • Shared hosting, VPS, cloud and dedicated servers, cPanel, Plesk and CyberPanel servers.

Websites built on Shopify, Wix or Squarespace, or static sites with no PHP, are not affected by this flaw, because they don't run PHP you control.

Fixed PHP versions

Your PHP branchSafe versionWhat to do
PHP 8.58.5.12 or laterUpdate within 8.5
PHP 8.48.4.27 or laterUpdate within 8.4
PHP 8.38.3.36 or laterUpdate within 8.3
PHP 8.28.2.35 or laterUpdate within 8.2, and plan a move to 8.3 or 8.4
PHP 8.1, 8.0, 7.4No official releaseEnd of life. Ask your host for a backported package, then upgrade to PHP 8.3 or newer
PHP 7.3 or olderNoneUpgrade now; these versions have many other unfixed flaws

The version number can mislead you. Many hosts (including cPanel's EasyApache and Linux distributions) patch PHP without changing the version number. A site can show 8.2.34 and still be fixed. On shared hosting, check the PHP build date: a build dated 21 October 2026 or later usually includes the fix. When in doubt, ask your host to confirm in writing.

PHP version checker

Type the PHP version your site runs (from Site Health or your hosting panel) and the build date if you know it.

–

A quick guide based on the official fixed releases of 21 October 2026. Your host may have patched a lower version number; confirm with them.

How to check your PHP version

In WordPress (no technical skills needed)

  1. Log in to wp-admin and open Tools → Site Health.
  2. Open the Info tab and expand Server.
  3. Note the PHP version and compare it with the table above.

In cPanel

Open Software → MultiPHP Manager (or Select PHP Version on CloudLinux hosting) to see the PHP version of each domain. On a cPanel/WHM VPS, update the ea-php packages through WHM → EasyApache 4 or your server's normal package updates.

On a VPS or server (SSH)

php -v

This shows the version and the build date. The command-line PHP can differ from the PHP that serves your website, so also check the web version: create a temporary phpinfo.php file with <?php phpinfo();, open it in the browser, read the PHP Version and Build Date, and delete the file immediately.

How to fix it: step by step

Step 1: Take a backup

Back up files and the database (or take a server snapshot) so you can roll back if a plugin or theme misbehaves after a PHP change.

Step 2: Update PHP

Shared hosting: most large hosts patched their PHP builds on 21–22 October. Check the build date, or ask support to confirm. If you are on PHP 8.1 or older, switch to PHP 8.3 or 8.4 in the PHP selector. VPS or cloud server: install the patched PHP packages from your distribution or EasyApache, or rebuild Docker images on a fixed base image.

Step 3: Restart PHP

Restart PHP-FPM, LiteSpeed or Apache so the patched PHP actually loads. Old worker processes keep running the vulnerable code until they are restarted.

Step 4: Verify

Check the version and build date again in Site Health or phpinfo, and test key pages: the home page, forms, checkout and login.

Step 5: Check for signs of compromise

Because attacks started before the fix, look for new admin users in WordPress, unfamiliar PHP files in wp-content/uploads, changed files, unknown cron jobs and unusual outgoing traffic or CPU use. Run a malware scan and change admin, hosting, FTP and database passwords if anything looks wrong.

Let us patch and check it for you

We confirm your PHP is fixed, upgrade old PHP safely, test your site and scan it for malware. Fixed price, same day.

Can't update right away? Temporary measures

PHP developers and security researchers are clear that only patching fixes PHP2Shell. If you manage your own server and need a few hours, these measures reduce the risk but do not remove it:

  • Set session.upload_progress.enabled=0 in php.ini (and fatal_error_backtraces=0 on PHP 8.5), then restart all PHP workers. Test any upload progress bars afterwards.
  • Turn on your host's or Cloudflare's web application firewall (WAF). Cloudflare and other providers added rules for PHP2Shell.
  • Limit request body sizes at the web server or proxy.
  • Take non-essential PHP sites, old staging copies and test installs offline.

A related, lower-risk issue, CVE-2026-115560 in PHP's session upload progress feature, was announced on 23 October. It affects only unusual session configurations, and the same session.upload_progress.enabled=0 setting covers it until PHP's next regular release.

What to ask your hosting company

  • Is the PHP version my site uses patched for CVE-2026-109618 and CVE-2026-109619? What is the build date?
  • If I'm on PHP 8.1 or older, have you backported the fix, and can you help me move to PHP 8.3 or newer?
  • Which PHP handler does my site use (PHP-FPM, LiteSpeed or mod_php)?
  • Have PHP processes been restarted since the patch?
  • Is a web application firewall protecting my site against this exploit?

WordPress: will upgrading PHP break my site?

Updating within the same branch, for example 8.3.35 to 8.3.36, is a security fix and almost never breaks anything. Jumping from PHP 7.4 or 8.0 to 8.3 is a bigger change: old themes and plugins that haven't been updated in years may show errors. Update WordPress, the theme and all plugins first, try the new PHP version on a staging copy, and replace any plugin that is no longer maintained. Running an end-of-life PHP version is the bigger risk.

Frequently asked questions

What is PHP2Shell?

PHP2Shell is the name given to two critical vulnerabilities in PHP, CVE-2026-109618 and CVE-2026-109619, disclosed and fixed on 21 October 2026. Both are rated 9.2 (CVSS 4.0) and can allow an attacker to run code on a web server without logging in.

Which PHP versions fix PHP2Shell?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 or later. PHP 8.1, 8.0 and 7.4 received source patches only, so you need a patched package from your host or an upgrade to PHP 8.2 or newer.

Is my WordPress site affected by the PHP vulnerability?

If it runs on an unpatched PHP version, yes. The flaw is in PHP itself, not WordPress, so it affects WordPress sites regardless of how up to date WordPress and its plugins are. Check your PHP version under Tools → Site Health → Info → Server.

Is a WordPress plugin update enough to fix it?

No. The fix is in PHP, which your hosting company or server administrator updates. Plugins and WordPress updates don't change PHP.

My site shows PHP 8.2.34. Is it vulnerable?

Not necessarily. Many hosts patch PHP without changing the version number. Check the PHP build date in phpinfo or with php -v: a build dated 21 October 2026 or later usually includes the fix. Ask your host to confirm.

Is PHP2Shell being exploited?

Yes. Exploit attempts were seen from 17 October 2026, before public disclosure, and mass scanning followed the 21 October release. Patch as soon as possible and check your site for signs of compromise.

Is there a workaround if I can't update PHP?

Only partial ones. Disabling session.upload_progress, enabling a web application firewall and limiting request sizes reduce the risk, but PHP's developers say updating PHP is the only real fix.

Are Shopify or Wix websites affected?

No. Those platforms don't run PHP that you manage, so this vulnerability doesn't affect your store or site. Any separate PHP sites or tools you host elsewhere still need checking.

What is CVE-2026-115560?

A lower-risk PHP issue in the session upload progress feature, announced on 23 October 2026. It affects only unusual session configurations. Setting session.upload_progress.enabled=0 mitigates it until PHP's next regular release.

Can iBACT Digital check and fix my website?

Yes. We check your PHP version and build, update or upgrade PHP with your host, test the site and scan it for malware. Share your website URL using the form on this page or on WhatsApp.

Get a free website security check

Share your website and number. We'll check whether your PHP is patched and tell you exactly what needs to be done.

  • PHP version and patch check
  • Safe PHP upgrade with testing
  • Malware scan and cleanup if needed

Free website security check

+91

Your details are only used to contact you.

About the author

iB
iBACT Digital Web Team

iBACT Digital has built and maintained business websites for companies across India since 2018. This guide is updated as PHP and hosting providers publish new information. Our website services

Sources: PHP security advisory and releases of 21 October 2026; PHP advisory on CVE-2026-115560, 23 October 2026; Palo Alto Networks Unit 42, Datadog Security Labs, Cloudflare, GoDaddy and The Hacker News reports, 21–23 October 2026. Information as of 25 October 2026.

Scroll to Top