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.
- Check your version with the PHP version checker.
- Want us to check and secure your site? Get a free website security check.
Not sure if your website is patched? Send us the URL and we'll check it for free.
PHP2Shell at a glance
| Item | Details |
|---|---|
| Name | PHP2Shell |
| CVE numbers | CVE-2026-109618 and CVE-2026-109619 |
| Severity | Critical, 9.2 out of 10 (CVSS 4.0) each |
| What an attacker can do | Run their own code on the server without a login (remote code execution) |
| Where the bug is | In PHP itself (how it handles fatal and out-of-memory errors), not in WordPress or a plugin |
| Who is affected | Any PHP installation serving web requests: PHP-FPM, Apache mod_php, php-cgi, LiteSpeed, FrankenPHP |
| Fixed versions | PHP 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 branch | Safe version | What to do |
|---|---|---|
| PHP 8.5 | 8.5.12 or later | Update within 8.5 |
| PHP 8.4 | 8.4.27 or later | Update within 8.4 |
| PHP 8.3 | 8.3.36 or later | Update within 8.3 |
| PHP 8.2 | 8.2.35 or later | Update within 8.2, and plan a move to 8.3 or 8.4 |
| PHP 8.1, 8.0, 7.4 | No official release | End of life. Ask your host for a backported package, then upgrade to PHP 8.3 or newer |
| PHP 7.3 or older | None | Upgrade 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)
- Log in to wp-admin and open Tools → Site Health.
- Open the Info tab and expand Server.
- 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=0in php.ini (andfatal_error_backtraces=0on 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
About the author
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.