Critical PHP Vulnerabilities: What Your Business Needs to Do Now

Critical PHP Vulnerabilities: What Your Business Needs to Do Now

If your business runs a website, a client portal, or a line-of-business app, there's a good chance PHP is running somewhere underneath it. On October 21, 2026, the PHP project released emergency security updates for two critical vulnerabilities that let an attacker take control of an affected server without logging in.

Attackers aren't waiting. On October 26, CISA confirmed that both flaws are being actively exploited, so this one belongs at the top of your IT team's list today.

If you updated PHP in October, you need to update again. On November 19, 2026, PHP released fixes for seven more critical vulnerabilities, including one called phpAfterShell (CVE-2026-126714). Servers running the October versions do not have these fixes. The new patched versions are listed below.

Publish and Update History

Updated at 2:00 PM CT on November 23, 2026: Added PHP's November 19 security release, including phpAfterShell (CVE-2026-126714), and the new patched versions. Servers updated in October need to be updated again.

Updated at 9:50 AM CT on October 28, 2026: Added a security firm's report of confirmed PHP2Shell attacks on real organizations.

Updated at 8:50 AM CT on October 27, 2026: Added CISA's October 26 confirmation that both vulnerabilities are being actively exploited.

Updated at 3:46 PM CT on October 26, 2026: Added reports of successful PHP2Shell attacks on research decoy servers.

Updated at 1:15 PM CT on October 23, 2026: Revised NIST's severity score for CVE-2026-109619 and added PHP's October 23 disclosure of a related issue, CVE-2026-115560.

Published at 8:00 AM CT on October 23, 2026.

What happened with PHP

PHP is the server-side programming language behind countless websites and web applications, including popular platforms like WordPress, Drupal, Joomla, and Magento. On October 21, the PHP security team released fixes for two flaws, both rated Critical (9.2 out of 10) by PHP. NIST's National Vulnerability Database rates CVE-2026-109618 Critical (9.8) and CVE-2026-109619 High (8.1).

  • CVE-2026-109618: A problem in how PHP handles running out of memory. An attacker can trigger it mid-request and corrupt memory in a way that leads to remote code execution.
  • CVE-2026-109619: Leftover data from one web request can be reused by the next one after its memory has been freed. That can expose data or let an attacker run their own code. 

Researchers have nicknamed the pair "php2shell." The release was moved up a day after the vulnerability IDs leaked publicly ahead of schedule. 

On November 19, 2026, PHP released a second round of security updates covering seven critical vulnerabilities. The one getting the most attention is phpAfterShell (CVE-2026-126714), a flaw in how PHP saves session data to files, which is PHP's default setup. PHP rates it 9.2 (Critical) on the CVSS 4.0 scale. NIST's National Vulnerability Database has not yet published its own score.

If an attacker can shape what a session contains and cut a write short at the right moment, the application may read that data back as program objects. Whether that leads to code execution depends on the application's own code, so exposure varies from one server to the next. As of November 23, PHP had not reported attacks using phpAfterShell, and it was not in CISA's U.S. Known Exploited Vulnerabilities catalog. The researchers who found the flaw published a demonstration on November 19, and the picture can change quickly, as it did with PHP2Shell. CVE-2026-115560, which we added on October 23, is also fixed in this release.

Why PHP2Shell is so serious

Several details make PHP2Shell more urgent than a routine patch cycle.

No login required. An attacker doesn't need a username or password. In some configurations, a single crafted web request can trigger the attack before your application code even runs.

The affected code goes back years. Researchers traced the vulnerable code path to PHP 5.4, released in 2012. Older servers that haven't been touched in a while are among the most exposed.

