Skip to content
Bug · 5 min read

PHP critical vulnerabilities: what to do before and after today’s patch

Today at 14:00 UTC (16:00 in Italy) the PHP team is releasing a fix for two critical vulnerabilities. They affect PHP itself, so every web server running it: Magento, WooCommerce, WordPress, Shopware and any other site. The release may come earlier if details leak or attacks start, and e-commerce security teams expect mass attack waves within minutes of publication.

This article summarises what we know, what you can do before the patch and what to do right after. The information comes from Sansec’s advisory, which they update as news emerges.

What we know so far

  • These are two remote code execution flaws: an attacker can run code on the server. Sansec cites the identifiers CVE-2026-109618 and CVE-2026-109619, both with a CVSS score of 9.2.
  • The problem is in PHP, below your store’s code and below any application firewall or security module. It cannot be fixed from Magento or WooCommerce code: it is fixed by updating PHP on the server.
  • An exploit called PHP2Shell has already leaked together with the advisory.
  • PHP officially supports only versions 8.2 and later. PHP 8.1 and older will not get an official fix.

What to do before the patch

1. Find out which PHP version you are really running. From the command line php -v shows the CLI version, which is not necessarily the one serving your site. For the site, open a temporary phpinfo() file or check the PHP section of your hosting panel (in cPanel, *MultiPHP Manager*), then delete the file.

2. If you do not manage the server, write to your hosting provider right now. Ask them to apply the PHP update as soon as it is available, and when. If you are on PHP 8.1 or older, ask them to move you to a supported version or to backport the fix.

3. Apply the two settings that may stop an attack. According to Sansec they can block an attempt before you manage to update, but they are no guarantee:

session.upload_progress.enabled = 0
session.use_strict_mode = 1

They are safe on a normal store: Magento, Shopware and WooCommerce do not use PHP’s native upload progress bar. Set them in php.ini, in a .user.ini, or from your panel’s INI editor (in cPanel, *MultiPHP INI Editor*). Then restart PHP-FPM, or ask your host to, and check in phpinfo() that the values have changed.

4. Do not wait for a WAF or security service rule. They can add a layer of protection, but the fix is updating PHP.

What to do right after the release

  • Update PHP to the fixed version of your series (8.2, 8.3, 8.4 or later) and restart PHP-FPM or the web server.
  • Check with phpinfo() that the site is using the new version: often the CLI gets updated and the site does not.
  • If you want to check you have not already been hit, look for PHP files modified or created recently in folders where they should not be, for example pub/media, var, wp-content/uploads, and look in the access logs for unusual requests to upload endpoints.
  • For Magento, remember to keep the other layers up to date too (core, extensions, security patches): updating PHP does not replace the rest.

If you need a hand

If you manage the server yourself, or have a dedicated one, I can verify the effective version, apply the mitigations and check the files after the update. If your server is managed by your hosting provider, the advice is simply to press them today: write to me if you want help working out what to ask.

You might also like