PHP RCE Vulnerability Fix: 7 Critical CVEs to Patch Now
Learn the php rce vulnerability fix for CVE-2026-115560 and 6 more critical PHP flaws, with exact versions and mitigations to patch before attackers strike.
By Babul Jack
PHP RCE vulnerability fix: the short answer
If you run PHP 8.2 through 8.5, the php rce vulnerability fix is to upgrade to PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36 immediately. These releases close seven critical flaws, all scored CVSS 4.0 9.2, disclosed on November 19, 2026, just four weeks after the PHP2Shell incident. If you can't patch today, disable session upload progress and FastCGI connection reuse as interim mitigations.
In client projects I still see PHP running quietly behind a CMS, an admin portal, or a legacy invoicing tool nobody remembers deploying. November 2026 was a brutal reminder of why that matters: two separate waves of critical PHP vulnerabilities hit in under a month, and the second wave was arguably worse because it targeted the exact feature PHP had just told everyone to disable.
What happened: PHP2Shell and its unfinished business
On October 21, 2026, the PHP Group disclosed two critical, unauthenticated remote code execution flaws, CVE-2026-109618 and CVE-2026-109619, fixed in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Attackers began exploiting them within hours, a campaign researchers nicknamed PHP2Shell, and it was later added to CISA's Known Exploited Vulnerabilities catalog.
The fix PHP recommended at the time, alongside the version upgrade, was to set session.upload_progress.enabled=0. That setting is the common thread through everything that followed.
Then, on November 19, PHP shipped a second emergency release. It fixed CVE-2026-115560, a flaw in that same session upload progress feature that the October patch had left open, plus six more critical issues: PHP-FPM request smuggling, a date/timezone cache bug, two use-after-free conditions in the Zend engine, and two session-handling flaws. The Cyber Security Agency of Singapore advisory lists all seven CVEs with a shared CVSSv4 score of 9.2.
The seven November CVEs at a glance
CVE
Component
Affected branches
Trigger condition
CVE-2026-129289
PHP-FPM request smuggling
8.2–8.5
Web server reuses FastCGI connections and the app reads php://input incompletely
CVE-2026-115560
Session serializer mismatch
8.2–8.5
Upload progress is on with mismatched session serializers
CVE-2026-126714
Session files handler
8.2–8.5
Interrupted session write plus attacker-influenced session data
CVE-2026-129496
Date/timezone cache
8.2–8.5
A startup warning (bad date.timezone) followed by an early request to a fresh worker
CVE-2026-129474
Zend engine use-after-free
8.5 only
fatal_error_backtraces=1 with zend.exception_ignore_args=0
CVE-2026-129182
Engine shutdown
8.5 only
A fatal error during memory-limit or zlib restore at shutdown
CVE-2026-129481
Session cleanup
8.3–8.5
A fatal error inside a session cleanup callback
This breakdown matches the technical table published by Check Point Research, which also flags a related high-severity local privilege issue, CVE-2026-129291, that can let code running inside a PHP-FPM worker execute commands as the FPM master, often root, in shared hosting setups.
How to patch PHP: step-by-step
Inventory every PHP instance. Don't stop at your main app. Check admin panels, internal tools, container base images, and any vendor appliance that might bundle its own PHP runtime, as PHP2Shell specifically targeted these edge-facing systems.
Upgrade to the fixed release for your branch: 8.2.36, 8.3.37, 8.4.28 or 8.5.13. Linux distributions sometimes backport fixes without bumping the reported version, so confirm the package changelog mentions the CVE IDs rather than trusting php -v alone, a point the Check Point writeup calls out explicitly.
Restart PHP-FPM and your web server, then verify the running version against the fixed release, not just the installed package.
Confirm your CMS still works on the patched runtime. Updating WordPress, Drupal, Magento or Joomla does not fix this; the underlying PHP interpreter has to move.
Prioritize internet-facing systems first, then move to internal services and anything running an end-of-life branch (PHP 8.1 and earlier get no official fix; PHP 8.2 itself reaches end of life on December 31, 2026, per the vendor advisory).
If you can't patch today
; php.ini or FPM pool config — restart all workers after changing
session.upload_progress.enabled = 0
; PHP 8.5 only, partial mitigation for the engine use-after-free
zend.exception_ignore_args = 1
# nginx: disable FastCGI connection reuse if it's on anywhere in your config
fastcgi_keep_conn off;
Don't rely on ini_set() for the session upload progress change. PHP's own guidance, echoed in the CERT-EU advisory, says it has to be set administratively, in php.ini or the FPM pool, before request parsing begins, and verified through the web server rather than the CLI.
Is my hosting provider or CMS affected?
If you're on managed hosting, ask your provider directly which PHP version is live, because "updated WordPress" and "updated PHP" are two different things. If you self-host WordPress, Drupal, Magento, or phpMyAdmin, the CMS update does nothing for this bug class; the interpreter underneath it does the damage. The NCSC guidance is blunt about this: identify PHP installations generally, not just ones you already suspect are outdated, because all supported versions were affected by the October wave.
Shared and multi-tenant hosting deserves extra scrutiny. CVE-2026-129291 means one tenant's vulnerable code can potentially escalate to the privileges of the FPM master process, which commonly runs as root.
Why this keeps happening to PHP
PHP powers a huge share of the web's backend, which makes every flaw a mass-exploitation opportunity the moment a proof of concept leaks. The October and November waves share a root cause: the session upload progress feature. It was a convenience feature for showing upload progress bars, largely unused by modern single-page apps, yet it's been the attack surface for at least two rounds of critical CVEs in six weeks.
This is the same lesson I keep writing about across other ecosystems. My breakdown of the npm supply chain attack prevention guide covers a different language but the same pattern: legacy or rarely-used features in a widely deployed runtime become the easiest lever for attackers, because almost nobody audits code they assume is "just working."
It also echoes what happened with Vite's dev server RCE earlier this year, where a flag nobody thought twice about turned into a direct path to code execution, and with the Node.js HTTP/2 and TLS vulnerability that forced a similar emergency patch cycle. Runtime-level bugs don't care how careful your application code is.
Hardening checklist for PHP deployments
Confirm the running PHP version matches 8.2.36 / 8.3.37 / 8.4.28 / 8.5.13 or later, checked via the web server, not just the CLI
Set session.upload_progress.enabled=0 unless your app genuinely needs it
Disable FastCGI connection reuse unless you've verified it's safe for your setup
On PHP 8.5, use the production php.ini template so zend.exception_ignore_args is set correctly
Isolate shared hosting tenants so one compromised app can't reach the FPM master's privileges
Monitor for PHP worker crashes, unexpected shells spawned from web processes, and new files appearing in web roots
Schedule migration off any PHP branch older than 8.2, since those stopped receiving official fixes
Where a security review helps
If you're not fully sure which PHP version is actually running across your stack, or whether your hosting provider patched the runtime and not just the CMS, that's exactly the kind of gap a structured review catches before an attacker does. My security audit service covers dependency and runtime version checks, configuration review, and exploitability testing for findings like these, not just a generic vulnerability scan.
Frequently asked questions
Is my site vulnerable if I just updated WordPress or Magento?
Not necessarily safe. Updating the CMS does not patch the PHP interpreter underneath it. You need to separately confirm your PHP version is 8.2.36, 8.3.37, 8.4.28, 8.5.13 or newer, because the vulnerability lives in the PHP runtime itself, as the NCSC and Check Point advisories both state.
What if I'm still on PHP 8.1 or older?
PHP 8.1 and earlier are end of life and do not get an official fix for these CVEs. Some Linux distributions and commercial vendors publish backported patches; check with your vendor. If no backport exists, prioritize migrating to a supported branch or isolating the system from the internet.
Does disabling session upload progress break anything?
File uploads still work normally. Only the server-side upload progress bar feature stops functioning, and most modern applications using client-side JavaScript progress indicators don't rely on it at all.
Has either vulnerability wave actually been exploited?
Yes for the October CVE-2026-109618 and CVE-2026-109619 pair, which CISA added to its Known Exploited Vulnerabilities catalog after attackers began exploiting it within hours of disclosure. As of the November disclosure, no confirmed exploitation of the seven new CVEs had been reported publicly, but given how fast the October flaws were weaponized, treat the window as short.
How do I know which PHP version my hosting provider is actually running?
Ask them directly, or check via a PHP info script or your control panel's PHP version selector, then cross-reference the patch level against your distribution's changelog, since some vendors backport fixes without changing the reported version string.
Key takeaways
PHP shipped two emergency security releases in four weeks during October and November 2026, covering nine critical CVEs total, all requiring an interpreter-level patch
The php rce vulnerability fix is upgrading to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13, not just updating your CMS
Session upload progress was the attack surface in both waves; disable it unless your application explicitly needs it
CVE-2026-109618 and CVE-2026-109619 were actively exploited within hours of disclosure and are in CISA's KEV catalog
End-of-life PHP branches (8.1 and older) get no official fix, so inventory and migrate them as a priority
Shared hosting environments face extra risk from CVE-2026-129291, which can escalate a tenant's code to FPM-master privileges