Attackers are actively exploiting the PHP2Shell flaws. Arctic Wolf Labs observed widespread scanning and active exploitation attempts shortly after disclosure, including attempts to deliver malware. Researchers have since recorded attacks that successfully ran commands on honeypots, which are decoy servers set up to study attackers. On October 26, CISA added both vulnerabilities to its Known Exploited Vulnerabilities catalog and gave federal agencies until October 29 to patch. Security researchers have since reported that attackers combined PHP2Shell with a separate Linux flaw to compromise 25 firewall servers across multiple countries, including systems associated with a government-affiliated organization.

Federal agencies are sounding the alarm. CISA urged organizations to patch immediately and said any system that can't be updated, or that's running PHP 8.1 or older, should be taken offline until it is. The NSA warned that attackers are likely to weaponize these flaws. 

Is your business affected?

Any server running PHP to serve web requests is potentially at risk. That includes common setups like Apache with mod_php (the highest-risk configuration, according to PHP), PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed.

PHP versions that need updating

PHP has released patched versions for every supported branch. If you updated in October, you need the newer versions below.

PHP branch Affected versions Update to 
8.5 8.5.12 and earlier 8.5.13 or later
8.4 8.4.27 and earlier 8.4.28 or later
8.3 8.3.36 and earlier 8.3.37 or later
8.2 8.2.35 and earlier 8.2.36 or later, and plan to upgrade further. PHP 8.2 reaches end of life December 31, 2026.

NOTE: The October versions (8.5.12, 8.4.27, 8.3.36, and 8.2.35) fix PHP2Shell but not phpAfterShell. Security researchers report that PHP 8.6.0, released November 19, 2026, includes these fixes.

Software you didn't build yourself

Don't stop at the servers your team manages directly. As CISA puts it, PHP is often a component of other software, so you may not see it directly. Content management systems, hosted portals, and network or security appliances can all run PHP behind the scenes. Check with each of your software partners to confirm whether their products are affected and when patches will be available.

Some Linux distributions fix PHP without changing its version number, so the number alone may not show whether a server is protected. If PHP came from your operating system vendor, check that vendor's security notice for CVE-2026-126714: Red Hat, Ubuntu, or SUSE.

What to do right now

Updating PHP is the only complete fix. Here's how we recommend working through it:

  1. Build your inventory. Identify every server, container, and hosted service running PHP.
  2. Patch internet-facing systems first. Public websites and portals carry the most risk. Update them, restart all PHP workers, and rebuild any container images.
  3. Upgrade end-of-life versions. PHP 8.1 and older won't get an official fix. CISA recommends taking these systems offline until they're upgraded to a supported version.
  4. Add a web application firewall rule as a stopgap. Several cloud and WAF providers have released rules that block known attack patterns. These buy you time. They aren't a replacement for patching.
  5. Turn up logging and review recent activity. Review logs from the days before and since disclosure. Watch especially for PHP processes launching command shells or downloading tools, and keep enhanced logging on while you patch. 

If you can't patch right away, PHP has published temporary configuration changes that reduce exposure to specific attack paths, and restricting file upload forms that aren't needed for daily business helps too. Neither makes a server safe. For phpAfterShell, turning off session upload progress (session.upload_progress.enabled=0) closes the easiest way in. It does not close the flaw. If you made this change for PHP2Shell, you do not need to repeat it, and you still need to update. PHP's advisory lists more temporary settings for the other vulnerabilities in this release.

Signs a server may already be compromised

Details of the PHP2Shell flaws leaked a day before the patches were released, and attackers moved quickly, so updating PHP doesn't tell you whether a system was already hit. Watch for these warning signs on any server that was running a vulnerable version:

  • Website files that were created or changed without explanation
  • Unexpected administrator accounts, scheduled tasks, or login activity
  • Web server processes running unfamiliar commands or programs
  • Unexplained outbound network connections from a web server
  • Unexpected website changes, redirects, or error messages
  • More frequent server crashes, memory errors, or web service restarts
  • Security alerts involving web shells (hidden tools attackers use to control a server), remote access, or suspicious commands
  • Requests recorded in the PHP-FPM access log (PHP-FPM is the service many servers use to run PHP) with no matching entry in your web server or load balancer logs

