Technology & security · · Updated · 9 min read ·

PHP2Shell: Critical PHP vulnerabilities – has your website been updated yet?

Update 26 October 2026: PHP has confirmed the additional vulnerability CVE-2026-115560. It affects a specific session-data configuration, not every PHP website as a matter of course. At the time of this article, the sources reviewed provide no evidence of a fixed release for this new vulnerability. The previous PHP2Shell updates remain necessary, but they are not sufficient to give the all-clear for the additional attack path. Ask your hosting provider today to check the patch status, application configuration and required safeguards.

Illustration: A server rack with a red warning symbol, with a laptop in front displaying a PHP version and a green tick
Illustration: A server rack with a red warning symbol, with a laptop in front displaying a PHP version and a green tick

What is PHP2Shell?

PHP runs website code on the server, for example for WordPress. The original PHP2Shell vulnerabilities are called CVE-2026-109618 and CVE-2026-109619. They can allow third-party program code to be executed on the server. The PHP advisories rate both as critical, with a CVSS v4.0 score of 9.2 out of 10. This describes the severity, not the likelihood of a breach. The research found no official CVSS score for CVE-2026-115560.

The new vulnerability requires several conditions to coincide: Session Upload Progress, PHP’s function for upload progress messages via session data, is enabled. In addition, the application changes the storage format of this data during the request: `session.serialize_handler` is initially set to `php_binary` or `php_serialize`; application code then uses `ini_set()` to set it to `php` before `session_start()`. According to PHP, the described attack path does not exist without this runtime change. This configuration can enable remote code execution. Hosting providers and application support teams must therefore check it together. The reviewed sources do not provide a complete official list of affected versions and operating modes.

How serious is the risk?

Attack attempts and successful code execution on research honeypots, meaning test systems set up specifically for observation, have been documented for the original PHP2Shell group of vulnerabilities. Adel Karimi’s report classifies the observed attack chain as consistent with CVE-2026-109618. It does not demonstrate a separate attack path via CVE-2026-109619.

For CVE-2026-115560, by contrast, a laboratory PoC is available: a technical proof of concept which, according to its author, was run under PHP 8.5.12 with Apache/mod_php in a purpose-built application. It does not demonstrate that a standard WordPress installation is affected. The reviewed sources provide no evidence of successful attacks on production systems involving the new CVE. Attack attempts and honeypot successes do not prove that your website has been breached.

Which versions fix the original vulnerabilities?

For unmodified PHP releases, the following minimum versions apply exclusively as fixes for CVE-2026-109618 and CVE-2026-109619. Providers can incorporate fixes into older packages: such backports require evidence from the vendor.

  • PHP 8.5: from 8.5.12.
  • PHP 8.4: from 8.4.27.
  • PHP 8.3: from 8.3.36.
  • PHP 8.2: from 8.2.35.
  • For Linux, Plesk lists corrected builds dated 21 October for 8.1.34, 8.0.30 and 7.4.33; the version number may remain unchanged. cPanel also confirms backports for these branches. This does not prove that a customer server has already been updated or that the new CVE has been fixed.
  • No fixed release has been demonstrated for CVE-2026-115560. Cloudflare explicitly also lists PHP 8.5.12 as affected. The minimum fixed versions above therefore do not replace checking the additional session configuration.

How do I check whether my website is affected?

With shared hosting, the hosting provider manages the PHP packages. Ask for the status of every domain, subdomain and additional application to be confirmed. Version displays do not check the specific session configuration.

  • WordPress: Tools → Site Health → Info → Server shows the PHP version. The display checks neither provider backports nor the session change. A good Site Health result does not confirm protection against the new CVE.
  • Plesk: Domains → your domain → PHP Settings → “View the phpinfo() page”. Ask for the version, operating mode and session settings to be checked. This snapshot does not replace a review of the application code. If the option is missing, ask your hosting provider.
  • cPanel: Software → MultiPHP Manager shows the version for each domain, if enabled. You can only select versions made available to you; changing the version in the menu does not install a missing vendor patch.
  • Shared hosting and other providers: Your own changes in `wp-config.php` or an FPM `.user.ini` do not replace an effective server configuration. If you have SSH access, `php -v` shows only the command-line version; what matters is the website’s PHP runtime.

What should I write to my hosting provider?

Write to hosting support or the team looking after your website. If your site is hosted elsewhere, the agency should involve the server operator. Copy this enquiry:

