Critical · CVSS 9.2 · Fixed 21 Oct 2026

Is your PHP vulnerable to PHP2Shell?

Two critical flaws in PHP itself — CVE-2026-109618 and CVE-2026-109619 — let attackers run code on almost any PHP web server without logging in. Attacks are already being seen. Check your version in seconds, then patch.

Check my version What is PHP2Shell?
  • Fixed in 8.5.12 · 8.4.27 · 8.3.36 · 8.2.35
  • PHP 8.1 and older: no official fix
  • 19 Nov update: upgrade again to 8.5.13 · 8.4.28 · 8.3.37 · 8.2.36 (why)

Check your PHP version

Paste a version number or the output of php -v. It's checked in your browser. The version number is never sent.

For developers & admins

Let your AI agent check the PHP that actually serves your site

The version you see with php -v is often not the one serving web requests. Our open-source checker runs where your code runs — in Claude Code, Codex, Cursor or a plain terminal — and tells you in one line whether you're patched.

  • ✓ Read-only — never sends attack traffic
  • ✓ OK, VULNERABLE or UNKNOWN, with exit codes for CI
  • ✓ Free and open source — GitHub · npm

Check the PHP serving your site — with your AI agent

Type your domain and copy the command. It runs on your machine; your site is never sent to us.

Run npx php2shell-checker@latest https://your-site.com and tell me whether my PHP is vulnerable to PHP2Shell and what to do next.

Want it as a reusable skill? Ask: "Add the php2shell skills from github.com/shayanabbas/php2shell-checker".

What to do right now

Three steps to close PHP2Shell

Most sites can be fixed in under an hour. Do them in order — and don’t skip step three.

  1. Find the PHP that serves your site

    Check the runtime behind your web server (PHP-FPM, Apache mod_php, your host’s panel) — not just the command line.

    How to check →

  2. Upgrade PHP and restart it

    Install 8.5.13, 8.4.28, 8.3.37 or 8.2.36 (19 November) or your vendor’s patched package, then restart PHP-FPM / Apache so old workers stop.

    Patch guides →

  3. Look for signs of compromise

    Attacks started before disclosure. Review logs from 17 October, hunt for web shells and rotate secrets PHP had in memory.

    Compromise checklist →

Reference

Vulnerable and fixed PHP versions

Every PHP version from 5.4 up to these cut-offs is affected. Distribution packages may carry the fix under an older-looking number.

BranchVulnerable up toFixed inSupport status
8.5 8.5.11 8.5.12 Active support until 31 Dec 2027
8.4 8.4.26 8.4.27 Active support until 31 Dec 2026
8.3 8.3.35 8.3.36 Security fixes until 31 Dec 2027
8.2 8.2.34 8.2.35 Security fixes until 31 Dec 2026
8.1 8.1.34 no official fix End of life (31 Dec 2025)
8.0 8.0.30 no official fix End of life (26 Nov 2023)
7.4 7.4.33 no official fix End of life (28 Nov 2022)
5.4 – 7.3 all releases no official fix End of life

Full fixed-versions reference, including EOL options →

Patch guides

Step-by-step fixes for your stack

Copy-paste commands to upgrade, restart and verify — plus what to do if you’re on shared hosting.

Ubuntu & Debian

Fixed PHP packages for Ubuntu and Debian, for PHP2Shell and the 19 Nov 2026 release (e.g. php8.4 8.4.28-1~deb13u1), plus how to upgrade, confirm and restart.

Open guide →

RHEL, Alma & Rocky

Red Hat bulletin RHSB-2026-013 status, the dnf command that shows whether your fix has landed, then upgrade PHP, restart php-fpm and httpd, and verify.

Open guide →

Docker & Kubernetes

Fix PHP2Shell and the 19 November 2026 PHP CVEs in containers: find PHP in running containers, rebuild on php:8.x images with 8.5.13 or 8.4.28, redeploy, verify.

Open guide →

cPanel & WHM

The ea-php82–85 versions that fix PHP2Shell, ea-php74–81 builds, CloudLinux alt-php and LiteSpeed lsphp, plus the commands to update, restart and verify.

Open guide →

Plesk & DirectAdmin

Fix PHP2Shell on Plesk and DirectAdmin: update PHP handlers or CustomBuild, check build dates for PHP 7.4–8.1, restart PHP-FPM and verify each version.

Open guide →

Am I affected?

Find out in ten minutes whether your server is exposed to the November 2026 PHP CVEs: version and build, FastCGI reuse, session settings, PHP 8.5 and error logs.

Open guide →

WordPress sites

