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 branch | Vulnerable through | Patched release |
|---|---|---|
| 8.5 | ≤ 8.5.11 | 8.5.12 |
| 8.4 | ≤ 8.4.26 | 8.4.27 |
| 8.3 | ≤ 8.3.35 | 8.3.36 |
| 8.2 | ≤ 8.2.34 | 8.2.35 |
| 8.1 | ≤ 8.1.34 | End of life — no official fixed release; backports only |
| 8.0 | ≤ 8.0.30 | End of life — backports only |
| 7.4 | ≤ 7.4.33 | End of life — backports only |
| 7.3 / 7.2 / 7.1 / 7.0 | all releases | End of life — upgrade to a supported branch |
| 5.6 / 5.5 / 5.4 | all releases | End 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
- Terminal / SSH: run
php -v— the version is on the first line. - WordPress: Dashboard → Tools → Site Health → Info → Server shows the PHP version.
- phpinfo(): create a file containing
<?php phpinfo();, open it in a browser, read the version at the top — then delete the file. - Hosting control panel: cPanel, Plesk and most dashboards show the active PHP version under "PHP settings" or "Select PHP version".
- Response headers: run
curl -sI https://yoursite.comand look forX-Powered-By: PHP/x.y.z. If the header is missing, your server hides its version — use one of the methods above instead.
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
- Which exact PHP version is my site running right now?
- Has it been updated to the patched release for its branch (8.2.35, 8.3.36, 8.4.27 or 8.5.12)?
- If my branch is end-of-life (8.1 or older), have you backported the PHP2Shell fix (CVE-2026-109618 / CVE-2026-109619)?
- After patching, was PHP restarted so the fixed version is actually serving my site?
- Are there other PHP installations on my account — subdomains, staging sites, cron jobs — still running an old version?
- 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?
Which PHP versions are vulnerable to PHP2Shell?
How do I find my PHP version?
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?
My result says UNKNOWN. Am I safe?
My host backported the fix but the checker still says VULNERABLE. Why?
Is upgrading PHP the only fix?
Related tools
Bitcoin Transaction Fee Estimator · Ethereum Gas Fee Calculator