PHP2Shell: Emergency PHP Patches and What PH Developers Should Do
On October 21, 2026, the PHP team shipped emergency updates for two critical flaws now called PHP2Shell. They sit in PHP itself, can let an attacker run code on a web server without logging in, and affect web-serving PHP setups such as PHP-FPM, Apache mod_php and LiteSpeed. If your website, school portal or client project runs on PHP, the fix is simple: get onto PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 as soon as you can.
Key takeaways
- Two PHP flaws, CVE-2026-109618 and CVE-2026-109619, are rated 9.2 (critical) on CVSS v4 and allow unauthenticated remote code execution.
- Fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released October 21, 2026.
- Security firms reported exploit attempts within hours, and public proof-of-concept code exists.
- Config tweaks only reduce risk. The PHP team says updating is the only full fix.
What Happened
On October 20, php.net warned that a critical security release was coming. The next day, at 14:00 UTC (10:00 PM Philippine time), it published PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The Hacker News reports that a leak pushed the disclosure forward from the planned October 22 date. The bugs were reported by researchers from Wiz, Calif and OpenAI.
In plain terms, the first bug (CVE-2026-109618) happens when PHP runs out of memory halfway through reading a request. PHP jumps out of the half-built request, and the clean-up step then treats that broken memory as valid. The second (CVE-2026-109619) lets leftover data from one request survive after it is freed and get reused by a later request on the same worker process. Either one can end with an attacker running commands as your web server user. The official advisory says it can be triggered before any of your application code even runs, and that a working attack was demonstrated against Apache mod_php with default settings.
Why It Matters
PHP runs WordPress, Laravel apps, school portals and many custom small-business systems. Because these flaws are in the language runtime, keeping WordPress and plugins updated does not protect you. What matters is the PHP build on the server.
The threat is real. BleepingComputer quotes Cloudflare saying it saw early attacks before the patches were out. Rapid7, in its update of October 23, says it has not yet confirmed exploitation in the wild but knows of multiple exploitation attempts and several public proof-of-concept exploits. On October 23, php.net also posted a smaller advisory (CVE-2026-115560) about session upload progress. It only affects apps that switch the session serializer at runtime, and a full fix comes in the next release.
| Your setup | What to do | Who does it |
|---|---|---|
| Shared hosting (cPanel or similar) | Pick a supported PHP version and confirm the host has patched it | You and your host |
| VPS or cloud server | Install your distribution's fixed PHP packages and restart PHP-FPM or Apache | You or your developer |
| Docker images | Rebuild on a fixed official PHP image and redeploy | Your developer |
| PHP 8.1 or older | Upgrade to a supported branch, or use a vendor build with the fix | Your developer |
For Philippine businesses
Many sites here sit on budget shared hosting set up years ago and never touched again, often on PHP 7.4 or 8.0. Those versions no longer get regular upstream updates. If your online store, cooperative website or LGU portal stores customer names, phone numbers or payment references, a hacked server is also a Data Privacy Act (RA 10173) problem, not just a downtime problem.
What to Do Now
- Check your PHP version. Look in your hosting panel's PHP settings, or run
php -von your server. Remember that Linux distributions often backport fixes, so also check your vendor's advisory, not just the number. - Update right away. Move to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or your distro's patched package), then restart PHP-FPM, Apache or LiteSpeed so the new build is actually running.
- Ask your host if you're on shared hosting. Send a short ticket asking whether their PHP builds include the October 21 fixes for CVE-2026-109618 and CVE-2026-109619.
- Use the stopgap only while you wait. The PHP team suggests setting
session.upload_progress.enabled = 0in php.ini and restarting workers. It reduces risk, but it is not a fix. - Plan the PHP 8.2 move. PHP 8.2 stops getting security fixes on December 31, 2026. Test your site on 8.3 or 8.4 now so you are not rushing in December.
My take
This is the kind of bug I worry about most, because nobody notices it until a site starts sending spam or redirects to a scam page. I'm treating it as a same-week job for every PHP site I manage, and I'm using it as the push to finally retire the old PHP 7.x sites still running on cheap hosting.
Frequently Asked Questions
What is PHP2Shell?
PHP2Shell is the nickname for two critical flaws in PHP itself, CVE-2026-109618 and CVE-2026-109619, patched on October 21, 2026. Both are rated 9.2 on CVSS v4 and can allow remote code execution without a login.
Which PHP versions fix PHP2Shell?
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older no longer get regular updates, so move to a supported version or get a fixed build from your Linux distribution or LTS vendor.
Is my WordPress site affected?
If your WordPress site runs on an unpatched PHP version, yes, because the flaws are in PHP, not in WordPress or a plugin. Ask your host which PHP build you are on and whether it includes the October 21 fixes.
Is turning off session upload progress enough?
No. Setting session.upload_progress.enabled to 0 lowers the risk while you wait for an update, but the PHP team says only updating fully fixes the problem.
Can you help me check and update PHP on my website or server?
Yes. I can check your PHP version, update your VPS or coordinate with your host, and test your site afterwards so nothing breaks. Contact me here.
Sources
- PHP News Archive 2026: Security advisory, critical remote code execution vulnerabilities, update now · The PHP Group, October 21 and 23, 2026
- RCE via OOM corruption (GHSA-w8hw-w9fx-j79w, CVE-2026-109618) · PHP on GitHub, October 21, 2026
- PHP ships emergency patches for critical PHP2Shell flaws · BleepingComputer, October 21, 2026
- PHP Issues Emergency Patches for Two Critical PHP2Shell RCE Flaws as Exploit Attempts Emerge · The Hacker News, October 21, 2026
- CVE-2026-109618 and CVE-2026-109619: Critical Unauthenticated Remote Code Execution in PHP · Rapid7, October 21, 2026 (updated October 23)
Need Help Updating Your PHP Site?
I build and maintain PHP and WordPress sites for Philippine businesses, schools and cooperatives, and I can check, update and test your server so it stays safe.
Information current as of October 24, 2026.

Comments
Post a Comment