CVE-2026-109618

PHP2Shell: Emergency PHP Patches and What PH Developers Should Do

Efraim Ray Efraim Ray 0 Comments
Programming News PHP

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.

CategoryProgramming
PublishedOct 24, 2026
Read time6 min
LevelIntermediate
FocusDevelopers
A laptop on a dark desk showing a server dashboard with a glowing amber PHP version update and a green shield, under the headline PATCH PHP NOW.

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.

Timeline of the PHP2Shell fixes from the October 20 advance notice to the PHP 8.2 end of life on December 31, 2026 PHP2Shell timeline Dates from php.net (Philippine time in brackets) Oct 20 Advance notice of a critical security release Oct 21 Patches out 14:00 UTC (10:00 PM PHT) Oct 23 Extra advisory upload progress CVE-2026-115560 Dec 31 PHP 8.2 end of life, no more fixes 2026 efraimray.com
Illustration: the PHP2Shell timeline, from the advance notice to the PHP 8.2 end-of-life date.
9.2CVSS v4 score of each flaw
4PHP branches with fixed releases
5.1M+PHP hosts exposed online (VirusTotal estimate, via BleepingComputer)

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.

Which PHP version fixes PHP2Shell for each PHP branch Is your PHP patched? YOUR BRANCH SAFE FROM NOTE PHP 8.5 8.5.12 Latest stable PHP 8.4 8.4.27 Supported PHP 8.3 8.3.36 Supported PHP 8.2 8.2.35 Ends Dec 31, 2026 PHP 8.1 and older No regular fix Upgrade or vendor build efraimray.com
Illustration: the first safe PHP release for each branch, according to php.net.
Your setupWhat to doWho does it
Shared hosting (cPanel or similar)Pick a supported PHP version and confirm the host has patched itYou and your host
VPS or cloud serverInstall your distribution's fixed PHP packages and restart PHP-FPM or ApacheYou or your developer
Docker imagesRebuild on a fixed official PHP image and redeployYour developer
PHP 8.1 or olderUpgrade to a supported branch, or use a vendor build with the fixYour 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

  1. Check your PHP version. Look in your hosting panel's PHP settings, or run php -v on your server. Remember that Linux distributions often backport fixes, so also check your vendor's advisory, not just the number.
  2. 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.
  3. 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.
  4. Use the stopgap only while you wait. The PHP team suggests setting session.upload_progress.enabled = 0 in php.ini and restarting workers. It reduces risk, but it is not a fix.
  5. 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

  1. PHP News Archive 2026: Security advisory, critical remote code execution vulnerabilities, update now · The PHP Group, October 21 and 23, 2026
  2. RCE via OOM corruption (GHSA-w8hw-w9fx-j79w, CVE-2026-109618) · PHP on GitHub, October 21, 2026
  3. PHP ships emergency patches for critical PHP2Shell flaws · BleepingComputer, October 21, 2026
  4. PHP Issues Emergency Patches for Two Critical PHP2Shell RCE Flaws as Exploit Attempts Emerge · The Hacker News, October 21, 2026
  5. 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.

Efraim Ray
Written by

Efraim Ray

Software Developer and AI Specialist. BS Information Technology graduate. I pride myself on being conscientious, attentive to detail, and always open to learning — because the best solutions come from listening, taking notes, and exploring what's next.

Comments