Short answer
As of 29 October 2026, check the PHP installation that actually serves your website and confirm that its release or vendor package contains the fixes for CVE-2026-109618 and CVE-2026-109619, known as PHP2Shell. PHP's advisory includes all PHP installations serving web requests. A version check helps assess patch status; investigate possible prior compromise separately. PHP advisory, Canadian advisory
Check my PHP version. Use the version from the website's runtime. The checker compares supplied version text; it does not inspect your server, verify a vendor backport or determine whether someone broke in.
Which PHP installations need checking?
PHP's 21 October advisory identifies these web runtimes. It considers risk highest for mod_php, where exploitation can happen before application code executes. PHP advisory
| Runtime | What to check |
|---|---|
| Apache with mod_php | The PHP loaded by the web server, not just the shell command. |
| PHP-FPM | The PHP runtime serving each site's requests. |
| PHP-CGI | The PHP executable used by the site's handler. Using IIS on Windows? Check the PHP-CGI handler and Windows build. |
| LiteSpeed | The PHP installation serving the site. |
| FrankenPHP | The PHP runtime in the deployed installation. |
The right column is our diagnosis order, based on checking the runtime in use. The SAPI manual lists values such as apache2handler, fpm-fcgi, cgi-fcgi and litespeed. A SAPI value alone does not prove the check ran through your website. PHP SAPI manual
Check the version serving your website
In cPanel, open MultiPHP Manager and identify the domain's PHP version and PHP-FPM status. If a version is unavailable, ask the host: the cPanel documentation says it may not be installed or available to your account. cPanel documentation
Have the administrator run this temporary diagnostic through the site's PHP handler, with access restricted to the administrator:
<?php
echo 'PHP version: ', phpversion(), PHP_EOL;
echo 'SAPI: ', php_sapi_name(), PHP_EOL;Record the result and remove the diagnostic immediately. phpversion() returns the running parser's version; php_sapi_name() identifies its interface. Running the file through the site establishes which request context was checked. These instructions are our use of the documented functions, not a reproduced deployment. phpversion manual, SAPI manual
If you already use phpinfo(), keep it access-restricted and remove it afterwards. It exposes configuration, environment and request data. Do not paste a full dump into the checker. phpinfo manual
On a VPS, inventory every PHP installation serving requests, not just the one found by php -v. Repeat the web check for each site/runtime and record the installed package or build. The checker page explains the CLI/web-runtime distinction; watchTowr recommends inventorying every installation. Checker guidance, watchTowr FAQ
Compare the right release or package
| PHP branch | Release containing both PHP2Shell fixes |
|---|---|
| 8.5 | 8.5.12 |
| 8.4 | 8.4.27 |
| 8.3 | 8.3.36 |
| 8.2 | 8.2.35 |
These are the fixed releases in PHP's 21 October advisory. PHP 8.2 reaches end of life on 31 December 2026; for an upgrade, plan for a supported newer branch rather than treating 8.2 as a long-term destination. PHP advisory and release notices
For distribution packages, compare the full package version against your vendor's records for both CVEs. For example, Ubuntu 24.04 lists php8.3 package 8.3.6-0ubuntu0.24.04.13 as fixed for both. Its upstream-looking 8.3.6 number alone is not a vulnerability verdict. Ubuntu 109618, Ubuntu 109619
PHP 8.1 and older no longer receive updates from the PHP project. PHP's advisory points to distribution/LTS vendor patches or an upgrade and supplies minimal source backports for 7.4, 8.0 and 8.1. Check your vendor before concluding there is no fix for an older installation. PHP advisory
Windows packages 8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1, announced on 26 October, rebuild those releases with updated Brotli dependencies for a separate vulnerability. PHP says the runtime versions remain unchanged. A runtime version check therefore does not establish which Windows dependency package is installed. PHP Windows notice
Apply the update and verify it
Ask the host or server administrator to update the installation that actually serves the site. After updating, restart every PHP worker so the fix takes effect, as watchTowr advises. Repeat the restricted web diagnostic and check the site's normal functions. Our before-and-after check records whether the intended runtime is in use; it does not certify the server free of compromise. PHP advisory, watchTowr FAQ
Message for shared-hosting support:
Does the PHP serving [domain] contain fixes for both CVE-2026-109618 and CVE-2026-109619? The web diagnostic shows [version] and [SAPI]. Please confirm the full package/build and patch status. If it is not patched, can you provide a patched supported runtime or restrict public access until the fix is applied?
If you cannot update immediately
Canada advises considering isolation of internet-facing applications from public networks until a fix can be applied. Have the administrator enforce that restriction at the host or network boundary, including direct origin access. An application maintenance page is not equivalent: PHP documents mod_php exploitation before application code runs. Canada, PHP
Configuration workarounds are incomplete. PHP lists session.upload_progress.enabled=0 in php.ini, the FPM pool or server configuration, followed by restarting every worker. Do not rely on ini_set() or FPM .user.ini. PHP's 23 October notice suggests retaining this setting until the next regular bugfix release because of the separate CVE-2026-115560 path. That path requires upload progress and an unusual runtime switch of the session serialization handler; applications that never change the handler at runtime are not exposed to that path. Follow the full vendor advisory with your administrator. PHP notices, 21 and 23 October
Patched does not answer whether you were hit
Keep the patch check and investigation separate. Start the compromise check with retained logs and activity from at least 17 October, following AWS's investigation guidance.
What the dated reports establish
AWS's 21 October report describes an attempt observed in MadPot on 17 October 2026, the earliest attempt in AWS's reported observations. It also describes further attempts before disclosure on 21 October, with different payloads and infrastructure suggesting multiple actors. Its uncertainty about success on real systems concerns those pre-disclosure attempts. After the 21 October patch release, AWS observed further activity and described broad exploitation attempts in the wild. AWS advises investigating from at least 17 October. That is an investigation starting point, not proof that attacks could not have happened earlier. AWS, 21 October
Canada's 27 October update cites open-source reporting that both CVEs are being exploited in the wild and CISA's addition of both to its Known Exploited Vulnerabilities catalog on 26 October. Canada is relaying those sources, not describing its own detection. The earlier no-active-exploitation paragraph still on the advisory is historical. Canadian Centre for Cyber Security, Update 2
Morphisec's 28 October report attributes Windows IIS/PHP-CGI activity to PHP2Shell and describes an IIS worker spawning PHP-CGI, then a command shell and a packed payload attempting an outbound reverse shell. Morphisec says it blocked the post-exploitation payload and explicitly says it did not detect PHP2Shell itself. This is a vendor-attributed process chain, not independent proof of the initial PHP exploit or the first Windows attack anywhere. Morphisec, 28 October
These reports justify investigating exposed systems. They do not establish whether your particular server was compromised.
For related explanations, see PHP2Shell: myths vs facts.
Existing check & patch scope
The PHP2Shell check & patch service covers shared hosting, VPS patch/upgrade, PHP 7.4 to 8.1 backports, a compromise check and a written report. We check the PHP version, SAPI and packages, apply the applicable patch or upgrade, restart workers, and re-check. On shared hosting, we switch versions only where the panel allows it; otherwise the host owns PHP and we send the host the exact request. For servers we patch ourselves, the reported outcome is checked and patched.
The existing checkpoints are a written findings report the same day you request it and patching within one working day after that, followed by an update to the report. Rebuilding a compromised site, code or plugin rewrites, and ongoing monitoring are outside the scope. Findings that need further work are recorded and discussed separately. A link to Windows guidance does not add Windows/IIS service coverage; confirm applicability against the listed service before requesting work.
How we checked this
Read on 29 October 2026: PHP notices dated 21, 23 and 26 October; PHP diagnostic manuals (publication dates unstated); cPanel documentation dated 8 July 2026; Ubuntu's records for both CVEs; watchTowr's FAQ updated 26 October; AWS dated 21 October; Canada's update dated 27 October; and Morphisec dated 28 October. Inline links identify each source. The checker and service pages were read the same day.
This is vendor-documented guidance with our diagnosis order. We did not reproduce the fix or exploit on a server, test the checker runtime, or use a client incident. A version comparison and a compromise investigation answer different questions.