Skip to content
24/7 support · 7-day money-back guarantee · Free plan, no card neededSee plans

Blog › PHP and WordPress ›

PHP2Shell and WordPress: what the October 2026 PHP vulnerabilities mean for your site

Cover image: PHP2Shell and WordPress: what the October 2026 PHP vulnerabilities mean for your site

On 21 October 2026 the PHP project shipped a critical security release. It fixed two remote code execution flaws in PHP itself, tracked as CVE-2026-109618 and CVE-2026-109619 and nicknamed PHP2Shell by security researchers. If your website runs on WordPress, these flaws matter to you even though the bug is not in WordPress. This guide explains what happened in plain language, how to find out whether you are exposed, and what to do today. It also covers what the incident means for your search visibility, because a compromised site can lose rankings quickly.

Contents of the guide: PHP2Shell and WordPress: what the October 2026 PHP vulnerabilities mean for your site
The main sections of this guide.

A note before we start: this story was still developing at the time of writing in early November 2026, and different security vendors describe the scale of real-world exploitation differently. We stick to what the PHP project and multiple independent sources agree on, and we link them at the end. Check those sources for updates before acting on anything that has changed since.

What was announced

The PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 21 October 2026 and labelled the release as critical security. According to the PHP release announcements, the two CVEs are remote code execution bugs. In simple terms, remote code execution means an attacker on the internet could make your server run commands of their choosing.

The first flaw, CVE-2026-109618, involves out-of-memory handling. If PHP runs out of memory at a particular moment while it is reading an incoming request, it can be interrupted while the request data is only partly set up, and the cleanup step afterwards may treat that incomplete data as if it were valid. The second, CVE-2026-109619, involves request-related internal state that stays around after its memory has been freed, so a later request handled by the same worker process may use stale state.

You do not need to follow the memory details to understand the practical point. The weakness sits in the PHP engine that runs your site, underneath WordPress, your theme and your plugins. That has two consequences. First, a perfectly updated WordPress installation does not protect you. Second, a vulnerable request can potentially trigger the problem before any of your site code even runs, which means ordinary application-level defenses such as strong passwords or a login-protection plugin do not help.

Which PHP versions are affected and which are fixed

The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The PHP security team also published minimal source backports for PHP 7.4, 8.0 and 8.1, which no longer receive official support. Practically, that means:

  • If you are on 8.2, 8.3, 8.4 or 8.5, you need the latest patch release of your branch or a host build that includes the fix.
  • If you are on 8.1 or older, the PHP project does not ship official fixed binaries. You need either a distribution or long-term-support vendor build that has backported the fix, or you should upgrade to a supported branch. Many managed hosts do the former, but you must confirm it with them.

Security vendors reported that Linux distributions and some long-term-support providers received patches before the public release, so your host may already have fixed packages available. The version number reported by your server can look “old” even when the fix is applied, because distributions often backport fixes without changing the upstream version number. That is why the question to ask your host is not just “which version number do I have” but “has the October 2026 security fix for CVE-2026-109618 and CVE-2026-109619 been applied to my PHP build”.

How serious is it

Sources agree it is serious, though the details vary. The PHP project rated the combination critical. Reports said a working exploit was demonstrated and that a single unauthenticated request could trigger the attack. The setups named as most at risk were those running PHP as an Apache module (mod_php), because of how request handling is arranged. Servers running PHP-FPM were described as not rated highest but not safe to leave unpatched, because researchers reported confirming remote code execution against PHP-FPM through application-level code paths.

On exploitation, reports differ in tone. Amazon’s threat intelligence team reported an exploitation attempt on a honeypot on 17 October, four days before public disclosure. The US Cybersecurity and Infrastructure Security Agency added both CVEs to its Known Exploited Vulnerabilities catalog on 26 October. Other vendors reported seeing probing and some active exploitation, while at least one national cyber agency’s latest update said it had not yet seen active exploitation. The honest summary is that exploitation has been observed by credible sources, the scale is unclear, and you should treat unpatched servers as exposed.

For a site owner, the sensible reading is simple: patch promptly and check for signs of compromise, without panic. Most attacks of this type against small WordPress sites are automated and opportunistic, so a fixed runtime removes the risk entirely.

Step 1: Find out what PHP your site really runs

Do not guess. There are three reliable ways to check.

In the WordPress admin, open Tools, then Site Health, then the Info tab, and expand the Server section. It shows the PHP version and the server software. This reflects the PHP actually serving your site, not what a control panel says in a dropdown.

In your hosting control panel, look for a PHP selector, often called Select PHP Version, MultiPHP Manager or Software. Note the version and whether the host indicates that patched builds are in place.

If you have command line access, running `php -v` shows the command line PHP, which can differ from the web PHP. To see the web version, create a temporary file that calls `phpinfo()`, load it once, record the version and server API, and delete the file immediately afterwards. The server API line tells you whether you are on Apache module, FPM, CGI or LiteSpeed, which matters for risk. Never leave a phpinfo file on a live server.

Step 2: Ask your host the right questions

