The alarming part of PHP2Shell is not its nickname. It is the possibility that a vulnerable PHP runtime can be attacked before the application gets a chance to defend itself. The useful story is what happened, what the evidence actually proves, and what a website owner should do next. This guide covers the latest verified PHP security developments reviewed on 26 October 2026, including the two critical PHP2Shell CVEs and subsequent advisories. It synthesizes public primary sources; it is not an independent forensic investigation.
What is PHP2Shell? The critical PHP vulnerabilities explained
PHP2Shell refers to CVE-2026-109618 and CVE-2026-109619, two memory-safety vulnerabilities in PHP itself. The PHP project classifies both as critical. Under exploitable conditions, a remote attacker does not need an application account to reach dangerous runtime behavior.
CVE-2026-109618 concerns out-of-memory handling: an interrupted operation can leave partially initialized request data behind, and cleanup can subsequently act on that invalid state. The official advisory describes Apache mod_php as particularly exposed because the relevant sequence can happen before application code runs.
CVE-2026-109619 concerns stale state retained by a PHP worker after request-owned memory has been released. A later request handled by the same worker can encounter that invalid state. This is a runtime-lifecycle problem, not simply an unsafe SQL query or a weak WordPress password.
Remote code execution means code running with the compromised process's permissions. It does not automatically mean root access, every database stolen, or every PHP website compromised. Keeping that distinction clear makes the risk assessment more useful.
Affected PHP versions and the emergency security fixes
For the original PHP2Shell pair, the Canadian Centre for Cyber Security lists these fixed upstream versions: PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Earlier releases within those branches need the corresponding update or an explicitly confirmed vendor backport.
The exposure review includes Apache mod_php, PHP-FPM, php-cgi, FrankenPHP and LiteSpeed deployments. Also inventory products and containers that embed PHP. The application being behind a familiar hosting brand does not tell you which runtime its workers actually use.
For older branches, obtain your distribution or LTS vendor's explicit security guidance or move to a supported release. A lower-looking package version can include a backported fix; an apparently recent container tag is not evidence that the deployed image contains it.
Treat this version list as a dated minimum for these two CVEs, not a permanent recommendation to pin these releases forever. Check your provider's current advisory before choosing an upgrade target.
The PHP2Shell timeline: early attempts, patches and changing evidence
17 October: Amazon Threat Intelligence later identified an attempted exploitation event in its MadPot telemetry, four days before public disclosure. AWS says the activity targeted a honeypot and explicitly leaves open whether the attempts would have succeeded against real-world systems.
21 October: PHP published the emergency fixes. AWS described additional attempts around disclosure. This is why an investigation window should not begin only when your team first read the headline.
22 October: Sophos initially described a successful customer compromise, then corrected that assessment at 21:21 UTC. Its revised statement described scanning and failed attempts, with no evidence of successful compromise in that telemetry at that time.
23–26 October: further technical assessments, a separate session-related advisory, independent honeypot findings and updated Windows packages expanded the response. These are different developments with different scopes; the sections below explain them individually.
Which systems were actually hacked—and which were taken offline?
NCSC-NL confirms that it temporarily took its own website offline as a precaution. Its notice also says other organizations, including government agencies, proactively disabled websites. That is evidence of defensive shutdowns, not proof that those organizations were breached.
A separate October 24 report from the 0x4D31 honeypot-data project describes 35 shell-execution events across three instrumented PHP honeypots running PHP 8.4.26 with Apache mod_php. The operator correlates network evidence with Apache-parent process execution. This is stronger than a suspicious request or a crash alone.
Those were intentionally vulnerable research systems running an unpatched version. The report does not establish 35 hacked companies, a bypass of PHP 8.4.27, or exploitation of every CVE discussed here. The event count is not a count of distinct victims.
The primary sources reviewed for this article do not establish a named list of production organizations successfully breached through PHP2Shell. That is the limit of this review, not proof that no undisclosed compromise exists. Vendor telemetry, public disclosures and research sensors each show only part of the picture.
- NCSC-NL: precautionary shutdown and evolving assessment
- Primary honeypot report: October 24 execution evidence
- Sophos: correction of the earlier customer-compromise claim

