PHP2Shell: Critical PHP Vulnerabilities Patched — But a New Risk Remains
Two remote-code-execution flaws received emergency updates on October 21. Here's which PHP versions are safe from those flaws, what remains unresolved, and what server administrators should do now.

PHP2Shell is a critical security issue affecting web-facing PHP installations. The PHP project released fixes for CVE-2026-109618 and CVE-2026-109619 on October 21, 2026. Yet on October 23, authorities highlighted another flaw, CVE-2026-115560, which the October 21 releases do not address. That distinction matters if you're responsible for a PHP-based website.
What is PHP2Shell?
PHP2Shell is the name used for two serious PHP runtime vulnerabilities: CVE-2026-109618 and CVE-2026-109619. Both relate to how PHP handles memory during request processing. Under vulnerable conditions, an unauthenticated attacker could potentially execute code remotely on a server or expose sensitive process memory.
The first flaw involves state corruption linked to out-of-memory handling. The second involves global state retaining references to memory belonging to an earlier request, creating a use-after-free condition. These are flaws in PHP's underlying runtime, not simply bugs in one WordPress plugin or website theme.
Both were rated 9.2 (Critical) under CVSS v4.0. CISA urged immediate action on October 21, while reporting that it had not observed active exploitation at that time. Public research includes proof-of-concept material, so organizations should not interpret the absence of confirmed attacks as evidence of safety.

Which PHP versions fix PHP2Shell?
The PHP Security Team published emergency releases for currently supported branches. Match your installed branch against the fixed version below:
| PHP branch | Affected releases | Minimum fixed release |
|---|---|---|
| PHP 8.5 | Before 8.5.12 | 8.5.12 |
| PHP 8.4 | Before 8.4.27 | 8.4.27 |
| PHP 8.3 | Before 8.3.36 | 8.3.36 |
| PHP 8.2 | Before 8.2.35 | 8.2.35 |
| PHP 8.1 and older | Unsupported upstream | Migrate or obtain verified vendor backports |
Important: these versions address the original two PHP2Shell CVEs. Check your operating-system distribution or hosting vendor for backported fixes: a vendor-patched package may use a different versioning scheme.
Important October 23 update: another PHP vulnerability is not covered
According to the advisory, applications that do not change the session serialization handler at runtime are not exposed to that specific attack path. Until a security update is available, the PHP Security Team recommends disabling session upload progress where applicable:
session.upload_progress.enabled=0
Set this in the appropriate PHP configuration after evaluating any features that rely on upload progress, and verify the effective runtime setting. This is a mitigation for the newly reported issue, not a substitute for upgrading PHP against the two original vulnerabilities. Recheck official advisories for later fixes.
Are WordPress and other PHP websites affected?
Potentially, yes. The underlying risk concerns PHP installations serving web requests, including deployments using PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, and LiteSpeed. Actual exposure depends on the runtime version, deployment configuration and vulnerability conditions.
That means a WordPress, Drupal, Joomla, or custom PHP application can be exposed through its hosting runtime even when its plugins, themes and application code are current. Updating a CMS alone does not necessarily update the PHP interpreter underneath it.
If you use shared hosting, the PHP version is usually controlled through your host's dashboard or support team. For managed hosting, ask the provider which PHP builds are currently deployed and whether they include fixes for the relevant CVEs.
How to protect a PHP website right now
- Check the active PHP runtime: review the PHP version reported by your hosting panel, server inventory or application diagnostics. Verify the web-serving runtime, not only the command-line binary.
- Patch the PHP branch: install at least 8.5.12, 8.4.27, 8.3.36 or 8.2.35, as applicable, or obtain confirmed vendor backports. Test the change with your application.
- Review the separate October 23 alert: assess CVE-2026-115560 and whether
session.upload_progress.enabled=0is appropriate pending its fix. - Prioritize public-facing systems: update internet-accessible websites first. If rapid patching is impossible, consider taking vulnerable endpoints offline or isolating them temporarily.
- Review signs of compromise: examine web-server logs and process telemetry for unusual PHP worker behavior, unexpected child processes, downloaded files or outbound connections.
- Check embedded PHP: don't overlook PHP packaged inside appliances, containers, control panels and third-party software.
Frequently asked questions
Is PHP2Shell still dangerous in October 2026?
Yes, for systems running vulnerable builds. Fixes exist for the initial two CVEs, but unpatched systems remain exposed, and administrators should also review the separately disclosed CVE-2026-115560.
Does updating WordPress fix PHP2Shell?
Not by itself. WordPress updates and PHP runtime updates are separate. Confirm the PHP version installed by your host.
Are all PHP servers already compromised?
No. A vulnerability creates risk; it does not prove compromise. CISA reported no observed exploitation of the two original CVEs when it published its October 21 bulletin. Continue monitoring authoritative updates.
What if I'm still using PHP 8.1 or older?
These branches are no longer supported by the upstream PHP project. Move to a supported branch or confirm whether your distribution or commercial vendor provides backported security fixes.
Bottom line
PHP2Shell's original two vulnerabilities have patches, but security teams cannot stop at that headline. Update vulnerable PHP releases immediately, verify the PHP version actually handling web traffic, and assess the October 23 warning about CVE-2026-115560 separately. The safest response combines timely patching, configuration review and monitoring.
Official sources and further reading
- PHP.net — official security announcements and releases
- Canadian Centre for Cyber Security — October 23 updated alert
- CISA — Critical Vulnerabilities in PHP Require Immediate Patching
- PHP Security Advisory — stale global state
Published: October 24, 2026 · Editorial note: This article summarizes public security advisories and does not claim original vulnerability discovery or independent exploit testing.
Comments
Add a commentً