If you spot any of these, isolate the affected server where you can and bring in your security or hosting team. Preserve your web, firewall, and system logs before making major changes. That evidence shows how far an attacker got and what needs to be cleaned up. 

Frequently asked questions about the PHP vulnerabilities

Here are answers to the questions we're hearing most from business leaders this week.

I already updated PHP for PHP2Shell. Am I protected from phpAfterShell?

No. The October updates (8.5.12, 8.4.27, 8.3.36, and 8.2.35) do not include the November fixes. Update to 8.5.13, 8.4.28, 8.3.37, or 8.2.36 or later, then restart your PHP workers and rebuild any container images that include PHP.

Is my WordPress site affected?

WordPress itself isn't the problem. The PHP version running underneath it is. Researchers have demonstrated attacks against specific versions of WordPress, Drupal, Joomla, and Magento. If your site is hosted, ask your hosting provider which PHP version you're on and when it will be patched. 

What else uses PHP besides websites?

More than most people expect. PHP often runs inside other software, where the people using it never see it. Common places include:

  • Content management and ecommerce platforms, such as WordPress, Drupal, Joomla, and Magento
  • Client portals, intranets, and custom web applications
  • Web-based management consoles on network, security, and communication systems
  • Prebuilt cloud applications and hosted services
  • Hosting control panels, such as cPanel and Plesk 

Vendor software often includes PHP without saying so, and standalone PHP files on Windows servers are often overlooked. If you're not sure whether a product uses PHP, ask its provider directly whether it's affected and when a fix will be available.

Is updating my application enough?

Not always. Updating the application is not the same as updating PHP, so confirm the PHP version itself is 8.5.13, 8.4.28, 8.3.37, or 8.2.36 or later, or ask your vendor.

We use a managed hosting provider. Do we need to do anything?

Confirm it. Some platforms patch automatically. Others only patch supported versions or require you to redeploy. Get a clear yes from your provider, in writing if possible.

How is phpAfterShell different from PHP2Shell?

PHP2Shell is a pair of flaws in how PHP handles memory while it processes requests. phpAfterShell is a flaw in how PHP saves session data to files. Both can let an attacker who has not logged in run code on a server. phpAfterShell depends more on how an application is configured and written, which makes it narrower in scope. It is not a lower priority. It sits in a release with six other critical fixes, and the October update does not cover it.

Does phpAfterShell affect every PHP application?

No. It affects PHP below the fixed versions when sessions are stored in files, which is PHP's default. Whether a particular application can be exploited also depends on its own code, and that is hard to confirm without a code review. Updating PHP removes the question.

How the attack works: technical details for IT teams

For IT and security teams, here's a closer look at PHP2Shell and phpAfterShell and what attackers do after exploiting them. 

  • CVE-2026-109618 (out-of-memory corruption): PHP enforces its memory limit by abruptly stopping a request that exceeds it. If that happens while PHP is still setting up request data, such as parsing a file upload, the cleanup that follows can treat partially set-up memory as valid. That memory may still hold data the attacker controls.
  • CVE-2026-109619 (stale global state): Internal state from one request can survive after its memory is freed, for example after a fatal error. The next request handled by the same worker can use that stale state before it's reset. PHP's session upload progress feature, which is on by default, is one confirmed path to this flaw. On October 23, PHP disclosed a related issue in the same feature, CVE-2026-115560. It affects only certain session configurations, and PHP fixed it in its November 19 release.
  • Highest-risk setup: PHP rates Apache with mod_php as the highest risk. In PHP's demonstrated exploit, a single unauthenticated request triggers the attack before any application code runs.
  • Data exposure: Beyond code execution, researchers demonstrated that an attacker can pull secrets out of server memory, such as database passwords and API keys.
  • After exploitation: A successful attack gives the attacker command execution as the web server user. Security researchers describe this as a foothold for planting web shells, harvesting credentials from configuration files, and moving deeper into the network. 