Why a crash, a proof of concept and a breach are different
CrowdStrike's October 23 assessment stresses that many public demonstrations were crash proofs rather than portable, reliable code-execution tools. Its researchers also describe the importance of deployment details and the difficulty of adapting an exploit to a particular environment.
That assessment is dated and scoped to what the researchers had observed. It does not erase later evidence from another operator. Equally, later execution on a specific honeypot does not make every earlier failed request a successful intrusion.
For incident reporting, use precise labels: attempt observed; execution demonstrated; production compromise confirmed. Ask which system, which version, what evidence and what timestamp supports the label. A spectacular headline should survive those four questions.
WordPress, PHP-FPM and shared hosting: who should act?
WordPress published a PHP security notice because the runtime sits underneath the CMS. Its guidance says these vulnerabilities are not specific to WordPress and that no WordPress release is planned to fix the PHP issues. Updating plugins alone is therefore not the remedy for this runtime vulnerability.
In WordPress, check Tools → Site Health → Info → Server for the PHP version. Ask your host to confirm the patched package serving your particular site, including any separate pools or application containers.
For custom PHP applications, ask the same runtime questions rather than relying on a framework name. For a Next.js-only deployment, establish whether any separate service, CMS, appliance or integration actually runs PHP before treating this as a direct PHP-runtime exposure. Technology inventory beats guessing.
How to patch PHP and verify the web server is really updated
Start with an inventory you can act on: hostname, application owner, PHP branch, deployment method and hosting provider. Record which systems serve public requests, then give each one an update owner and a verification result.
Apply the appropriate supported package or provider-managed update. Rebuild container images where necessary and replace the running instances; changing a Dockerfile without rolling out a new image changes no running server.
Verify the actual web-serving runtime after workers restart. The terminal's php command and the application's PHP-FPM or Apache runtime may be different installations. A version check on one machine also says nothing about a forgotten replica.
Use the commands below for a local inventory, not as proof that every web worker is patched. On managed hosting, use the provider's supported inspection tools. Do not leave a public phpinfo page exposed merely to make checking easier.
# Local inventory only: CLI may differ from the web runtime.
php -v
php --ini
# Record separately:
# - the PHP version/package used by the live web application
# - vendor confirmation of the security fix
# - worker restart or container rollout completion
# - login, upload, session and background-job smoke checksCannot patch immediately? Use scoped mitigations, not false reassurance
The PHP advisories are explicit that configuration changes do not completely replace the fixes. Where you cannot safely update an exposed application, consider restricting its reachability or taking it offline while the owner prepares remediation.
The stale-state advisory includes disabling session.upload_progress.enabled before request parsing and restarting workers. Treat this as protection against specific paths, not a universal PHP2Shell cure.
Do not casually copy memory_limit=-1 into production. The OOM advisory discusses it as a partial workaround with important resource-control qualifications; removing a PHP memory cap has operational consequences. Review the complete official guidance with whoever manages the host.
Cloudflare describes WAF protections for known PHP2Shell traffic. Such filtering is an additional layer while you patch, not evidence that the underlying runtime is repaired. Check the origin's exposure too: protection on one route to a server does not automatically cover another.
CVE-2026-115560: the separate session upload-progress warning
PHP's October 23 follow-up describes CVE-2026-115560 under an unusual session-serializer switch at runtime while upload progress is enabled.
The project recommends disabling session.upload_progress.enabled pending the next regular bugfix release. Retain that mitigation if already applied, and keep the original PHP2Shell patches installed.
Track this as a separate issue with its own conditions. It does not establish that every October 21 fix failed.
October 26 Windows update: Brotli adds another patch check
PHP announced Windows rebuilds 8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1 on October 26. They include Brotli 1.2.1 for the separate CVE-2026-111497 decoder flaw.
The PHP notice identifies a cURL path when automatic response decompression is enabled. The -1 package suffix changes; the PHP runtime version does not. Windows operators should verify the package build too.
One response can involve several independent components. Keep this dependency update distinct from the original PHP2Shell vulnerabilities.
If compromise is suspected: investigate as well as patch
AWS recommends looking back to at least October 17 and reviewing suspicious requests, unexpected process execution and file changes. Its listed infrastructure indicators are investigative leads, not proof that every matching connection belongs to this campaign.
My practical response checklist is to preserve relevant logs before normal cleanup, identify the affected hosts and service accounts, and involve the hosting provider or incident-response owner. Correlate multiple observations rather than declaring a breach from an isolated HTTP error.
If an investigation establishes intrusion, plan recovery from a trusted state and rotate exposed credentials as part of that response. Installing a patch closes a vulnerability; it does not itself remove an existing web shell, undo stolen data or prove the system is clean.
Record the investigation outcome separately from the patch outcome. A useful ticket can say that all workers are patched while the historical compromise review remains open. Combining those statuses hides unfinished work.
PHP security FAQ: WordPress, patches, WAFs and SEO
Does updating WordPress fix PHP2Shell? No. The PHP runtime needs the relevant fix; WordPress's own notice explains why a CMS update is not the solution to these particular issues.
Does a WAF make patching optional? No. Filtering and a repaired runtime are different controls. Keep the vendor's mitigations current and verify the underlying update.
Were all websites that went offline hacked? No. Some organizations explicitly described precautionary shutdowns. Require a breach disclosure or equivalent evidence before calling an outage a compromise.
Can a compromised website affect SEO? Unauthorized redirects, injected pages and unavailable content can create serious problems for visitors and search visibility. That is a general operational concern, not a measured traffic or ranking outcome from this incident. Secure and restore the site first; then inspect its public pages and indexing state.
Is a vulnerability scanner enough? Treat its result as one check. Confirm coverage, package identity, runtime configuration and the actual rollout. Backports and multiple installations can make a simple version-string comparison misleading.
A practical checklist for developers and website owners
Ask your provider: Which PHP package is serving my site? Does it include the relevant fixes? Were all workers or containers replaced? Which temporary mitigations remain enabled? What logs were reviewed, and what remains unknown?
Keep answers in one place with dates and named owners. A claim that the server is updated is more useful when it identifies the package and the application it serves.
For the next incident, maintain a small inventory, a tested upgrade path and a way to contact the person who controls the runtime. These are ordinary maintenance habits, but they are what make an urgent response possible without improvising every step.
My takeaway: respond quickly to the technical risk and slowly to claims about victims. You do not need an exaggerated breach count to justify fixing a critical vulnerability.
Research date, corrections and future updates
26 October 2026: this draft was researched against the primary sources linked throughout the article. It includes the Sophos correction, the scoped October 24 honeypot report, the session upload-progress follow-up and the October 26 Windows package notice.
Before publication or a later revision, recheck official PHP notices and affected vendors for newer releases. If a named organization publicly confirms a PHP2Shell breach, add the disclosure date, its own statement and the exact scope; do not silently turn an earlier suspected incident into a confirmed one.
This is a dated reporting and remediation guide, not a claim that Khuram personally reproduced the vulnerabilities or investigated the organizations discussed.
A patch handoff record that another operator can verify
Use one row per serving environment, not one row per application name. Record the host or pool, runtime branch, package build, deployment identifier, vendor evidence of the fix, worker restart time and verification owner. Keep a separate investigation status. A successful patch rollout does not establish that no earlier compromise occurred.
For a hypothetical application with a web pool, a background worker and an older staging container, checking only the terminal on one host leaves the other runtimes unresolved. Mark unknown inventory explicitly and assign it to an owner. The table below is an operational worksheet, not a report of systems tested by this site.
Editorial revision, 29 October 2026: added the handoff worksheet and clearer verification boundaries. The attack-reporting sections remain a dated review of the sources available through October 26; this addition does not claim a fresh forensic investigation or a newly confirmed victim. Check current PHP and vendor notices before choosing an upgrade target.
| Environment | Record before closing | Separate investigation question |
|---|---|---|
| Public web pool | Serving package, rollout and worker restart | Any suspicious historical execution? |
| Background workers | Runtime and restart confirmation | Unexpected jobs or file changes? |
| Container replicas | Running image identifier and patch evidence | Any forgotten or older instance? |
| Managed hosting | Provider confirmation for this site | What logs and incident support exist? |
| Windows package | Package build as well as runtime version | Which dependency update applies? |
Sources, AI assistance, and editorial standards · Report a correction



