24 Oct 2026
PHP2Shell Explained: Critical PHP Remote Code Execution Flaws CVE-2026-109618 and CVE-2026-109619
Two critical, unauthenticated PHP remote-code-execution bugs, nicknamed PHP2Shell, were patched in emergency releases on 21 October 2026.
On 20 October 2026, technical details about two unpatched, critical PHP vulnerabilities leaked publicly before the PHP project’s own coordinated release — reportedly surfacing on Hacker News roughly 21 hours ahead of schedule. The PHP security team responded by shipping emergency patches the next day, 21 October, fixing two unauthenticated remote code execution flaws now widely referred to by the exploit tool name attached to the leak: PHP2Shell.
This article is a plain-English advisory for business owners and website operators, not a technical deep-dive for PHP internals engineers. If you run a website, store, or web application on PHP — including if you’ve never personally touched PHP and simply pay a host or developer to run one — this is worth ten minutes of your attention.
Last reviewed: 24 October 2026, against the sources listed at the end of this article. This is a fast-moving story; treat specific version numbers and status details as accurate as of that date, and verify against PHP’s own security page before acting on anything time-sensitive.
Why this matters
PHP powers a very large share of the websites on the internet — WordPress alone, which runs on PHP, is estimated to power roughly four in every ten websites, and that’s before counting Laravel, Drupal, Magento, and custom-built PHP applications. A critical, unauthenticated remote code execution vulnerability in the PHP runtime itself — not in a specific plugin or framework, but in the language’s own request-handling — has an unusually wide blast radius.
“Unauthenticated remote code execution” means exactly what it sounds like: an attacker does not need a username, password, or any existing access to your site. If a vulnerable server receives a specially crafted request, the vulnerability can potentially let the attacker run their own code with the privileges of the web server process — which can mean full compromise of the application, the ability to read or alter data, plant further malware, or use the server as a foothold into the rest of your network.
Timeline of disclosure
- 20 October 2026, ~15:20 UTC — Exploit details for the PHP vulnerabilities began circulating publicly, reportedly first surfacing on Hacker News, ahead of PHP’s planned coordinated disclosure.
- 20 October 2026 (later) — The PHP project issued a notice confirming two critical vulnerabilities (CVSS v4.0 score of 9.2) and announcing an emergency release scheduled for the next day. CVE identifiers and full technical details, including affected and fixed version numbers, were withheld until the release itself.
- 21 October 2026, ~03:02 UTC — Cloudflare reports its web application firewall began blocking exploitation attempts against its customers — including customers on its free tier — roughly nine hours before the public release, based on its own early analysis of the leaked details.
- 21 October 2026, 14:00 UTC — PHP shipped emergency security releases: PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35, fixing CVE-2026-109618 and CVE-2026-109619. Minimal source-level backports were also made available for PHP 7.4, 8.0, and 8.1 for organizations building from source — these are not full vendor-supported releases, and those branches remain end-of-life.
- Ongoing — Security vendors, including Cloudflare, have reported observing active exploitation attempts and adaptation of attack traffic to evade early detection rules. These are vendor-reported observations, not independently verified by this article, but they are consistent with how quickly leaked, high-severity PHP vulnerabilities tend to be weaponized.
The two CVE-2026-109618 and CVE-2026-109619 vulnerabilities
PHP’s security team and multiple independent vendors (including Rapid7 and Fastly) describe these as two distinct memory-safety bugs in PHP’s core request-handling, both reachable without authentication:
CVE-2026-109618 is described as memory corruption related to how PHP handles out-of-memory conditions during request processing. In plain terms: under certain crafted request conditions, PHP’s handling of a memory-exhaustion scenario can be manipulated in a way that corrupts memory it shouldn’t, which an attacker can potentially leverage to execute arbitrary code.
CVE-2026-109619 is described as a use-after-free vulnerability tied to state that persists between requests longer than it should — memory that was freed is later accessed again as though it were still valid, a classic and historically very exploitable class of memory-safety bug.
Public reporting points to the multipart request-handling path and session upload-progress tracking as the likely area involved, but as of this review PHP’s own advisory had not published the precise technical mechanism or a line-by-line root cause for either CVE. Treat specifics beyond “unauthenticated RCE via crafted requests to any PHP web-request-serving configuration” as unconfirmed until PHP’s official advisory states otherwise.
Both vulnerabilities carry the same CVSS v4.0 base score of 9.2 according to PHP’s own release notice. Some leaked pre-disclosure material reportedly circulated a CVSS 10.0 figure; that number did not come from PHP’s official advisory, and this article uses PHP’s own stated score.
What’s confirmed vs. what’s still being clarified
| Status | |
|---|---|
| Two critical, unauthenticated RCE vulnerabilities exist in PHP core | Confirmed by PHP’s own security release |
| CVSS v4.0 score of 9.2 for both | Confirmed per PHP’s official notice |
| Fixed in PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 | Confirmed by the 21 October release |
| Exact technical root cause / affected code path | Not yet fully detailed in PHP’s public advisory as of this review |
| Active exploitation in the wild | Reported by vendors (Cloudflare and others); not independently verified here |
| Whether PHP 7.x / unsupported branches are “fixed” | No — only minimal source backports exist; these branches remain end-of-life and unsupported |
Who is affected
According to vendor guidance (notably the Canadian Centre for Cyber Security’s alert and Rapid7’s analysis), the risk applies broadly to any PHP installation that actively serves web requests, regardless of the specific deployment method:
- PHP-FPM (the most common modern deployment, used behind nginx)
- Apache with mod_php
- php-cgi
- FrankenPHP
- LiteSpeed’s PHP integration
This means the vulnerability is not specific to one hosting stack, one CMS, or one framework — it sits beneath all of them, in the PHP runtime itself. If your site runs WordPress, Laravel, a custom PHP application, or anything else built on PHP, the underlying PHP version is what determines your exposure, not the application layer on top of it.
How to check if you’re affected
You do not need to be a developer to do this first step — you need to know your PHP version.
- Ask your hosting provider directly. Most shared and managed hosts (including Hostinger and similar providers) show the active PHP version in the hosting control panel, often under something like “PHP configuration” or “PHP management.” If you can’t find it, a support ticket asking “what PHP version is running on my account, and has it been patched for the October 2026 PHP2Shell vulnerabilities (CVE-2026-109618, CVE-2026-109619)?” is a reasonable, specific question to ask.
- If you manage your own server, run
php -vfrom the command line, or checkphpinfo()output (only in a non-public, authorized context — never exposephpinfo()on a live, internet-facing page). - Compare the reported version against the fixed releases: PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 (or later patch releases in each of those lines, once PHP ships them). Anything below those patch levels on an affected minor version is unpatched.
- If you’re running PHP 8.1 or earlier, you are on an unsupported branch for this specific issue beyond the minimal source backports PHP provided — the real fix here is to plan a migration to a supported PHP version, not to treat the backport as equivalent protection.
What patching does — and does not — prove
Installing the patched PHP version closes the vulnerability going forward. It does not retroactively tell you whether your server was already compromised before you patched. If your server was internet-facing and unpatched for any period after the 20 October leak, patching alone doesn’t rule out that something already happened during that window.
Prioritized remediation guidance
- Patch first, and patch now. Update to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 (or the current patch release in your line) as the single highest-priority action. There is no complete mitigation that substitutes for patching.
- If you cannot patch immediately, apply the interim mitigation some researchers have suggested — disabling
session.upload_progress(session.upload_progress.enabled = Off) — while treating this explicitly as a partial, temporary measure, not a fix. At least one researcher reportedly noted this mitigates only one of the two vulnerabilities, not both. - If you sit behind Cloudflare or another WAF/CDN with relevant rules, confirm the protection is actually active on your specific site or plan — don’t assume coverage without checking.
- After patching, review logs for unusual activity in the window between the 20 October leak and your patch time: unexpected processes spawned by the web server user, unfamiliar files written to web-accessible directories, outbound connections you can’t explain, or new admin accounts/users you didn’t create.
- If you have any reason to suspect compromise — not just “we patched late,” but actual signs of unusual activity — treat it as a potential incident: rotate credentials and API keys used by the affected application, and consider engaging someone to do a proper compromise assessment rather than assuming a patch alone resolved it.
Questions to ask your hosting provider
- Has the server(s) hosting my site been updated to a patched PHP version, and when?
- Was the server exposed to the internet and running an affected PHP version between 20 and 21 October 2026?
- Do you have logs covering that window that could help determine whether anything unusual occurred?
- Is there a WAF or equivalent protection active on my account specifically, not just available as an add-on?
What this article is not
This is an informational advisory, written for business decision-makers, not a substitute for PHP’s own official security advisory or your hosting provider’s specific guidance. It does not include exploit code, proof-of-concept payloads, or step-by-step attack instructions, and none of the defensive checks described above should be run against any system you don’t own or have explicit written authorization to test.
Key takeaways
PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a real, confirmed, critical pair of unauthenticated remote code execution vulnerabilities affecting the PHP runtime itself, patched in emergency releases on 21 October 2026 after exploit details leaked early. If your site runs on PHP in any form, confirming your patched version is the single most important action — everything else, including WAF protection and log review, is secondary to actually closing the hole.
A separate, newer PHP advisory — CVE-2026-115560 — surfaced just two days later and is not fixed by these same patches; we cover it in a dedicated follow-up article since its conditions and status are meaningfully different.
Shahid Security’s Vulnerability Assessment engagements include exactly this kind of runtime/platform-level exposure review, not just application-layer scanning.
Not sure whether your hosting setup is actually patched, or want a second opinion before you assume it is? Email info@shahidiqbal.com or book a free consultation.
Sources: Canadian Centre for Cyber Security — AL26-026, Rapid7 — CVE-2026-109618 and CVE-2026-109619 analysis, Fastly — Critical RCE vulnerabilities discovered in core PHP, Bitsight — CVE-2026-109618 and CVE-2026-109619 (PHP2Shell), BleepingComputer — PHP ships emergency patches for critical PHP2Shell flaws, SANS Internet Storm Center — Critical PHP Vulnerability diary, Huntress — Rapid Response: php2shell, ppc.land — Cloudflare blocks php2shell exploits 9 hours before PHP flaws went public, Phoronix — PHP Updates Released For Two Critical Code Execution Vulnerabilities. For the authoritative, continuously updated technical record, check php.net’s own security advisories directly.
FAQ
Is my website affected if I don't know what PHP version it runs?
Possibly — PHP powers a very large share of the web, including WordPress, Laravel, and many custom applications, often without the owner ever directly interacting with it. If you don't know your PHP version, that's the first thing to find out, either from your hosting control panel, your developer, or by asking your host directly.
Does installing a web application firewall mean I don't need to patch?
No. A WAF (including the free-tier protections some providers like Cloudflare rolled out around this disclosure) can block known exploit patterns at the edge, but it is a stopgap, not a fix. Traffic that reaches your server by another path, and future variants of the exploit, are not guaranteed to be caught. Patching the PHP runtime itself is the only real fix.
How urgent is this compared to a typical PHP update?
Significantly more urgent. These are unauthenticated remote code execution vulnerabilities, rated 9.2 on CVSS v4.0 by PHP's own security team, affecting any server actively processing PHP web requests. That combination — no login required, full code execution, broad exposure — is about as serious as a vulnerability gets, which is why PHP shipped these as emergency out-of-cycle releases rather than waiting for a routine update.

Written by Shahid Iqbal
Founder & Cybersecurity Consultant, Shahid Security
