PHP2Shell: is your website affected, and what to do

Published 20 November 2026 · Last updated · General information, not legal advice

What is PHP2Shell?

PHP2Shell is the name for two critical flaws in PHP, CVE-2026-109618 and CVE-2026-109619, for which the PHP team shipped emergency fixes on 21 October 2026. Both let an attacker who is not logged in run their own code on the server. They affect every PHP install that serves web requests, whether through PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP or LiteSpeed, and the PHP team rates mod_php the highest risk.

Which PHP versions are fixed?

PHP2Shell fixed releases, from BleepingComputer's report of the PHP releases (21 October 2026)
PHP branchFixed in
8.58.5.12
8.48.4.27
8.38.3.36
8.28.2.35
8.1, 8.0, 7.x and olderNo upstream release. Upgrade to a supported branch, or ask your host or vendor for a backported fix.

How can I tell if my website is affected?

  1. Find your PHP version. Your hosting control panel shows it; on your own server, php -v prints it.
  2. Compare it with the table above. Anything below the fixed release on its branch, or any branch older than 8.2, is exposed.
  3. Run the free Jralo security audit. If your server announces its PHP version in the X-Powered-By header, the check flags PHP2Shell as critical. If it does not announce it, the check cannot tell, and the first two steps are the way to know.

For example (an illustration, not a real site): a server that answers with X-Powered-By: PHP/8.3.35 is one release short of the fix for its branch, so the report marks it critical and gives the fix as "upgrade PHP 8.3 to 8.3.36 or later".

What should I do if my site is affected?

  • On shared or managed hosting: ask your host which PHP release your site runs and when they moved to a PHP2Shell-fixed release. Many hosts let you pick the PHP version in the control panel.
  • On your own server: update the PHP packages to a fixed release and restart PHP-FPM or the web server so the new version is the one running.
  • On PHP 8.1 or older: plan the upgrade to a supported branch; until then, ask your vendor for a backport.
  • Afterwards: set expose_php = Off so the server stops announcing its exact version to every visitor.

Does updating WordPress fix PHP2Shell?

No. PHP2Shell is in PHP itself, the language WordPress runs on. Updating WordPress, a theme or a plugin does not change the PHP version; the server or host has to.

How does Jralo help?

The free security audit flags PHP2Shell when a server announces its PHP version, along with missing security headers and files that must never be public, and gives you a score. Paid plans add the step-by-step fix for each finding and a report file you can hand to your developer, your host or a coding agent. Jralo reports; it does not change your server.

What else do people ask?

What is PHP2Shell?

Two critical PHP flaws, CVE-2026-109618 and CVE-2026-109619, disclosed on 21 October 2026, that let an attacker run code on a server without logging in.

Which PHP versions fix PHP2Shell?

PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12, or later releases of the same branches. PHP 8.1 and older get no upstream fix.

Does WordPress need a PHP update for PHP2Shell?

Yes, if WordPress runs on an affected PHP release. Updating WordPress itself does not change the PHP version; the server or host has to.

How can I check my PHP version?

Look in your hosting control panel, run php -v on the server, or run the free Jralo security audit, which reads the version if the server announces it.

Check your site now

Jralo's free check tests your homepage and up to five pages for accessibility (WCAG 2.2 A and AA) and website QA problems, and tells you which countries' accessibility laws are likely relevant to you. No sign-up.

Run the free check

Where do these facts come from?

  1. NVD: CVE-2026-109618
  2. NVD: CVE-2026-109619
  3. BleepingComputer: PHP ships emergency patches for critical PHP2Shell flaws (21 October 2026)
  4. PHP manual: expose_php

More questions

What should you read next?