New Jersey Tech, Business, & Creative Resources
PHP2Shell Exposes a Security Problem Your Plugins Can’t Fix
Two critical vulnerabilities in PHP could allow unauthenticated attackers to execute code on web servers. Emergency patches arrived on October 21, but outdated installations remain a serious concern.
If you have a PHP-based website, you should pay attention to the most recent security update. And no, updating WordPress or installing another security plugin won’t solve this one.
As of October 21, 2026, the PHP project has published emergency patches that address two critical vulnerabilities that could allow attackers to execute malicious code without logging in.
The flaws, tracked as CVE-2026-109618 and CVE-2026-109619, are collectively nicknamed PHP2Shell. Both carry a CVSS v4.0 severity score of 9.2.
However, the problem is deeper than a vulnerable plugin, theme, or poorly written application. PHP, which powers WordPress and many other websites, is affected by these bugs.
In addition, information about the vulnerabilities surfaced before patches were available, giving attackers a head start.
Here’s what happened, how PHP2Shell works, and what website owners and administrators need to do now.
PHP Releases Emergency Patches for Two Critical Flaws
The PHP security team released four updated versions on October 21:
- PHP 8.5.12
- PHP 8.4.27
- PHP 8.3.36
- PHP 8.2.35
According to Rescana’s coverage of the official PHP announcement, the emergency release addresses two critical remote code execution (RCE) vulnerabilities.
These weren’t the only fixes included. The PHP 8.5.12 changelog reportedly includes 90 fixes across 29 components. However, the two critical security flaws are the reason administrators should prioritize upgrading.
PHP published separate GitHub security advisories for each vulnerability:
It appeared that both advisories appeared on October 21 at 13:34 UTC, shortly before the new PHP releases were released. It was clear from the PHP project that all installations serving web requests needed to be updated immediately.
The PHP2Shell Details Leaked Before the Fixes Were Ready
In general, security disclosures follow a familiar process. As soon as users have a reasonable opportunity to protect themselves, researchers report vulnerabilities privately, developers prepare patches, and technical details become public.
PHP2Shell didn’t follow that script.
Originally, the disclosure was scheduled for October 22. It was instead on October 20 that both vulnerabilities were disclosed.
According to Vincent Schmalbach’s timeline, a Hacker News post identifying both CVEs appeared at approximately 15:20 UTC. Schmalbach credits Sansec with identifying the initial post. Approximately 80 minutes later, security researcher Kevin Beaumont publicly warned that information about the vulnerabilities had leaked.
According to PHP’s php.announce mailing list, PHP had notified its users of both flaws by 19:33 UTC and that emergency updates would be published at 14:00 UTC on the following day. Furthermore, the team indicated it could speed up the release if more technical details were made public or active exploitation was detected.
That possibility was more than theoretical.
The Hacker News reported that Cloudflare had already observed early exploit attempts, although no successful breaches had been confirmed.
It’s important to make that distinction. The fact that an attacker has attempted to exploit a server does not necessarily mean that it has been compromised. As a result, administrators should not assume vulnerabilities will remain obscure until the next maintenance window.
How PHP2Shell Works
While both vulnerabilities could result in remote code execution, they exploit different problems in PHP’s internal request handling. Both of these require a vulnerability in a WordPress plugin or an error in the application.
CVE-2026-109618: Memory Errors That Can Lead to Code Execution
The first vulnerability involves memory corruption during out-of-memory conditions.
As Help Net Security explains, PHP can encounter problems when memory exhaustion interrupts a request while internal data structures are only partially initialized.
If PHP cleans up the request subsequently, it may treat invalid or incomplete data as legitimate. As a result, memory corruption and remote code execution are possible.
LinuxCompatible notes that PHP uses the longjmp() mechanism to exit the current execution context during certain memory errors.
Although the technical details are complex, the problem is simple: When an operation fails unexpectedly, PHP may end up mishandling internal memory.
CVE-2026-109619: Leftover State Between Requests
The second vulnerability concerns a stale global state.
When memory supporting a request has been released, internal information associated with that request may still be accessible. When the same PHP worker handles a subsequent request, it may encounter that leftover state before normal initialization has reset it.
By leveraging this, an attacker can manipulate memory and execute code after a use-after-free condition has been created. Each vulnerability affects PHP’s native request-parsing layer, according to LinuxCompatible.
That’s what makes PHP2Shell particularly concerning.
Vulnerable operations can occur before the application’s own logic gets involved.
In other words, developers cannot necessarily protect their applications by tightening input validation, changing WordPress settings, or updating plugins. Therefore, the underlying PHP runtime needs to be fixed.
Which Websites and Servers Are Vulnerable?
PHP2Shell isn’t limited to one content management system, web server, or hosting configuration.
Affected PHP deployments, according to Help Net Security, are:
- PHP-FPM
- Apache with mod_php
- php-cgi
- FrankenPHP
- LiteSpeed environments running affected PHP builds
The PHP advisories recommend upgrading installations that process web requests, with Apache using mod_php identified as a particularly concerning configuration in Schmalbach’s analysis.
Depending on the configuration, actual exposure and exploitability may vary. Even so, administrators shouldn’t interpret the absence of a public exploit as proof that their setup is secure.
There’s another complication: PHP hasn’t provided a comprehensive list of affected versions across every older branch. This leaves organizations running outdated or unsupported PHP installations in an uncomfortable situation.
If you’re running an older version, particularly one that no longer receives official security updates, you shouldn’t assume the vulnerability doesn’t apply simply because your version isn’t explicitly listed.
How to Protect Your Server From PHP2Shell
The permanent fix is to install a patched PHP release. For most administrators, the response should follow four steps.
1. Identify every PHP installation.
Identify the servers, containers, virtual machines, and hosting environments that process PHP requests. Check the actual PHP version used by the web server, not just the version returned by a command-line installation. The two aren’t necessarily the same.
2. Install the appropriate security update.
Depending on the branch your environment uses, upgrade to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35.
For Linux distributions and managed hosting platforms, follow your vendor’s security guidance. Some vendors backport fixes without changing the displayed version to match the upstream PHP release.
3. Restart the affected services.
If PHP-FPM or Apache is managing your PHP workers, restart it after installing the update. If older processes are running vulnerable code even after updated packages have been installed, older processes may remain vulnerable.
4. Verify the running version and review security activity.
Verify that the patched build is handling web requests. Keep an eye on logs and security monitoring, especially around the time the vulnerabilities were made public.
While patching closes known vulnerabilities, it does not automatically confirm whether an attacker exploited them before the patch was applied.
What If You Can’t Patch Immediately?
One of the vulnerabilities has been temporarily mitigated.
According to The Hacker News, administrators can disable session upload progress to reduce exposure to a confirmed attack path involving CVE-2026-109619: session.upload_progress.enabled = 0
For PHP 8.5, the reported mitigation also includes: fatal_error_backtraces = 0
If you have made any changes to your PHP configuration, you should restart all affected PHP workers.
But there are two significant catches.
First, disabling session upload progress may affect applications that depend on that feature.
Second, these settings do not protect against CVE-2026-109618.
As a temporary risk-reduction measure, they should not replace security updates.
Pasquale Pillitteri’s coverage of the PHP2Shell patches also references guidance for applying additional protections at the Nginx and Apache layers. This is while administrators prepare to upgrade.
Those defenses may help reduce exposure, but they shouldn’t be mistaken for a complete fix.
WordPress Owners: Updating Your Plugins Won’t Fix This
It’s easy to overlook PHP2Shell’s security flaw, but it’s a big deal for WordPress owners.
Even with WordPress core, plugins, and themes updated, you can run a vulnerable PHP version. The reason for this is that WordPress runs on top of PHP. As many WordPress websites continue to run outdated PHP versions, updating the application does not automatically update the underlying runtime.
An earlier Censys analysis, summarized by Rankiteo, suggested that more than 70% of publicly reachable WordPress sites ran end-of-life PHP versions.
Among them was PHP 7.4, which reached its end of life in November 2022.
While that estimate shouldn’t be treated as a definitive measurement of every WordPress website, it highlights a persistent problem: outdated infrastructure can remain in production long after official security support ends.
As a result, PHP2Shell makes it considerably more difficult to ignore this problem.
What WordPress Site Owners Should Do
Install the appropriate security update for the PHP release your website actually uses if you are managing your own server.
There may be a few kinks in the process for shared hosting customers. If you want to check your PHP version, go to your hosting control panel or the WordPress Site Health page. If the PHP2Shell patches have not been installed, contact your hosting provider.
Once you’ve verified your website’s compatibility with your hosting account’s PHP version, you should select a supported, patched branch.
However, don’t assume that enabling automatic WordPress updates also keeps PHP secure. And don’t overlook WordPress itself.
In September, WordPress released a separate security patch addressing CVE-2026-87902, a critical vulnerability affecting versions 4.7.0 through 7.1.1, according to The Hacker News.
That issue is unrelated to PHP2Shell.
The takeaway? WordPress security and PHP security are two separate responsibilities. As such, updating one doesn’t eliminate vulnerabilities in the other.
What We Still Don’t Know About PHP2Shell
Despite the emergency patches, several questions remain unanswered.
It is not clear from the public advisories which older PHP branches are vulnerable. As a result, it’s hard to determine the exact extent of legacy exposure.
There’s also limited public information about successful exploitation.
Based on Cloudflare’s observation, attackers were already testing the vulnerabilities, but attempted exploitation and confirmed compromise aren’t the same thing.
Last but not least, it remains crucial to examine the full impact of different PHP configurations. Despite a critical vulnerability in the language runtime, not every deployment is equally vulnerable.
But those uncertainties shouldn’t delay patching. Instead, they should encourage administrators to verify their exposure rather than assume it.
The Bigger Problem Isn’t Just PHP2Shell
The PHP2Shell application layer demonstrates that website security doesn’t end with the application.
While a site may use strong passwords, updated plugins, a web application firewall, and carefully reviewed code, it will still depend on an outdated runtime. And when vulnerabilities affect the language processing web requests, even otherwise well-maintained applications can inherit the risk.
Having prematurely disclosed the situation exacerbated its urgency. As a result of the short preparation period, attackers probed for opportunities before the emergency release, leaving administrators with little time to prepare.
Fortunately, patches are available.
As an immediate priority, identify and apply PHP security updates, restart affected services, and verify that the fixes are taking effect.
Those who don’t manage their own servers must contact their hosting providers to inquire about patch status. Because in this case, securing your website isn’t just about keeping WordPress updated. It’s about making sure the software underneath it isn’t leaving the door open.