PHP2Shell vulnerabilities 2026 refers to two critical security flaws in the PHP runtime: CVE-2026-109618 and CVE-2026-109619. Disclosed with emergency fixes on 21 October 2026, they can enable unauthenticated remote code execution in affected environments. Website owners should identify their actual running PHP build, apply the appropriate vendor-approved security update and check for possible compromise.
Updated for 23 October 2026. This explainer separates confirmed vendor facts from assumptions. Being vulnerable does not by itself prove that a website has already been hacked. The primary references are the PHP security release, Google Cloud's vulnerability explanation and WordPress security notice.
What are the PHP2Shell vulnerabilities in October 2026?
PHP2Shell is the public label for two serious errors in how PHP handles memory and request state. PHP is the server-side language used by WordPress, WooCommerce and many custom applications. Both flaws received a critical CVSS v4.0 score of 9.2 out of 10, according to the 21 October 2026 Google Cloud advisory.
CVE-2026-109618: out-of-memory corruption
This flaw can be triggered when PHP handles an allocation failure while request data is only partly initialised. Later cleanup may treat that incomplete data as valid. Under exploitable conditions, memory corruption can lead to attacker-controlled code execution. This is a runtime flaw, not a particular vulnerable WordPress plugin.
CVE-2026-109619: stale request state
This issue involves internal request state being reused after its supporting memory has been freed. A later request can encounter that stale state before it is reset. The PHP project's own advisory describes confirmed attack paths and why simply hiding error messages does not provide protection.
Which PHP versions are affected and which are fixed?
The initial safe upstream versions were released for PHP 8.2 through 8.5. Compare your actual running version against the following table; a hosting provider's backported package can have an older-looking version number, so confirm the vendor's build notice when applicable.
| PHP branch | First fixed upstream version | Action |
|---|---|---|
| PHP 8.5 | 8.5.12 | Update to 8.5.12 or a newer fixed release |
| PHP 8.4 | 8.4.27 | Update to 8.4.27 or a newer fixed release |
| PHP 8.3 | 8.3.36 | Update to 8.3.36 or a newer fixed release |
| PHP 8.2 | 8.2.35 | Patch immediately; plan migration before end of life |
| PHP 8.1 or earlier | No upstream supported-branch release | Move to supported PHP or verify a complete vendor backport covering both CVEs |
Source: official PHP releases dated 21 October 2026. The PHP project provided exceptional source backports for some older branches, and some Linux distributions or hosting vendors publish their own patched packages. An old branch receiving an emergency backport is not the same as regaining regular upstream support.
Why do PHP2Shell vulnerabilities affect WordPress and custom sites?
Affected PHP servers may process hostile requests before a content management system starts executing its own code. This means PHP2Shell can affect WordPress, WooCommerce, Drupal and custom PHP websites even if their CMS or plugins are up to date. The WordPress project confirmed that no WordPress-core update is planned for these PHP flaws.
The PHP advisory identifies PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed as potentially exposed processing environments. It describes the demonstrated risk as highest with mod_php, but owners should not assume other deployment modes are safe without patching.
How do you check your site's PHP2Shell exposure?
Exposure assessment starts with the live PHP runtime that answers web requests, not a theme version or a control-panel screenshot from last year. Owners can use the following verification route.
- Identify hosting responsibility. Are you on shared hosting, managed WordPress, a VPS or a container platform? Know who can install PHP updates.
- Check the version. On WordPress, go to Tools > Site Health > Info > Server and review the PHP version. Your host may also show the active version in its panel.
- Match the actual build. Compare the version or provider package build with the patched-release table and the host's written advisory.
- Confirm the patch is active. The server may have updated packages while older PHP workers remain running; ask your administrator to verify the serving runtime.
- Document the result. Record affected sites, build versions, patch dates, responsible teams and whether any suspicious activity was found.
What changes the urgency of a PHP2Shell risk?
The flaws are critical, so every exposed installation needs urgent attention. The following triage table helps teams organise work without falsely claiming that every exposed website is compromised.
| Situation | Priority | Immediate decision |
|---|---|---|
| Public website using unpatched PHP | Emergency | Apply vendor patch and review evidence of misuse |
| Server on PHP 8.1 or older | Emergency | Move to supported branch or verify full vendor backport |
| Patch installed but runtime unverified | High | Check actual web workers and all sites on the host |
| Confirmed patched runtime, no suspicious signs | Monitor | Retain evidence and follow routine security monitoring |
What does not fully protect a website from PHP2Shell?
Updating only WordPress, clearing a browser cache or switching off one plugin does not repair the PHP runtime. A web application firewall can reduce some attack paths, but the PHP project explicitly states that only the security update is a complete fix. Temporary settings can have operational side effects and should be applied only by an informed server administrator.
Do not confuse a website availability failure with proof of exploitation. Unexpected redirects, new administrators, unfamiliar files or anomalous server activity warrant investigation, but a site can also fail after an ordinary update. Our guide to malware and browser warnings explains how to distinguish these cases.
What should a business owner do first?
Use this five-part response sequence to reduce exposure and keep a record for your hosting team.
- Send the CVE identifiers and affected-site list to the hosting or development team.
- Request confirmation of the patched PHP build for every public website.
- Back up site files, database and configuration securely, preserving useful logs when suspicious activity exists.
- Apply the vendor-approved patch, restart affected workers and verify forms, checkout and login.
- If compromise is suspected, coordinate investigation before deleting evidence or restoring files.
For a broader routine beyond this emergency, use our small-business website security checklist and maintenance checklist. These guides cover backups, accounts and routine controls, while the emergency patch remains the priority.
Official sources and editorial limitations
The key facts were cross-checked against PHP, WordPress, Google Cloud and the UK National Cyber Security Centre, all issuing guidance in October 2026. This article does not claim to have tested a particular customer's server, confirmed active exploitation on any RKWS client website or conducted original forensic research.
Frequently asked questions about PHP2Shell
What is PHP2Shell?
It is the collective name for critical PHP runtime vulnerabilities CVE-2026-109618 and CVE-2026-109619, for which emergency security fixes were released on 21 October 2026.
Which PHP versions fix PHP2Shell?
The first fixed upstream releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Vendor-specific backported builds may use different package identifiers.
Is WordPress itself the cause of the vulnerability?
No. WordPress is one of many applications that can run on vulnerable PHP. The security issue sits in the PHP runtime beneath the application.
Does a vulnerable PHP version prove someone hacked my site?
No. Vulnerability identifies potential exposure. Whether an attacker acted on it requires separate evidence from logs, files, accounts and other relevant systems.
Next step: patch, then verify
Ask your host which patched PHP build is serving your domain and when the update was applied. If the answer is uncertain, request a technical review. Contact RadhaKrishna Web Solutions with the URL and hosting details, not passwords or private access tokens.
Frequently asked questions
What is PHP2Shell?
PHP2Shell is the collective name used for two critical PHP runtime vulnerabilities, CVE-2026-109618 and CVE-2026-109619, disclosed with emergency fixes on 21 October 2026.
Which PHP versions fixed PHP2Shell?
The first patched upstream releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. For vendor-provided builds, confirm both CVEs are fixed in the vendor advisory.
Does updating WordPress fix PHP2Shell?
No. The vulnerabilities are in the PHP runtime, not WordPress core. Your host or server administrator must apply the PHP security update.
Does a PHP2Shell alert mean my website has been hacked?
No. A vulnerable version indicates exposure, not confirmed compromise. Apply the fix and investigate logs and unexpected changes if suspicious activity is found.
