Two critical flaws in the PHP engine could let an attacker run their own code on your web server. Sites on PHP 8.1 and older get no official fix. Here's what that means for your business.
On 21 October 2026, the PHP project shipped an emergency release to fix two critical vulnerabilities in PHP itself. Security researchers call the pair PHP2Shell. Both are rated 9.2 out of 10 for severity, and both can lead to what security teams call remote code execution: someone on the internet running their own instructions on your server.
Most security news is about a plugin, a theme or a framework. This one is different. The flaws sit in PHP, the engine underneath WordPress, Laravel, Magento, Drupal and countless custom business applications. Updating your plugins won't fix it. Updating WordPress won't fix it. Only the PHP engine itself can be fixed, and if your website runs on an older version of PHP, the PHP project isn't shipping you an official fix at all.
For a business owner, that turns a technical bulletin into two practical questions. Which version of PHP does your website run? And who is responsible for keeping it current?
What PHP2Shell is, in plain terms
Think of PHP as the engine that runs your website. Every time a visitor loads a page or submits a form, PHP handles that request, and then tidies up after itself before the next one arrives.
PHP2Shell is two separate flaws in that process:
- The first (CVE-2026-109618) happens when PHP runs out of memory partway through handling a request. It can leave internal data half-built, and the clean-up that follows treats that broken data as if it were valid.
- The second (CVE-2026-109619) happens when information belonging to one request survives after it should have been cleared away, and the next request handled by the same part of the server picks it up. In both cases, a carefully crafted request can turn that confusion into control of the server. The PHP team confirmed that on one common setup, Apache with mod_php, an attacker could do this over the internet with default settings, before your own application code even runs. Other widely used setups, including PHP-FPM, are also considered susceptible.
The PHP project's own advisory leaves little room for shortcuts: updating to a PHP release containing the patch "is the only complete mitigation".
What could go wrong for your business
When an attacker can run their own code on your web server, the server effectively stops being yours alone. The realistic consequences include:
- Data exposure. Customer records, order histories, enquiry forms and the passwords your application uses to reach its database usually sit on, or are reachable from, the same server.
- Downtime. A compromised site may need to be taken offline while it is investigated and rebuilt, which means lost sales, missed enquiries and staff time diverted from normal work.
- Recovery costs. Investigating, cleaning up and restoring from backups is rarely quick or cheap.
- Reputation. Customers and partners judge a business by how it handles their information. A breach, or a site serving malicious content, is hard to explain away.
- Compliance. Depending on where you operate and what data you hold, a breach can bring reporting duties and scrutiny from regulators or clients.
These are potential outcomes, not a description of what has happened to any particular site. On exploitation, reports differ, so it is worth being precise. watchTowr says it has observed exploitation in the wild through its honeypot network (decoy servers set up to attract attackers) since 21 October. Cloudflare says it has seen attack traffic against its customers, including attackers adjusting their requests to get past its firewall rules. Imperva reported no matching traffic during its monitoring before disclosure. At the time of writing, the US Cybersecurity and Infrastructure Security Agency (CISA) has not added either flaw to its catalogue of vulnerabilities known to be exploited.
Could your website be next?
Attackers often use automated tools that scan large numbers of websites for known weaknesses. They don't need to choose you. A site can be probed simply because it is online and might be running a vulnerable version.
PHP2Shell fits that pattern closely. The flaws are in PHP itself, so the type of site doesn't matter much: a brochure site, an online shop or an internal portal can all be exposed if the PHP version and setup are vulnerable. And once a fix is public, attackers can compare the patched and unpatched code to work out exactly what changed. That is why the window between a fix being published and attackers acting on it is usually measured in days, not months.
None of this means every PHP website is vulnerable, or that an attack is inevitable. Exposure depends on your PHP version, how it is set up and whether the fix has reached your server. But a small audience is not protection, and a site that has never had a security incident has simply not had one yet. The only reliable way to know is to check.
Why legacy PHP applications deserve attention
The difference between a manageable problem and a serious one comes down to the version you run. The PHP project fixed PHP2Shell for its supported branches, PHP 8.2 to 8.5, within a day of announcing it. Note that PHP 8.2 itself stops receiving security fixes on 31 December 2026.
For older versions, the picture is very different:
- PHP 7.4, 8.0 and 8.1 get no official release. The PHP team published source-code fixes for people who build PHP themselves, and some Linux distributions and paid long-term-support vendors provide patched versions. Otherwise, these sites are on their own.
- PHP 5 and PHP 7.0 to 7.3 get nothing at all. According to W3Techs, PHP 7 and older still run on roughly a third of the websites that use PHP: 26.9% on PHP 7 and 7.7% on PHP 5. Every one of those sites is on a version with no official PHP release for PHP2Shell.
Applications are rarely stuck on old PHP by choice. Usually a plugin, an extension or a framework stops working on newer versions, and fixing that was never in anyone's budget. Each year the upgrade gets harder. Hosting adds another layer: on many shared and managed plans, you can't change PHP yourself and must wait for your provider.
This isn't the first time a flaw in PHP itself has put businesses at risk. CISA's catalogue already lists several PHP runtime vulnerabilities as exploited, two of them as used in ransomware campaigns. And this summer, a separate pair of flaws in WordPress known as wp2shell was added to the same catalogue after Wiz reported multiple attackers exploiting it. The risk isn't confined to one layer of a website.
To be clear, PHP is not the problem. A current, well-maintained PHP version received its fix promptly. The risk comes from ageing applications that can no longer move to a supported version.
What this means for your organisation
Can someone on your team say, today, which PHP version each of your websites and applications runs? Do you know who hosts them, and whether your provider has applied the update? If an older application can't move to a supported version, does anyone know why?
If nobody can answer those questions, that is a finding in itself, and a common one. It is far better to discover it through a planned review than through an incident.
Understanding the condition of your current application is also the starting point for any sensible modernisation decision. For some systems, keeping PHP current is the right answer. For others, the cost of catching up is close to the cost of rebuilding. You can only make that call with an accurate picture of what you run.
Recommended next step
Don't wait for an incident to find out whether PHP2Shell affects you. Take our free Legacy PHP Risk Assessment to understand which PHP versions you run, how exposed they are to flaws like this one, and what it would take to get onto a supported footing.
Then talk to our team about the findings. Depending on your application, its architecture and your business goals, the right path may be an upgrade, extended support or a gradual move to a modern stack such as Node.js, which follows a published long-term-support schedule. No platform is secure by default, Node.js included, and every stack needs to be kept current. What matters is choosing a path your team can maintain with confidence.
Free Legacy PHP Risk Assessment
Not sure where you stand? We'll review your PHP version, hosting setup and dependencies, and tell you plainly where you're exposed and what your options are, whether that's a patch, an upgrade or a migration.




