Our blog

PHP2Shell: The PHP Vulnerability Behind This Week’s Website Shutdowns, and What Your Business Should Do

PHP2Shell: The PHP Vulnerability Behind This Week’s Website Shutdowns, and What Your Business Should Do

Quick answer: PHP2Shell is a pair of critical flaws (CVE-2026-109618 and CVE-2026-109619) in PHP, the language that powers most of the web, including WordPress. On unpatched servers, an attacker with no login can run code and read sensitive data. The fix is updating PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 and restarting every PHP process.

On Tuesday evening, October 20, details of two serious PHP vulnerabilities leaked online two days before their planned disclosure. By Wednesday, the PHP project had rushed out emergency patches, government cybersecurity agencies across North America, Europe and Asia were urging organizations to update, and websites in several countries were being taken offline as a precaution. One HR and payroll provider shut down its service across three countries while it patched.

If your business has a website, a client portal, an intranet, or any web-based software running on PHP, this affects you, even if your own code is perfectly secure. This report covers what PHP2Shell is, who is exposed, and the specific steps businesses are taking right now to close the gap.

What Is PHP2Shell?

PHP2Shell is the name given to two remote code execution vulnerabilities in the PHP runtime itself, not in any particular website or plugin. Both are rated 9.2 out of 10 on the CVSS v4.0 severity scale.

  • CVE-2026-109618 (out-of-memory corruption) — When PHP runs out of memory while setting up an incoming request, it can leave data half-built. PHP’s cleanup routine then treats that broken data as valid, which opens a path for an attacker to run their own code without logging in.
  • CVE-2026-109619 (stale global state) — PHP can hold on to internal information after the memory behind it has been released. A later request handled by the same process can use that leftover state, which again creates a path to running attacker code. A rarely used PHP feature that is switched on by default, session upload progress, is one confirmed way in.

Researchers say an attacker can also read memory from the PHP process without fully taking over the server. That memory can contain passwords, login tokens, API keys and certificates belonging to other visitors’ requests.

The flaws were found by researchers at Wiz, Calif and OpenAI, who used AI tools to turn a long-standing weakness into a working exploit far faster than a human team could have alone. The underlying code had been in PHP for more than a decade.

Why Is This Such a Big Deal?

PHP runs behind roughly 70% of websites that use a known server-side language, according to industry estimates. It powers WordPress, many e-commerce platforms, customer portals, learning management systems, and a long list of business applications that most owners never think of as “PHP.”

Three things make PHP2Shell especially serious:

  • No login required. An attacker doesn’t need an account, a password, or a vulnerable plugin. On the highest-risk configuration, a single web request can trigger the attack before any of the site’s own code even runs.
  • Scale. Palo Alto Networks counted more than 22.6 million potentially vulnerable internet-facing PHP instances. That’s not a count of confirmed breaches, but it shows how large the target is.
  • Attackers moved early. Amazon’s threat intelligence team detected an exploit attempt against one of its honeypots on October 17, four days before public disclosure. Cloudflare reported early attack traffic before the patch shipped and watched attackers change their methods to get around its protections.

As of October 22, no source had confirmed a successful break-in of a specific server, and the flaws had not yet been added to CISA’s Known Exploited Vulnerabilities catalog. That window is exactly why patching now matters.

Who Is Affected?

The safest assumption is that every unpatched PHP installation that handles web traffic is at risk. That includes servers using Apache with mod_php (the highest-risk setup), PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. Affected versions reach back as far as PHP 5.4.

Your company website

If your site runs on WordPress or another PHP-based platform, it is in scope. Updating WordPress, your theme, or your plugins does not fix this. The patch has to be applied to PHP on the server, which usually means your hosting provider or whoever manages that server.

Client portals, intranets and line-of-business apps

Many industry-specific tools, from document portals to scheduling systems, run on PHP under the hood. Some are hosted by the vendor, some run on your own servers. Either way, someone has to confirm the PHP underneath has been patched.

Your SaaS vendors

Even if you don’t host anything yourself, the cloud services you rely on may run PHP. This week, a major HR and payroll platform took its service offline across the U.S., Canada and Ireland while it responded, and government and education sites in Finland, the Netherlands, Belgium and France went offline or partly unavailable. When a vendor goes dark, your operations feel it.

Older and forgotten systems

PHP 8.1 and earlier no longer receive official updates. If an old server, a legacy app, or a test environment is still running one of those versions, it may stay vulnerable indefinitely unless it’s upgraded or the vendor supplies a backported fix. It’s the same lesson we covered in our post on Windows Server 2016 reaching end of support: unsupported software becomes a permanent open door.

“Our Website Is Just a Brochure Site. Why Would Anyone Target It?”

Because attackers aren’t choosing targets by hand. They scan the entire internet for vulnerable PHP versions and hit everything that responds. Researchers noted that even a basic test page on a vulnerable PHP version can be attacked, since the flaw lives in the engine, not the content.

A compromised “brochure” site can be used to host phishing pages under your domain, plant malicious downloads for your customers, send spam that damages your email reputation, or serve as a foothold if that server connects to anything else in your environment.

“Our Hosting Company Handles Security.”

