You patched PHP for PHP2Shell. Two days later, PHP published another advisory with no fix, and one piece of advice: turn off session.upload_progress.enabled. Most site owners have never heard of that setting, and nobody wants a broken checkout.
Short answer: Until PHP ships a fix for CVE-2026-115560, set session.upload_progress.enabled = 0 in php.ini, the PHP-FPM pool or the Apache config. Then restart every PHP worker. A typical WordPress or WooCommerce site does not use this feature, so turning it off rarely breaks anything. It reduces risk; it does not replace updating PHP.
At a glance
- What it is: CVE-2026-115560, a PHP flaw that PHP itself calls “an unlikely RCE vector”.
- Fixed in: Nothing yet. As of 8 November 2026, no fix has shipped.
- Do this first: Set
session.upload_progress.enabled = 0at server level and restart PHP. - Bonus: The same setting is a partial mitigation for CVE-2026-109619, one half of PHP2Shell.
- Will it break WordPress: Almost certainly not. WordPress core and WooCommerce do not rely on PHP’s native sessions.
- Where not to set it: Not in
wp-config.php,ini_set()or.user.ini. Those are too late.
Last reviewed: 8 November 2026 by Ali Shan, founder of WPRobo. We update this post when PHP publishes new fixes.
What is CVE-2026-115560?
CVE-2026-115560 is a PHP flaw linked to session upload progress, and it has no fix yet. A CVE is simply a public ID number given to a known security flaw.
On 23 October 2026, PHP posted an “Informational advisory: Session upload progress” in its PHP news archive for 2026. PHP describes it as “an unlikely RCE vector”. RCE means remote code execution: someone running their own code on your server.
The 21 October security releases did not fix it. PHP says it will publish a full advisory “with the next release”, meaning its regular release cycle. No date was given.
A few things are still unknown:
- There is no published CVSS score. CVSS is the standard 0 to 10 severity rating.
- We are not aware of a documented public proof of concept, meaning working attack code.
- PHP has not yet said which version branches are affected.
PHP’s interim advice is one line: “We suggest you set session.upload_progress.enabled=0 until the next regular bugfix release.”
The trigger, in plain words
PHP’s “unlikely” label is fair. According to the advisory, three things must line up.
- The server or application sets
session.serialize_handlertophp_binaryorphp_serialize. The default isphp, so this is already unusual. - The application switches the handler back to
phpat runtime withini_set(), before callingsession_start(). - Session upload progress is still enabled.
Put simply, session data gets written in one format and read in another. That mismatch is the opening.
Most WordPress sites will never meet the first two conditions. But “most” is not “yours”. Turning off upload progress removes the third condition, and it costs very little.
Does this setting help with PHP2Shell too?
Yes, partly. Turning off session upload progress narrows one known route for CVE-2026-109619, but it does not fix PHP2Shell.
CVE-2026-109619 is one half of PHP2Shell, the pair of critical bugs fixed on 21 October. We cover the full picture in our PHP2Shell guide for WordPress and WooCommerce owners.
According to Rapid7’s analysis of CVE-2026-109618 and CVE-2026-109619, researchers confirmed a session-lifecycle attack against both mod_php and PHP-FPM. That attack relies on session upload progress, which is on by default.
Two quick definitions. mod_php runs PHP inside the Apache web server itself. PHP-FPM runs PHP as a separate pool of worker processes that the web server hands requests to.
Partial is the key word. PHP’s position is clear: “There are no complete mitigations, updating is the only safe choice.” If you have not confirmed your server is on a fixed release, do that first. Our guide on checking your PHP version and confirming PHP2Shell is patched walks through it.
What does session upload progress do?
It lets PHP track how far a file upload has got and store that progress in the user’s session. The feature is on by default, and most sites never use it.
The PHP manual page on session upload progress explains the mechanics:
- A form uploads a file and includes a hidden field with a special name, by default
PHP_SESSION_UPLOAD_PROGRESS. - While PHP reads the upload, it writes bytes received, file names and a done flag into
$_SESSION. - A second request reads that session data and shows a progress bar.
The important detail is timing. PHP does this while it is still reading the request body, before your application code runs. That is why the setting can only be changed at server level.
Will turning it off break WordPress or WooCommerce?
For a typical WordPress or WooCommerce site, almost certainly not. Neither relies on this PHP feature.
WordPress core does not use PHP sessions
WordPress core does not call session_start(). Logins use cookies and data stored in the database. There is no native PHP session for upload progress to write into.
WooCommerce keeps its own sessions
WooCommerce has its own session handler. It stores customer session data, such as cart contents, in its own database table. Changing this PHP setting does not touch that table.
Media library progress bars run in the browser
The progress bar you see in the WordPress media library comes from JavaScript in your browser. It measures the upload as the browser sends it. It does not ask PHP’s session, so it keeps working.
Check your custom code anyway
Custom themes, bespoke plugins and older code can start PHP sessions. A few build their own progress bars on this exact feature. From your WordPress root, run:
grep -rnE "session_start|upload_progress|PHP_SESSION_UPLOAD_PROGRESS|serialize_handler" \
wp-content/themes wp-content/plugins wp-content/mu-plugins 2>/dev/null
How to read the results:
- No results: nothing in your code uses the feature.
session_start()only: fine. Turning off upload progress does not disable sessions.- Code reading upload progress from
$_SESSION: that progress bar will stop updating. The upload itself still completes. - Any hit on
serialize_handler: look closer. That is the setting in the CVE-2026-115560 trigger.
How do I turn off session upload progress?
Set session.upload_progress.enabled to off in php.ini, the PHP-FPM pool or the server config. Application ini_set() and FPM .user.ini files are too late, according to PHP’s advisory.
Upload progress is written while PHP reads the request. By then, a line in wp-config.php has not run. So skip wp-config.php, theme files and .user.ini. The PHP manual’s session configuration page lists the directive and its default.
Option 1: php.ini
Find the php.ini your web server uses, which is often a different file from the command line one. On Debian and Ubuntu, the PHP-FPM file usually sits at /etc/php/8.3/fpm/php.ini. Swap in your version number.
; Interim mitigation for CVE-2026-115560, partial for CVE-2026-109619
session.upload_progress.enabled = 0
Option 2: the PHP-FPM pool file
We prefer this on servers we manage. Settings made with php_admin_flag cannot be overridden by application code, and the change sits next to the site it protects.
The default pool file on Debian and Ubuntu is often /etc/php/8.3/fpm/pool.d/www.conf. Add:
php_admin_flag[session.upload_progress.enabled] = off
If you run several pools, add it to each one.
Option 3: Apache with mod_php
If Apache runs PHP as a module, set it in the virtual host or main server config:
<VirtualHost *:443>
# ...existing config...
php_admin_flag session.upload_progress.enabled off
</VirtualHost>
PHP considers PHP2Shell risk highest for mod_php. If that is your setup, the full update matters even more.
On PHP 8.5: one more partial step
For CVE-2026-109619, PHP also lists turning off fatal error backtraces on PHP 8.5, where they are on by default.
fatal_error_backtraces = 0
Again, this narrows one known route. It does not fix the bug.
Restart every PHP worker
Config changes do nothing to processes already running. PHP reads php.ini and pool files when workers start.
# Test the FPM config first (binary name varies by version)
sudo php-fpm8.3 -t
# PHP-FPM
sudo systemctl restart php8.3-fpm
# Apache (needed for mod_php, harmless otherwise)
sudo systemctl restart apache2
On Red Hat style systems the services are usually php-fpm and httpd.
On managed hosting
On managed WordPress hosting, you often cannot edit these files. Some hosting control panels, such as cPanel or Plesk, expose PHP settings. If yours does not, open a ticket and quote the setting name and PHP’s advisory.
How do I check the change worked?
Ask the web-facing PHP directly, not the command line. The CLI reads its own php.ini and can report a different value.
Running php -i | grep session.upload_progress only checks command line PHP. WP-CLI runs on the CLI too, so it has the same blind spot. WordPress Site Health (Tools, Site Health, Info, Server) shows some PHP limits, but not this directive.
The reliable check:
- Create a small file with a random name in your web root.
- Visit it in your browser.
- Delete it straight away.
<?php
// Delete this file immediately after checking.
header( 'Content-Type: text/plain' );
var_dump( ini_get( 'session.upload_progress.enabled' ) );
echo PHP_VERSION;
You want to see string(1) "0" or string(0) "". A "1" means the setting is still on for that pool or virtual host.
We use this instead of a full phpinfo() page, because phpinfo() exposes far more about your server than you want public. If you run several sites or pools, check each one.
Is this a permanent fix?
No. For CVE-2026-115560 this setting is a stopgap, and for CVE-2026-109619 it was never the fix.
For CVE-2026-115560, PHP says a fix and full advisory will come with its next regular release. When that ships, update PHP and read the advisory. You can then decide whether to turn upload progress back on. Most WordPress sites will not need it.
For CVE-2026-109619, the fix is PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or a later release on your branch. CISA’s Known Exploited Vulnerabilities catalog added both PHP2Shell CVEs on 26 October 2026. Tenable’s PHP2Shell FAQ reports that Amazon’s threat intelligence team later saw broad exploitation attempts in the wild. If you are still unpatched, that is the bigger problem.
On PHP 8.1 or older, the PHP project shipped no release for PHP2Shell at all. PHP 8.2 reaches end of life, meaning no more security fixes, on 31 December 2026, per the PHP supported versions page. Our PHP 8.2 end of life upgrade plan covers what to do before then.
How we handle this on client sites
We treat this setting as one step in a wider PHP check, never as the whole job. On servers we manage, our routine looks like this:
- We check the PHP version the web server reports, not the SSH one, before touching anything else.
- We grep custom themes, plugins and mu-plugins for sessions, upload progress and
serialize_handlerbefore changing config. - We set the directive in the FPM pool with
php_admin_flag, so application code cannot switch it back on. - We test the FPM config, then restart every PHP worker and compare process start times to confirm they really restarted.
- We verify the value through a short-lived web check, then delete the file.
- Where the host controls PHP, we raise the ticket with the setting name and the advisory link, then verify once they confirm.
- We keep a note to revisit the setting when PHP’s next regular release ships.
A short checklist
- Confirm PHP is on a fixed PHP2Shell release, or a distro package that lists the CVEs in its changelog.
- Grep your custom code for session and upload progress usage.
- Set
session.upload_progress.enabledoff inphp.ini, the FPM pool or the Apache config. - On PHP 8.5, also set
fatal_error_backtraces = 0. - Restart PHP-FPM and Apache.
- Verify through the web, not the CLI, then delete the check file.
- Set a reminder to update when PHP’s next regular release ships.
This sits alongside the basics, not in place of them. Our 25-step WordPress security checklist covers the rest.
If you would rather not track PHP advisories yourself, this is the kind of work our WordPress care plans include. We watch for these releases, apply server-level changes where we have access, and confirm they took effect.