PHP2Shell Attack Chain

phpAfterShell sits in PHP's default session handler, which stores each user's session as a file on disk. When PHP updates a session, it writes the new data over the existing file without clearing it first. If that write is interrupted, the file can end up holding the start of the new data followed by the leftover end of the old data. The next time PHP reads the file, it can read part of that leftover text back as program objects. If an attacker controls what the text says, and the application has code that can be abused (known as a gadget chain), the result can be remote code execution.

Session upload progress, a feature that records the status of a file upload in the session, is the easiest way for a remote attacker to influence that data. PHP's advisory says the flaw is not limited to that feature. Applications that store large, user-controlled strings in sessions are another route.

For full technical analysis, including attack diagrams, see research from these security teams:

For Marco's Managed IT clients

As shared in our recent client notice, please contact our Support Desk if you have questions about these PHP vulnerabilities or would like help determining which of your devices are affected:

  • Submit a ticket via the portal: portal.marconet.com
  • Chat: Start a ticket in mChat
  • Phone: 800-847-3097

Additional resources

For full technical details and the latest official guidance, see these sources:

Related Posts

NIST Cybersecurity Framework: Full Overview & Guide
NIST Cybersecurity Framework: Full Overview & Guide

In a nutshell, the NIST Cybersecurity Framework (NIST CSF) gives organizations a common structure for managing cybersecurity risk, built around six functions: Govern, Identify, Pro...

HTTP2Shell: Brotli Vulnerability Explained
HTTP2Shell: Brotli Vulnerability Explained

A critical flaw in Brotli, a compression library built into thousands of web applications and devices, is being actively exploited. Tracked as CVE-2026-111497 and nicknamed "HTTP2S...

How To Identify AI Phishing Scams
How To Identify AI Phishing Scams

An email arrives from your CFO, asking you to approve a payment. Minutes later, your phone rings — the same voice, urgent and familiar, confirming the request. You join a quick vid...

Expert Tips on How To Reduce Cyber Liability Insurance Costs
Expert Tips on How To Reduce Cyber Liability Insurance Costs

Cyber insurance premiums will frequently run a small to mid-sized business 1,200–7,000 a year, depending on your industry. Rates spiked during the 2021–2022 hard market, then eased...

Ransomware Response Plan: A Step-by-Step Guide for SMBs
Ransomware Response Plan: A Step-by-Step Guide for SMBs

I've helped businesses through ransomware attacks, and the first hour matters more than almost anything else. What you do in that hour decides how fast you recover, how much you lo...

The Real Cost of a Data Breach in 2026
The Real Cost of a Data Breach in 2026

A data breach doesn't stop costing you the day it's contained. It can cost you an enormous amount of time while you recover. It can also cost you clients. If you’re hoping to make ...

Mastering Cybersecurity Compliance in Regulated Industries
Mastering Cybersecurity Compliance in Regulated Industries

First off, I just want to say that I’ve never met a business owner who was happy about having to comply with regulations. Meeting compliance can require time and money, often from ...

Healthcare Cybersecurity in 2026
Healthcare Cybersecurity in 2026

Cyberattacks and IT incidents have risen sharply in 2025 and 2026, and if current trends are any indication, cybercriminals are becoming bolder and far more dangerous. Just this pa...

5 Common Healthcare Cybersecurity Challenges (And How MDR/SOC Can Help)
5 Common Healthcare Cybersecurity Challenges (And How MDR/SOC Can Help)

In our conversations with healthcare clients, we hear the same five security challenges come up again and again. If you're reading this, you're probably dealing with some version o...

The State of Healthcare Cybersecurity in 2026
The State of Healthcare Cybersecurity in 2026

When I work with healthcare clients, one of the first things I tell them is that I completely understand how difficult it has been to prioritize cybersecurity updates when their va...