Back to Blog

PHP2Shell: The Critical Bug Your WordPress Update Will Not Fix

• 3 min read • Ahmed Daoudi

Most PHP security news is about a plugin. This one is different. PHP2Shell is the nickname for two critical vulnerabilities in the PHP interpreter itself, and because the bugs live below your application, the usual "update WordPress and the plugins" routine does not touch them.

The timeline

Why it is so serious

The flaws can be triggered by an unauthenticated web request and lead to remote code execution before any of your application code runs. Your login page, your web application firewall rules written for WordPress, your carefully reviewed plugin list: none of that is in the path. Since PHP still runs a very large share of the web, the exposed population is huge, and much of it is small business sites that nobody actively maintains.

Where unpatched PHP hides

What to do now

  1. Inventory every place PHP runs, including containers and CI images.
  2. Upgrade to the patched releases listed in the PHP project's advisory, or the fixed package from your distribution.
  3. Rebuild and redeploy container images from fresh base images.
  4. If a server was exposed and unpatched after October 24, assume compromise: look for unfamiliar files in web roots, unexpected cron jobs and outbound connections.
  5. Rotate secrets those servers could read: database passwords, API keys, cloud credentials.

The broader lesson

We treat the language runtime as part of the floor, something that is just there. PHP2Shell is a reminder that the runtime is a dependency like any other, with a version, a patch cadence and an owner. If nobody on your team can say which PHP version production is running right now, that is the first thing to fix.

Sources