<?phork ?>
CVE-2026-109618 · CVE-2026-109619

   _______________________
  /  o  o  o  |  o  o  o  \
 |  o  o  o   | o  o  o    |   <?php
  \___________|___________/    patch();

is your php patched?

PHP2Shell is two critical unauthenticated remote-code-execution bugs in PHP, fixed on 21 Oct 2026 and already being exploited. Paste your version below. The check runs in your browser; we never touch your server.

The CLI and your web server can run different PHP builds. Check the version a real web request uses (phpinfo() behind auth, or your FPM pool's binary), not only php -v.

Fixed releases

8.5.x
8.5.12+
8.4.x
8.4.27+
8.3.x
8.3.36+
8.2.x
8.2.35+
  • 7.4 to 8.1: end-of-life. No release, only source backports from the PHP security team, or your distro/LTS vendor's package.
  • 5.4 to 7.3: no fix at all. Upgrade.
  • Every web SAPI is in scope (PHP-FPM, mod_php, php-cgi, FrankenPHP, LiteSpeed). Apache mod_php is the most exposed.
  • Remi's repo lagged on release day; if you install from it, confirm the package version or switch source.

Can't patch this minute?

These reduce exposure; none of them make you safe. Patch as soon as you can.

  • Set session.upload_progress.enabled=0 (and fatal_error_backtraces=0 on 8.5). For FPM use php_admin_flag in every pool file.
  • memory_limit=-1 blocks one bug but lets a request eat all memory, so pair it with a container/cgroup memory cap and monitoring.
  • Restart every PHP worker after changing settings, and confirm them from a web request, not the CLI.
  • Cloudflare has WAF rules for known vectors (stopgap, only for traffic through Cloudflare). Blocking multipart/form-data also helps but breaks uploads.
  • If the site is critical and unpatched, serve a static maintenance page until it's fixed. Investigate logs back to 17 Oct, when the first attempts were seen.
Sources:Tenable FAQSansecQualysRapid7Discuss in the $SEGSAINT room →