Updated October 22, 2026: The PHP security releases are available. The maintained version of this guide is PHP2Shell: Fixed Versions, Patch Mechanics and Verification.
Updated October 22, 2026. PHP2Shell patches are available. The PHP project released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on October 21 for CVE-2026-109618 and CVE-2026-109619. Its current security announcement urges immediate updates for PHP installations serving web requests. If you read an earlier version of this page, the release is no longer pending.
For a WordPress owner or a developer running a PHP application, the first question is who updates the interpreter that actually serves the website. Updating a plugin, rebuilding the frontend, or checking the PHP binary in your shell does not establish that the serving runtime received either fix. Ask for the package revision, the running service and the evidence connecting them.
Exploitation update, October 22, 2026: watchTowr reports observing exploitation through its Attacker Eye honeypot network as of October 21. This is the researcher’s observation; it does not establish whether a particular server was compromised. Preserve relevant logs and investigate suspicious history separately from patch deployment.

Which PHP versions fix PHP2Shell?
| PHP branch | First upstream security release for both CVEs | What to record |
|---|---|---|
| 8.5 | 8.5.12 | Serving instance and active runtime |
| 8.4 | 8.4.27 | Package provider and revision |
| 8.3 | 8.3.36 | Restart or replacement completed |
| 8.2 | 8.2.35 | Patch now; plan branch migration |
| 8.1 and older | Use a verified vendor backport or migrate | Provider advisory covering both CVEs |
Bu PHP announcement also provides minimal source backports for 7.4, 8.0 and 8.1, while noting that these branches are no longer maintained by the PHP project. A backport is not an extension of upstream support. PHP 8.2 reaches end of life on December 31, 2026. For distribution packages, compare the complete vendor revision with that vendor’s advisory; an older base version alone cannot settle whether a patch was backported.
Treat the table as a release baseline, not a remote scanner. It does not identify the build running behind your hostname, and it cannot tell you whether an already-compromised host is trustworthy. If the installed revision is unclear, leave that instance open in the maintenance record rather than converting uncertainty into a green status.
What the two fixes actually change
Bu CVE-2026-109618 advisory describes an out-of-memory failure interrupting work while request data is incomplete. Cleanup can then use invalid state. The repair replaces the unsafe OOM jump with deferred handling at a VM safe point and a hard process exit at a higher threshold. Demonstrated mod_php exploitation can occur before application code runs; FPM susceptibility does not imply an equally demonstrated exploit for this CVE.
The practical distinction is between abandoning an operation and finishing it safely. If cleanup assumes initialization completed, jumping out halfway through leaves it with a false premise. An application validator cannot repair that premise after request startup has already failed. The patch changes how the engine crosses that failure boundary; it is more than an extra check in a WordPress route.
Bu CVE-2026-109619 advisory concerns worker-global references to request-owned memory. A request can leave a reference after its memory is released; a subsequent request on the same worker may consume it before normal initialization resets it. The complete fix resets the wider state. Confirmed paths include session upload progress and PHP 8.5 fatal backtraces. Other state families remain conditional on a reachable producer and consumer.
Here the boundary is a request’s lifetime. A worker can remain alive while the data belonging to one request has ceased to exist. Reusing the worker does not make that old reference valid. This is why the existence of multiple workers is not a useful reason to postpone the update: distributing requests changes which worker sees them, not the correctness of a stale reference. It is also why an ordinary successful page load is a weak negative test.
| Failure boundary | What the repair must establish | What your smoke test establishes |
|---|---|---|
| Interrupted initialization | Cleanup cannot act on incomplete state | The chosen normal request still works |
| End of request lifetime | Persistent references no longer point into released request memory | The chosen user flow still works after replacement |
| Deployment activation | Requests reach the intended fixed runtime | Only the instances and routes actually observed |
Prioritize the runtime, then identify every serving instance
PHP’s security announcement covers FPM, mod_php, CGI, FrankenPHP and LiteSpeed, with the highest stated risk for mod_php. That is a reason to prioritize exposed mod_php deployments, not to exclude other serving modes. Keep the two CVEs separate when reading technical prerequisites: a demonstrated path for one does not automatically establish the same path for the other.
Follow one hostname from the web-server configuration to its backend socket, service or container. If a hosting panel selects PHP per site, record the site-specific choice. If the application has several replicas, record the entire active replica set. A single newly replaced pod is insufficient evidence for an old pod that still receives traffic. Background jobs should also be inventoried, while keeping their reachability distinct from an internet-facing web request.

