DBUGGER Insights

PHP2Shell, Explained for Marketing and IT Leaders

Written by Andres Chavarria | Dec 4, 2026, 10:16:29 PM

By the DBUGGER team · Reviewed by Andrés Chavarría · Last verified: Dec 3, 2026

PHP2Shell is the name for two critical flaws in PHP itself, CVE-2026-109618 and CVE-2026-109619. Under certain conditions, they let an attacker run code on a web server without logging in. PHP released fixes on Oct 21, 2026, and the US cybersecurity agency CISA has since listed both flaws as exploited in real attacks.

If you own a website but don't run its server, this page is for you: what happened, whether it affects you, and what to ask your team this week.

What is PHP2Shell, in plain terms?

PHP is the programming language that runs under a large share of the web, including WordPress, Drupal, Joomla, Magento and many custom sites. PHP2Shell is a flaw in that engine, not in WordPress or in a plugin. That matters because a site can be exposed even when its own code is perfectly fine.

PHP rated both flaws 9.2 out of 10 (CVSS v4.0). The fixes shipped on Oct 21 in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. A second security release on Nov 19 (8.5.13, 8.4.28, 8.3.37 and 8.2.36) fixed further, unrelated flaws, so those newer versions are the ones to ask for today.

Does it affect my website?

It can affect any site whose server runs PHP: WordPress, Drupal, Joomla, Magento, Laravel or custom PHP code. Whether your site is actually exposed depends on the PHP version and how the server is set up, which only your host or IT team can confirm.

If your site runs on a hosted platform that doesn't run your own PHP code, such as HubSpot Content Hub, ask the vendor for its statement instead of assuming either way.

What happened, and when?

DateWhat happened
Oct 21, 2026PHP releases emergency fixes for both flaws
Late October 2026CISA adds both flaws to its Known Exploited Vulnerabilities catalog
Nov 19, 2026PHP ships a second security release with further fixes
Dec 31, 2026PHP 8.2 loses security support, the next decision point

What should I ask my IT team or hosting provider this week?

  1. Which PHP version runs on each of our sites?
  2. Is each one on a fixed release (8.2.36, 8.3.37, 8.4.28, 8.5.13 or later), or on a vendor package whose changelog names both CVEs?
  3. For anything on PHP 8.1 or older: who supplies the fix, and when do we upgrade?
  4. Have the server logs been reviewed for signs of exploitation since mid-October?
  5. Is a web application firewall in front of the site?

You don't need to understand the answers in technical depth. You need each one to be specific, in writing, and dated.

What if we're still on PHP 8.1 or older?

The PHP project no longer releases fixes for 8.1 and older. It did publish minimal source backports for 7.4, 8.0 and 8.1, but those are mainly for teams that build PHP from source.

In practice, you have two routes: a backported fix from a long-term-support vendor or your Linux distribution, or an upgrade to a supported version. Our Leave PHP Behind page walks through patching now and planning the move next.

Is patching enough?

For this flaw, yes. The patch is the fix, and a patched server is no longer exposed to PHP2Shell.

The ongoing cost is running the runtime at all. There will be another flaw and another end-of-life date: PHP 8.2's security support ends on Dec 31, 2026. Some teams handle that with a regular upgrade cycle. Others decide the website shouldn't depend on a runtime they have to maintain, and move to a managed platform. Both are reasonable; the mistake is not deciding. Our PHP 8.2 compatibility guide lists what to test before you upgrade.

FAQ

Is WordPress itself vulnerable? No. PHP2Shell is in PHP, the engine WordPress runs on. A fully updated WordPress site can still be exposed if its server runs an unpatched PHP version.

Does a web application firewall protect me? A WAF can block known attack patterns and buys time, but it doesn't replace the patch. Treat it as a second layer.

How do I know if we were attacked? Ask your host or IT team to review server logs since mid-October and check for unexpected files. Your vendor's advisory lists what to look for.

Last verified: Dec 3, 2026. We update this page when the facts change.

Sources: PHP security advisory and releases, php.net · Help Net Security, Oct 21, 2026 · PHP supported versions, php.net · The Register, Nov 18, 2026