Skip to content

PHP2Shell: what the PHP security flaw means for your website

What happened

PHP is the programming language that runs a large share of the web, including WordPress, Drupal, Joomla and Magento. On October 20, 2026, the PHP project announced that a security release was coming for two critical flaws. The fixed versions came out on October 21.

Both flaws score 9.2 out of 10 on the CVSS severity scale. They are memory handling bugs. In one, PHP mishandles a request that runs out of memory. In the other, leftover data from one request can be reused by the next request on the same server process. In both cases, a visitor who is not logged in can send requests that make the server run the visitor’s code. The PHP project showed a working attack that needs a single request and runs before any website code does.

Public proof-of-concept code appeared on October 22. Rapid7 reported that each public version only works on certain combinations of operating system, PHP version and web server, and that none looked broadly reliable yet. It also warned that a more portable method could appear at any time. As of October 23, Rapid7 had not seen confirmed exploitation, but it had seen reports of attempts, and CERT-EU said the public details raise the likelihood that attackers are already trying. Amazon’s threat team reported an attempt on October 17, four days before the fix. Cloudflare reported attempts climbing from tens of thousands to millions within a day of the announcement. Some security firms reported attempts to install botnet software, and others reported scanning with no confirmed code execution.

Does this affect a WordPress site?

The flaws are in PHP itself, not in WordPress. A WordPress site is exposed if the server it runs on uses a PHP version that has not been patched. Security researchers at Calif reported confirming attacks against specific versions of WordPress, Drupal, Joomla and Magento, which shows the platform does not protect a site running on unpatched PHP.

The practical point is that updating WordPress, a theme or a plugin does not fix this. The fix happens at the server, in the PHP version, and the hosting company or whoever manages the server controls it.

What to ask your host

Who does this depends on the hosting. On managed hosting, the provider normally applies the update. On a basic shared plan, a virtual server or a server the business manages, someone has to do it, and it is not always clear who. Three questions settle it.

  1. Which PHP version does my site run, and has it been updated since October 21? The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Some Linux providers patch a package without changing the version number, so the provider’s own security notice is the authority if the number looks old.
  2. If I can’t update right away, what has been done in the meantime? PHP published settings that reduce exposure, such as turning off upload progress tracking and capping request sizes. CERT-EU says these lower the risk and do not make a server safe, so they are a stopgap.
  3. How will I know it is done? A confirmation from the host in writing is enough for most small businesses.

Many hosting dashboards also show the PHP version, often under a heading such as PHP settings or Server settings.

If your site runs an older PHP version

PHP 8.1 and older no longer get routine updates from the PHP project. The project published limited backports of the fix for 7.4, 8.0 and 8.1 that people can build from source, and some hosting providers apply them. Without one of those, a site on an old version has no regular path to a fix. CISA advises taking PHP systems offline until they are patched when an older version can’t be updated. For most small business sites, the better answer is to move the site to a supported PHP version, which usually means checking that the theme and plugins work on the newer version first.

A third flaw with no patch yet

On October 23, PHP disclosed a separate issue, CVE-2026-115560. PHP describes it as an unlikely risk, since it needs an unusual setup: a specific session setting changed while the site is running, with upload progress tracking still on. The update that fixed the first two flaws does not fix this one, and PHP has said the fix will come in a regular release instead of an emergency one. The interim step is the same setting mentioned above, `session.upload_progress.enabled=0`, which a server administrator can apply. A site that already has it turned off is covered.

PHP has not yet said which versions are affected or how severe the issue is.

How Inky Hive handled this

The PHP project announced the upcoming release on October 20, and the fixed versions came out on October 21. Even with a fast response, that left hours when every PHP site was exposed. Inky Hive used that time to log into its hosting and check for signs of unauthorized access. The checks found none.

When the fix was released, the Inky Hive server on AWS was patched within 30 minutes. Inky Hive also checked the hosting for each client site to see which hosts had applied the update. Inky Hive works with different hosting companies depending on each client’s budget and needs, and the speed of the update depended on the host. One client site was patched within the hour, and one on a shared host several hours later. Every site was patched the same day. Inky Hive also took a full backup of every client website that day, as a precaution.

This is the kind of work a care plan covers for sites Inky Hive builds: watching for security releases, applying updates and keeping backups, without the owner having to ask. A site built and hosted elsewhere is a question for that host, and the three questions above are the place to start. If you are not sure who runs your hosting, Contact Inky Hive and ask.

Questions about the PHP security flaw

Is my website hacked?

Nothing in this news means a particular site has been attacked. Attempts were reported, and confirmed code execution was not as of October 23. Updating PHP closes the opening. A host can check logs back to October 17, the date of the earliest reported attempt.

Do I need to change my passwords?

A password change doesn’t close this flaw, and no one has said passwords were taken. If a host finds signs that a site was compromised, changing passwords and checking for unfamiliar admin accounts and files is part of the cleanup.

Does my website platform matter?

The flaw is in PHP, so any site that runs on PHP is in scope. That includes WordPress, Drupal, Joomla and Magento. Sites on hosted builders such as Squarespace, Wix and Shopify do not run on the business’s own PHP server, so the update is not the owner’s job there.

How do I find out which PHP version I have?

Check the hosting dashboard, or ask the host. A web developer can also read it from the server.

Sources

What this post is based on. Links open the source.

  1. Security Advisory 2026-018: Critical Vulnerabilities in PHPCERT-EUcert.europa.euversion 1.2, October 23, 2026
  2. CVE-2026-109618 and CVE-2026-109619: critical unauthenticated remote code execution in PHPRapid7rapid7.com
  3. PHP2Shell frequently asked questionsTenabletenable.com
  4. PHP warns of another unpatched flawThe Hacker Newsthehackernews.comOctober 2026

Keep reading

Accessibility

How to make a website ADA compliant

There is no ADA certificate for a website. Here are the steps to test a site against WCAG 2.2 AA, fix what you find and keep it accessible.