The following commands are narrow CLI inventory examples based on PHP’s documented command-line switches. Run them only in a context you administer. They were not executed against a live PHP2Shell target for this article. The result describes that invocation, not every web worker on the machine.
php -v
php --ini
php -r 'echo json_encode(array(
"version" => PHP_VERSION,
"sapi" => PHP_SAPI,
"ini" => php_ini_loaded_file()
), JSON_PRETTY_PRINT), PHP_EOL;'
Keep that record separate from your serving-runtime observation until you can connect them. A command inside an administrative container can be correct and still say nothing about the application container. Prefer an existing access-controlled operational view over publishing a phpinfo page. Collect the minimum needed fields; a full environment dump can create a new disclosure problem.
For a container you own, inspect its identity without changing it. The Docker inspect reference documents formatted output. Match the result with the deployment definition and the actual request path; the image identifier is evidence of identity, not a standalone security verdict.
docker inspect --type=container \
--format '{{.Name}} {{.Image}} {{.Created}}' YOUR_PHP_CONTAINER
Why disabling upload progress is not a complete fix
Bu stale-state advisory says disabling upload progress blocks the demonstrated session paths, while PHP 8.5 fatal-backtrace handling and other state paths require separate consideration. The project’s response guidance requires the setting to apply before request parsing and every worker to restart. Application-level ini_set() is too late for that boundary. These are partial exposure reductions, not substitutes for the complete update.
; Partial mitigation for confirmed session paths only
; Apply through startup/server configuration and restart every worker
session.upload_progress.enabled = 0
A change ticket should state exactly which path a temporary setting addresses and which owner will replace it with a fixed runtime. Otherwise the workaround can become a permanent control whose scope nobody remembers. Confirm any effect on upload-progress functionality with the application owner. Do not describe the site as fully protected simply because its configuration now contains this line.
Bu PHP response guidance also discusses administratively enforcing memory_limit=-1 as a partial OOM-path measure, combined with conservative request-size controls and an external availability boundary. It explicitly warns against RLIMIT_AS and RLIMIT_DATA. Removing PHP’s limit is not a casual tuning change: evaluate resource containment and service availability with the runtime owner. An underlying allocation failure remains relevant, and updating is the complete solution.
Avoid copying a configuration bundle from another host. Your frontend, upload needs, pool layout and resource limits determine what it will do. In an urgent window, a provider-supported fixed package is easier to verify than a collection of emergency settings whose interactions have not been reviewed. If you cannot update, record the remaining exposure and an accountable decision about restricting access.
Verify activation without pretending a normal request is an exploit test
Use separate acceptance gates for software delivery, activation and application behavior. First obtain the provider’s fixed revision. Then confirm the expected runtime is active for every serving instance. Finally exercise ordinary flows with dedicated test accounts. Keep a failure at any gate visible. Closing the ticket on package installation alone loses the distinction between a file on disk and the process handling requests.

| Gate | Evidence to keep | Do not infer |
|---|---|---|
| Paket | Vendor advisory and installed full revision covering both CVEs | That all workers were replaced |
| Activation | Service/deployment event plus active instance inventory | That a background or old replica is also fixed |
| Functionality | Login, expected page/API behavior, upload if required, scheduled work | That a specific exploit was blocked |
| Incident review | Preserved logs and investigation outcome | That patching removed prior attacker access |
For a small application, select a short repeatable smoke test: sign in using a test account, open an expected protected page, submit one harmless operation, and inspect a background job if the product relies on it. Record the expected result before the change when possible. A pre-existing failure should not be mistaken for a regression, and a passing test should not be marketed as proof of vulnerability absence.
If you roll back to restore service, reopen the security decision immediately. The replacement runtime and the resulting security status must stay together. Keep the last known-good application recipe, but do not assume the old interpreter is an acceptable long-term recovery state. The incident owner needs both the availability result and the unresolved security exposure.
What to ask a managed WordPress host
A useful hosting ticket asks for a concrete, site-specific answer. The provider may operate several PHP distributions and per-site selections, so a general statement that its fleet is updated is insufficient for your application. Request confirmation through the host’s normal authenticated support channel; do not include login cookies, private reset links or database credentials.
Please confirm for my site [OWNED HOSTNAME]:
1. Which PHP provider, branch and full package revision currently serve it?
2. Which vendor notice confirms fixes for both CVE-2026-109618 and CVE-2026-109619?
3. Have all serving workers/instances activated that fixed build?
4. Are any replicas or fallback pools still pending?
5. Which application smoke tests were completed after activation?
Keep the response with your deployment evidence. If a host supplies a backport, ask for the complete revision and advisory rather than insisting that every package display an upstream version from the table. If it cannot confirm delivery, leave the update unresolved and ask for the next specific action and owner.
Patch verification and application testing answer different questions
Once the runtime is updated, a separate authorized application assessment can examine authentication, authorization and business logic on an owned staging site. Penligent is an option for that workflow; ask it to produce reproducible evidence tied to dedicated test accounts. This article does not demonstrate a PHP2Shell-specific detector or claim that an application-testing report proves the interpreter patch is present.
Likewise, do not run an unreviewed public exploit against a live storefront just to strengthen a maintenance screenshot. A responsible regression exercise needs provenance, an isolated target, a known vulnerable/fixed pair and a clear success condition. No PHP2Shell exploit or production assessment was executed for this update. The technical mechanism above is attributed to the released PHP advisories.
PHP2Shell questions from site owners
Are the PHP2Shell patches available now?
Yes. The upstream release baseline is 8.5.12, 8.4.27, 8.3.36 or 8.2.35, published October 21, 2026. Match your provider’s package revision and activate it on the serving instances.
Does updating WordPress fix PHP2Shell?
A WordPress update does not establish that the underlying PHP interpreter was replaced. Confirm the runtime update separately with the host or deployment owner.
Is PHP-FPM automatically safe?
No. Read each advisory’s SAPI-specific conditions and update. Avoid converting a difference in demonstrated exploit paths into a blanket exemption.
Does a successful version check prove I was not compromised?
No. It records software state at a point in time. Historical compromise requires a separate investigation; do not discard relevant logs after patching.
Should I disable upload progress instead of upgrading?
Treat it as a partial measure for the documented session paths, applied before request parsing with worker restarts. It does not replace the complete runtime fix.
Close this maintenance task when the fixed runtime is demonstrably serving the intended application, normal operations work, and any suspicious history has a separate owner. The useful end state is a traceable deployment decision—not a screenshot of a version string from an unrelated shell.

