PHP2Shell Checker

Paste a PHP version or existing response headers to compare with the PHP2Shell patch cutoffs. Version-only self-check: no URL scanning, and UNKNOWN does not mean safe.

Check your PHP version

100% private — this checker runs entirely in your browser. Nothing you paste is sent anywhere, and this page does not scan URLs.

Don't know your version? Run php -v on your server, open WordPress → Tools → Site Health → Info → Server, or fetch your headers with curl -sI https://yoursite.com and paste the output here.

What is PHP2Shell?

PHP2Shell is the name security researchers gave to a pair of critical vulnerabilities in PHP itself — CVE-2026-109618 and CVE-2026-109619, rated CVSS 9.2. Both allow remote code execution without any login: an attacker who can reach your website may be able to run arbitrary code on the server. The flaws were disclosed on October 21, 2026, and the PHP project published emergency patched releases the same day.

Because PHP runs a large share of the world's websites — including most WordPress, Drupal and Joomla sites — the practical question for every site owner is simple: is the PHP version serving my site at or below the vulnerable cutoffs? That is exactly what the checker above answers, using the same version cutoffs as the reference checker published by OpenAI's Patch the Planet project.

Vulnerable and patched PHP versions

PHP branchVulnerable throughPatched release
8.5≤ 8.5.118.5.12
8.4≤ 8.4.268.4.27
8.3≤ 8.3.358.3.36
8.2≤ 8.2.348.2.35
8.1≤ 8.1.34End of life — no official fixed release; backports only
8.0≤ 8.0.30End of life — backports only
7.4≤ 7.4.33End of life — backports only
7.3 / 7.2 / 7.1 / 7.0all releasesEnd of life — upgrade to a supported branch
5.6 / 5.5 / 5.4all releasesEnd of life — upgrade to a supported branch

Two caveats matter. First, Linux distributions backport security fixes without changing the version number, so a version-based check can flag a server that is in fact patched — if your host or OS vendor confirms the backport in writing, trust that confirmation. Second, a pre-release build (dev, alpha, beta or RC) of a patched version is not treated as patched here, because it is not evidence of a stable fix.

How to find your PHP version

What to do if you are vulnerable

Upgrading PHP is the only complete fix. Move to the patched release for your branch (8.2.35 / 8.3.36 / 8.4.27 / 8.5.12) or, if you are on an end-of-life branch, move to a supported branch. A web application firewall can reduce exposure as a stopgap, but it does not remove the vulnerability. After upgrading, restart PHP-FPM or your web server and re-check — the old process keeps serving the old version until it is restarted.

On shared hosting? Ask your provider these 6 questions

  1. Which exact PHP version is my site running right now?
  2. Has it been updated to the patched release for its branch (8.2.35, 8.3.36, 8.4.27 or 8.5.12)?
  3. If my branch is end-of-life (8.1 or older), have you backported the PHP2Shell fix (CVE-2026-109618 / CVE-2026-109619)?
  4. After patching, was PHP restarted so the fixed version is actually serving my site?
  5. Are there other PHP installations on my account — subdomains, staging sites, cron jobs — still running an old version?
  6. Can you confirm the patch in writing (email or ticket) once it is applied?

Why this checker asks you to paste instead of scanning your URL

Browsers block web pages from reading another site's response headers (CORS), so a URL scanner would have to send your address to a third-party server and trust it with the result. We chose the private option: the version comparison runs locally in your browser, using the published cutoffs — the same logic as the reference implementation. And remember the most important line on this page: UNKNOWN does not mean safe. It only means no version could be identified from what you pasted.

Frequently asked questions

What is PHP2Shell?
PHP2Shell is the name researchers gave to two critical, unauthenticated remote code execution vulnerabilities in PHP (CVE-2026-109618 and CVE-2026-109619, CVSS 9.2). PHP released emergency patched versions on October 21, 2026. Any site running a PHP version at or below the vulnerable cutoffs should be treated as exposed until it is patched.
Which PHP versions are vulnerable to PHP2Shell?
Versions at or below these cutoffs: PHP 8.5.11, 8.4.26, 8.3.35, 8.2.34, 8.1.34, 8.0.30, 7.4.33 and every older branch. The patched releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Branches 8.1 and older are end-of-life and get no official fixed release — they are only covered if your OS vendor or host backports the fix.
How do I find my PHP version?
Run php -v on your server, check WordPress → Tools → Site Health → Info → Server, use a phpinfo() page, look in your hosting control panel, or read the X-Powered-By response header with curl -sI https://yoursite.com. Paste any of these into the checker at the top of this page.
Why doesn't this checker scan my website URL directly?
A web page cannot read another site's response headers because of browser CORS rules, so URL scanning would require sending your URL to a third-party server. This checker runs the same version comparison locally in your browser instead: paste your version or headers and nothing leaves your device.
My result says UNKNOWN. Am I safe?
No. UNKNOWN only means no PHP version could be identified — for example because your server hides its version headers (expose_php is off) or a proxy strips them. UNKNOWN does not mean patched. Find your real version with php -v, phpinfo() or WordPress Site Health and check again.
My host backported the fix but the checker still says VULNERABLE. Why?
The checker compares version numbers, and backported fixes deliberately keep the old version number. Distributions such as Debian and Ubuntu, and some hosts, patch the code without changing the reported version. If your provider confirms the PHP2Shell backport in writing, that confirmation overrides a version-based result.
Is upgrading PHP the only fix?
Yes — upgrading to the patched release for your branch (or moving to a supported branch) is the only complete fix. A web application firewall can reduce exposure as a stopgap but does not remove the vulnerability. After upgrading, restart PHP-FPM or your web server so the new version actually serves your site, then check again.

Related tools

Bitcoin Transaction Fee Estimator · Ethereum Gas Fee Calculator