Many do, and many patched quickly this week. But “handles security” means different things in different hosting contracts. Shared hosting providers often patch PHP for you. Virtual private servers and dedicated servers frequently leave PHP updates to the customer. Some hosting control panels, such as cPanel and Plesk, run multiple PHP versions side by side.

The only safe answer is a confirmed one. Ask your host, in writing, whether every PHP version serving your sites has been updated and restarted. If you’d rather not chase that down yourself, that’s exactly the kind of conversation an IT vendor management partner should be having on your behalf.

“We Updated PHP, So We’re Done.”

Almost. Security researchers flagged several ways a “patched” server can still be exposed:

  • Running processes weren’t restarted. PHP-FPM, Apache and other long-running workers keep using the old code until they are restarted or redeployed.
  • The wrong PHP was checked. The command-line check (php -v) can report a different version than the one actually serving your website.
  • Containers were patched in place. If you run PHP in containers, patching a running container leaves the underlying image vulnerable the next time it’s deployed.
  • Version numbers can mislead. Linux distributions often backport security fixes without changing the version number, so the reliable check is whether the package changelog lists the two CVE identifiers.

How Businesses Are Fixing PHP2Shell Right Now

Here’s the playbook organizations are following this week, in order of priority.

1. Inventory every place PHP runs

List your public website, staging and test sites, client portals, internal tools, and any vendor software installed on your servers. Don’t forget hosting control panels and old servers nobody has logged into in years.

2. Patch internet-facing systems first

Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, starting with anything reachable from the internet and anything using Apache mod_php. Then restart or redeploy every PHP worker and confirm none are still running the old build.

3. Plan an upgrade path for unsupported versions

Systems on PHP 8.1 or older need a vendor-supplied fix or an upgrade to a supported branch. Also note that PHP 8.2 reaches end of life on December 31, 2026, so anything patched to 8.2.35 today should already be on the calendar for an upgrade.

4. Use temporary protections only as a stopgap

Where patching has to wait, some organizations are putting a web application firewall (WAF) in front of their sites. Cloudflare switched on protective rules by default for its customers before the patch shipped. PHP also published configuration changes that block specific attack paths, such as turning off session upload progress. These measures reduce risk but don’t make a server safe. PHP’s own developers have been clear that updating is the only complete fix.

5. Take unpatchable systems offline

U.S. federal agencies advised taking systems offline if they cannot be updated promptly. That’s what several governments and vendors did this week. A planned outage is far cheaper than a breach.

6. Check for signs of compromise

Because exploit attempts began before disclosure, patched systems should still be reviewed. Researchers recommend looking for unusual upload requests followed by memory errors or repeated server errors, oversized session cookies, unexpected new files or admin accounts, modified PHP files, and odd outbound connections.

7. Rotate exposed credentials

If a server may have been compromised, assume anything that PHP process could read is exposed. That includes database passwords and API keys for connected services like payment processors, email platforms and CRMs. Rotate them.

8. Confirm your backups are clean and restorable

If you do find a compromise, recovery depends on having a known-good backup from before the attack. If you haven’t tested a restore recently, our post on why backups fail silently explains what to check.

Questions to Ask Your Web Host and Software Vendors This Week

  • Which PHP versions are serving our sites and applications today?
  • Have all of them been updated to a fixed release, and were all PHP processes restarted afterward?
  • Are any of our systems on PHP 8.1 or older? What is the plan for those?
  • Do you have WAF protection in front of our sites in the meantime?
  • Have you reviewed logs for signs of exploitation since October 17?
  • Will you notify us in writing if you find evidence of compromise?

If you work with several vendors, collecting these answers is time-consuming. As we covered in IT Vendor Management 101, having one point of contact who speaks the vendors’ language makes moments like this much faster.

Frequently Asked Questions

What is PHP2Shell?
PHP2Shell is the nickname for two critical vulnerabilities in PHP, CVE-2026-109618 and CVE-2026-109619, disclosed in October 2026. They let an attacker with no account run code on an unpatched web server and read sensitive data from server memory.

Which PHP versions fix PHP2Shell?
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released October 21, 2026. Versions 8.1 and older have no official fix and need a vendor backport or an upgrade.

Does updating WordPress fix PHP2Shell?
No. WordPress, themes and plugins run on top of PHP. The fix has to be applied to PHP on the server itself, typically by your hosting provider or server administrator.

Is my business’s website affected if it’s hosted by someone else?
Possibly. It depends on whether your host has updated PHP and restarted it. Ask them directly and get confirmation in writing.

Is it safe for our staff to visit websites that went offline?
Available reporting does not indicate that simply visiting an affected website infects a visitor’s computer. The risk sits with the organizations running unpatched servers.

Are firewall rules enough if we can’t patch yet?
No. WAF rules and configuration changes block known attack paths and buy time, but attackers have already been seen adjusting their methods. Patching is the only complete fix.

Get a Second Set of Eyes on Your Exposure

PHP2Shell is a reminder that business risk often lives in software you never see, running on servers you don’t manage. Proactive patch management, vendor coordination and regular risk reviews are built into how we deliver Total Technology Confidence™ for Michigan businesses and nonprofits, so a headline like this one becomes a checklist instead of a crisis.

Learn more about our Cybersecurity & Risk Management services and Technical Business Reviews, or talk with our team if you’d like help confirming your websites and vendors are patched.