Updating WordPress won't fix PHP2Shell. Check your site's PHP version in Site Health, ask your host to patch (email template), then clean up and rotate secrets.

Open guide →

Laravel apps

Laravel apps need a PHP upgrade, not a Laravel update, to fix PHP2Shell and the November 2026 PHP CVEs. Patch Forge, Docker or your server, restart Octane and queues.

Open guide →

PHP 8.2 end of life

PHP 8.2 security support ends on 31 December 2026. Who still patches 8.2 after that, whether WordPress, Drupal and Laravel run on 8.3+, and how to upgrade.

Open guide →

PHP-FPM hardening

A practical PHP-FPM hardening checklist: sockets and listen.allowed_clients, a pool per site, FastCGI reuse, catch_workers_output, status pages, limits, restarts.

Open guide →

WordPress & November PHP

Updating WordPress doesn't update PHP. What the 19 November PHP fixes mean for WordPress sites, the one hosting setup that matters most, and what to ask your host.

Open guide →

php.ini hardening

The php.ini settings worth changing on a production server, why each one matters after this year's PHP advisories, and how to stop applications switching them back.

Open guide →
Patch help

Too busy to patch? We’ll do it for you.

We upgrade PHP on your server, restart it properly and confirm the fixed version is serving traffic — with a short written report. Fixed price, no surprises.

Included in every patch

  • Backup check before any change
  • Upgrade to a fixed PHP release (or vendor patch)
  • Restart PHP-FPM / Apache and verify the live version
  • Quick check for obvious signs of compromise
FAQ

PHP2Shell questions, answered

How serious is PHP2Shell?

Both flaws are rated CVSS 9.2 (critical). They can be triggered by an unauthenticated web request, and researchers also showed they can leak PHP worker memory — which may contain passwords, API keys and session tokens. Attacks began on 17 October, working shells were recorded on unpatched honeypots on 24 October, and CISA added both flaws to its Known Exploited Vulnerabilities catalog on 26 October.

Does updating WordPress, Laravel or my plugins fix it?

No. The bugs are in the PHP runtime itself, not in your application. A fully updated WordPress or Laravel site is still exposed if the PHP serving it is unpatched. You (or your host) need to upgrade PHP. WordPress guide · Laravel guide

My site hides its PHP version. How do I check?

Most production servers hide the version header, so the reliable check is on the server: run npx php2shell-checker@latest --local, look in your hosting panel, or use WordPress → Tools → Site Health → Info → Server. Step-by-step guide

I’m on PHP 8.1 or older. What now?

There is no new official release for 8.1 and older. The PHP security team published source-only backports for 7.4, 8.0 and 8.1, and some distributions and hosting panels ship builds that include them under the old version number. For most sites the real fix is upgrading to 8.3, 8.4 or 8.5. Your options for old PHP

I’ve upgraded PHP. Is there anything else to do?

Restart PHP-FPM or Apache and confirm the version that actually serves your site. If you upgraded in October, to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, upgrade again: PHP’s 19 November 2026 release (8.5.13, 8.4.28, 8.3.37, 8.2.36) fixes 17 more security issues, including CVE-2026-115560. What the November release fixes

Is there a workaround if I can’t patch today?

There are interim mitigations — such as disabling session.upload_progress, enforcing request-size limits and enabling WAF rules — that reduce exposure. None of them is a fix; the PHP developers are clear that patching is the only real remedy. Interim mitigations

Is this checker safe to use?

Yes. The checker on this page runs entirely in your browser. The command-line tool only reads the version your server already advertises (or runs php -v on your server) — it never sends attack traffic. How the CLI works

Latest

What’s happened so far

  1. PHP releases 8.5.13, 8.4.28, 8.3.37 and 8.2.36 with 17 security fixes, seven rated critical, including CVE-2026-115560 and the "phpAfterShell" session bug.
  2. PHP announces a critical security release for all supported branches, a day ahead.
  3. CISA adds both PHP2Shell CVEs to its Known Exploited Vulnerabilities catalog, two days after working shells were recorded on unpatched honeypots.
  4. PHP warns of a separate, unlikely flaw in session upload progress (CVE-2026-115560), fixed later in the 19 November release.
  5. Network vendors start publishing impact statements; Palo Alto Networks says PAN-OS and Panorama are affected.
  6. Fixed releases available: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Cloudflare deploys WAF rules for all plans.
  7. Amazon’s honeypots record an exploitation attempt four days before public disclosure.

Full timeline →

Get the next alert before the attackers do

Plain-English emails when a critical PHP vulnerability or fix lands — what’s affected and exactly how to patch. About two a month.