Am I vulnerable?
PHP2Shell website and version checker
Enter your website address for a public PHP check, or paste a PHP version below. Website checks use our server; pasted version checks stay in your browser.
Last reviewed 2026-10-28
23 October follow-up: CVE-2026-115560
The PHP notice describes a separate RCE risk: configuration uses php_binary or php_serialize, application code switches to php with ini_set() before session_start(), and upload progress is enabled. Keep session.upload_progress.enabled = 0 until the next regular bugfix release; if already disabled, keep it off. Applications that never switch serializers at runtime may keep it enabled. This is separate from the two PHP2Shell fixes.
Check your website
Enter a URL to see whether the site shows signs of PHP2Shell exposure.
Know your PHP version? Check it below.
Paste a version, the output of php -v, or one version per line for a whole fleet. Runs entirely in your browser.
The CLI and the web server can run different PHP builds. Check the version your web server actually uses: php-fpm -v (or php-fpm8.3 -v), or phpinfo() served by that site. Version results assess CVE-2026-109618 and CVE-2026-109619 only. They cannot assess the configuration-dependent CVE-2026-115560; see the session configuration guide.
| Branch | Vulnerable | Fixed in |
|---|---|---|
| 8.5 | < 8.5.12 | 8.5.12 |
| 8.4 | < 8.4.27 | 8.4.27 |
| 8.3 | < 8.3.36 | 8.3.36 |
| 8.2 | < 8.2.35 | 8.2.35 |
| 8.1 · 8.0 · 7.4 | all | Source backport only |
| 5.4 – 7.3 | all | No fix |
Collect versions to paste
The PHP that answers web requests is what matters. The CLI on the same box can be a different build.
# One host: the binary that serves web traffic
php-fpm -v 2>/dev/null || php -v
# Many hosts over SSH — paste the output into the checker
for h in web1 web2 web3; do
printf '%s ' "$h"; ssh "$h" "php -r 'echo PHP_VERSION, PHP_EOL;'"
done
# Exact Debian/Ubuntu package version (shows distro backports)
dpkg-query -W -f='${Package} ${Version}\n' 'php*-common'
# RHEL family
rpm -q php-commonWhat each result means
| Result | Meaning | What to do |
|---|---|---|
| Vulnerable | Upstream version below the first fixed release of its branch. | Upgrade and restart. If it is an OS package, check the changelog first — it may already carry the backport. |
| Check vendor | Version string carries a distro suffix (ubuntu, deb, el, amzn, suse, fc). | Match the full installed revision, OS release and repository to a vendor advisory covering both CVEs. A changelog without CVE IDs does not prove a missing fix; see the package verification guidance. |
| Vulnerable · EOL | Branch 8.1 or older — no new PHP release. | Migrate to 8.4/8.5. Stopgap: vendor backport, or PHP’s source backport for 7.4/8.0/8.1. |
| Patched | At or above the first fixed release. | Make sure every worker was restarted after the update. |
| Newer branch | A branch newer than any covered by the advisory. | Should include the fix; confirm in release notes. |
| Unsupported | Older than 5.4 — outside the reported range. | Not listed as affected, but long unsupported with other critical bugs. Migrate. |
Why distro builds need a second look
Ubuntu’s 8.3.6-0ubuntu0.24.04.x or Debian’s 8.2.x-1~deb12uN keep the upstream number they shipped with and add security fixes on top. So a box can report “8.3.6” and still be patched. The reverse is also true: a high-looking number from an old image can be unpatched.
Packages from Ondřej Surý’s repository (deb.sury.org) follow upstream versions, so the checker treats them like official releases.
Next
- Fix / patchFix PHP2Shell on Linux, Docker, cPanel, Plesk, macOS and Windows. Follow patch, restart and verification steps, including options for older PHP.
- Patch statusData from thousands of website checks: how many sites still run PHP without the PHP2Shell fix, by branch and by day.
- MitigationsExplore temporary PHP2Shell mitigations: memory and upload limits, upload progress, backtraces and cgroups, with their coverage and tradeoffs.
- Hosting providersPHP2Shell on shared and managed hosting: check and switch PHP versions in cPanel or Plesk, review provider updates and ask your host about patches.