“Please check all web PHP runtimes for my domains [Domains], additional applications, administration interface and webmail. Have CVE-2026-109618 and CVE-2026-109619 been fixed? Please provide the full package/build identifiers and vendor evidence, and confirm that all PHP worker processes were restarted after the update. If anything is still outstanding: When will it be fixed, and how will you restrict public access outside PHP until then? For CVE-2026-115560: Is `session.upload_progress.enabled=0` already effective before request parsing, and were all affected workers restarted afterwards? If the function remains enabled: Please confirm, together with the application support team, that the session serializer change described in the PHP advisory does not take place. If Cloudflare is cited as protection: Which upload progress field name (`session.upload_progress.name`) and which active WAF rule are being used? How are you tracking the forthcoming fix and how will you install it once available?”

Website PHP and internal panel PHP must be checked separately. A general status announcement does not replace confirmation for your applications. Conversely, the absence of a public announcement does not prove a lack of protection. After changes, test important processes such as login, the contact form and ordering.

Which safeguards are advisable now?

The patches remain necessary for the original CVEs. If they cannot be installed immediately, discuss temporarily shielding publicly accessible applications with the operator. The block must take effect at the web server or firewall before PHP; a WordPress maintenance page is not sufficient.

For CVE-2026-115560, CERT-EU identifies `session.upload_progress.enabled=0`, followed by a restart of all PHP worker processes, as complete protection against the described attack path. For the original vulnerability CVE-2026-109619, this measure blocks only certain session paths; it does not replace the previous patches.

The setting must take effect before the request is read and processed, during request parsing. The operator configures this, for example, in `php.ini`, in the FPM pool or in the server configuration. Do not rely on `ini_set()` or an FPM `.user.ini` for this. All workers must then be restarted and the web runtime checked.

This disables the native progress messages via PHP sessions. Applications that use this data lose that display; file uploads are not disabled in general as a result. Browser-side progress indicators are not affected.

Cloudflare’s Web Application Firewall (WAF) can intercept known attack patterns. According to Cloudflare, the rule “PHP Remote Code Execution Attack (CVE-2026-109618, CVE-2026-109619) #6” detects known attempts against the new CVE only when `session.upload_progress.name` has its default value `PHP_SESSION_UPLOAD_PROGRESS`. Cloudflare expressly states that this rule does not provide protection when the field name has been changed. Ask for the active rule and the field name to be checked. Do not rely on the WAF alone; clarify the PHP patches and protection against the new session attack path with the operator.

What have we done for our customers?

During our checks on 22 October, we found Plesk PHP 8.0 to 8.5 on our hosting servers with builds dated 21 October, matching the Plesk security advisory. The PHP-FPM processes had been restarted on all servers by the morning of 22 October. These confirmed actions relate exclusively to CVE-2026-109618 and CVE-2026-109619. They do not confirm that a review of the administration interface has been completed.

This historical status does not demonstrate that CVE-2026-115560 has been checked or mitigated on our servers. Without new operational confirmation, we cannot give the all-clear. For websites hosted elsewhere, the respective operator must confirm the status, even if we created or maintain the website.

Frequently asked questions about PHP2Shell

WordPress and all my plugins are up to date. Is that enough?

No. Continue to keep WordPress and plugins up to date; the PHP runtime must also be checked. With the new CVE, whether a system is affected also depends on application code and extensions. Up-to-date plugins do not provide a blanket assurance of safety.

My website shows PHP 8.5.12. Have the vulnerabilities been fixed?

This version fixes the two original CVEs. It is not sufficient to give the all-clear for CVE-2026-115560. Even with provider backports, you need evidence relating to the package as well as confirmation of the session configuration or effective mitigation.

How can I tell whether my website has already been hacked?

Unknown users or modified files should be investigated. They are not specific evidence of PHP2Shell. Ask the support team to preserve and examine files and logs before cleaning up. The absence of anything unusual does not prove that no breach has occurred. A patch alone does not remove malicious code that has already been planted.

Is my website safe with Cloudflare?

A Cloudflare account alone does not confirm protection. For known attempts against the new CVE, the confirmed rule effect applies only with the default field name. Ask for the active rule, PHP patches and session configuration to be checked. This does not amount to a general security guarantee for your website.

I have a static website without PHP. Does this affect me?

If PHP genuinely does not process any web requests, this attack path does not affect the website. However, have PHP contact forms, additional blogs, the administration interface and webmail checked separately. The file extension of your home page alone is not sufficient evidence.

Does the new vulnerability render the patches for the old flaws ineffective?

There is no official evidence of an incomplete patch or a bypass of the original fixes. The precise technical relationship remains unresolved. The previous patches remain necessary; the additional session configuration must be checked or protected separately.

Website subscription — from €79/month

Custom web design, German hosting, maintenance and personal support in one monthly package.

Book a free consultation

← All guide articles