BREAKING
Technology

What is PHP2Shell? Critical PHP flaws put millions of websites on emergency patch alert

Millions of websites running PHP are facing a major security threat after researchers uncovered two critical vulnerabilities that could allow hackers to take control of affected servers. The flaws, collectively called PHP2Shell, were publicly disclosed on October 21, 2026. Both carry a critical severity score of 9.2 out of 10, prompting urgent warnings from cybersecurity agencies and website hosting companies worldwide.

The problem is so serious that even the Prime Minister of Japan has tweeted about this. PHP runs behind the scenes on a huge number of websites, including those using WordPress, Drupal and Joomla. Attackers could exploit vulnerable installations without knowing a password. Emergency patches are now available, but website administrators need to install them quickly. Cloudflare has already reported early attacks targeting the vulnerabilities.

:

What exactly is PHP2Shell?

PHP2Shell is the name given to two security flaws identified as CVE-2026-109618 and CVE-2026-109619.

Both involve problems with how PHP manages computer memory. Under certain conditions, attackers can send specially prepared requests that cause the server to behave unexpectedly.

The result could be remote code execution, which means hackers may run commands on a vulnerable server without logging in.

Think of a website as a shop with a locked entrance. PHP2Shell could give attackers a way to interfere with operations inside, even without a key.

:

Which PHP versions are affected?

The PHP security team released emergency updates on October 21.

PHP version Fixed version
PHP 8.5 8.5.12
PHP 8.4 8.4.27
PHP 8.3 8.3.36
PHP 8.2 8.2.35
PHP 8.1 and older Upgrade or obtain a supported vendor fix

Older unsupported PHP installations remain a particular concern.

:

How did AI help discover PHP2Shell?

OpenAI says its AI-assisted security initiative, Patch the Planet, helped researchers identify critical weaknesses in PHP.

Researcher Calif identified a flaw using GPT-5.6 Sol. Cybersecurity company Wiz independently discovered and reported both vulnerabilities.

The PHP maintainers led the patching effort, supported by security researchers and infrastructure providers including Cloudflare.

:

What should website owners do?

Website administrators should check their PHP version and install the appropriate security update immediately.

OpenAI has published a that can help identify potentially outdated installations. Its results are limited by the version information a server exposes, so an unclear result cannot confirm safety.

For vulnerable websites, updating PHP remains the only complete fix. Administrators should check server logs for suspicious activity, particularly if their systems were exposed before patching.

:

FAQs

1. What is PHP2Shell?

PHP2Shell refers to two critical PHP vulnerabilities that may allow attackers to execute malicious commands on affected servers.

2. Can PHP2Shell affect WordPress websites?

Yes. WordPress websites running vulnerable PHP versions may be affected, even if WordPress itself is updated.

3. Is PHP2Shell being exploited by hackers?

Cloudflare reported early attacks around the public disclosure. The full scale of successful exploitation remains unclear.

4. Is there a fix for PHP2Shell?

Yes. PHP released patched versions on October 21, 2026. Website administrators should upgrade or obtain verified vendor patches.

5. Can a PHP2Shell checker fix my website?

No. A checker can help identify potentially vulnerable PHP versions. Applying the correct security update requires action by the website owner or hosting provider.