If you are on shared or managed hosting, the runtime is the host’s responsibility, and the best thing you can do is ask directly. Useful questions are:

  • Has the fix for CVE-2026-109618 and CVE-2026-109619 been applied to the PHP builds used by my account?
  • Which PHP branch am I on, and will it receive security fixes after 31 December 2026?
  • Were PHP workers restarted after patching, so the fixed code is actually loaded?
  • Do you use mod_php, PHP-FPM or LiteSpeed for my plan?

Reputable hosts will have already communicated about this. If yours has not, treat silence as a reason to ask, and to consider whether it is the right host.

Step 3: If you control the server, patch and restart

On a VPS or dedicated server, update PHP through your operating system’s package manager or your PHP repository, install the fixed version for your branch, and then restart the web server and PHP-FPM services. The restart matters, because long-running workers keep the old code in memory until they are restarted. After restarting, confirm the version and, where your distribution backports fixes, check the package changelog for the CVE identifiers.

Security teams also advised inventorying PHP runtimes you may have forgotten: control panels, containers, staging servers, old test machines and appliances that bundle PHP. A fixed production server does not help if a forgotten staging copy with real data is exposed.

If you use a volunteer-maintained third-party repository that had not published updated packages at the time, reports advised switching to distribution packages or building from source. Check your repository’s status page.

Step 4: If you cannot patch immediately

Sometimes you need a day or two. Reports suggested temporary measures that reduce exposure without making a system safe: placing the site behind a web application firewall that has rules for the known exploit patterns (Cloudflare said it deployed initial rules available on all plans), restricting access, or taking the system offline if it holds sensitive data and cannot be fixed. The PHP project also advised setting `session.upload_progress.enabled=0` as a temporary measure for a related session issue, to be set in the server configuration rather than in application code. Treat all of this as a bridge, not a fix. The complete fix is the updated runtime.

Step 5: Check whether you were hit

Because the issue was exploited before disclosure according to at least one report, it is sensible to look for compromise on any internet-facing server that was unpatched from mid-October. Signs to check:

  • Unfamiliar PHP files in uploads, theme or plugin folders, or files with recent modification times you cannot explain.
  • New administrator accounts in WordPress, or changed passwords.
  • Unexpected outgoing connections or high CPU use from PHP processes.
  • Spam pages, strange redirects or injected links on your site, especially visible to search engine crawlers but not to you.
  • Unfamiliar scheduled tasks.

A malware scanner from your host or a reputable security plugin helps, and Search Console’s Security issues report may warn you. If you find anything, restore from a clean backup taken before the compromise if possible, update everything, remove unknown accounts and rotate credentials. Because the flaw can expose data held in PHP memory, security teams advised rotating secrets that the application holds, such as database passwords, API keys and salts in the WordPress configuration file.

What this means for your SEO

Security is an SEO topic because a hacked site rarely stays quiet in search. Attackers often inject spam pages or hidden links, redirect visitors to scams, or host malware. Search engines respond by showing warnings in results, removing pages or applying manual actions. Recovery can take weeks even after cleaning, because pages must be recrawled and trust must be rebuilt.

Prevention is far cheaper. Keep PHP patched, keep a tested backup, monitor Search Console for security alerts and unexpected spikes in indexed pages, and run a periodic site audit so odd pages and redirects stand out. The robots.txt tool and the meta tag checker help confirm nothing strange has been injected into your pages. If your SEO plugin offers a 404 monitor and link report, use them: sudden clusters of unknown URLs or outbound links are an early warning sign.

A simple response checklist

  1. Identify your PHP version and server type today.
  2. Confirm with your host that the October 2026 fix is applied, or update yourself.
  3. Restart PHP workers and the web server.
  4. Scan for unfamiliar files, users and scheduled tasks.
  5. Rotate credentials if there is any sign of compromise.
  6. Review Search Console for security issues and indexing anomalies.
  7. Plan your move off any PHP branch that is nearing end of life.
  8. Set a calendar reminder to check for PHP security releases monthly.

The bigger lesson

This episode is a reminder that WordPress sits on a stack: the operating system, the web server, PHP, the database, WordPress core, a theme and plugins. Keeping only the top layers updated is not enough. Choose hosting that patches the lower layers quickly, ask questions when news breaks and avoid running unsupported PHP branches. If you manage client sites, send them a short, calm note explaining what you checked and what you changed. Clear communication is part of the service.

Frequently asked questions

Is WordPress itself vulnerable? The flaw is in PHP, not in WordPress. Researchers demonstrated it against WordPress and other PHP applications because they run on PHP, but updating WordPress alone does not fix it.

Do I need to do anything if my host manages PHP? Yes, confirm that your host has applied the fix and restarted workers. Most managed hosts handle patching, but confirmation is worth a short message.

I am on PHP 8.1. What should I do? PHP 8.1 no longer gets official updates. Ask whether your host provides a backported fix and plan an upgrade to a supported branch such as 8.3 or 8.4 after testing on staging.

Will updating PHP break my site? Patch releases within the same branch rarely break sites. Moving to a new branch can, so test on a staging copy first.

Could this have affected my search rankings already? Only if the site was compromised and spam or redirects appeared. Check Search Console and run an audit to be sure.

Sources: PHP 2026 release announcements, Help Net Security coverage of PHP2Shell, Rescana summary of the patch guidance.

Keep reading

Comments

Leave a comment

Check your own site

Run a free audit and see what to fix first.

Run a free audit