Skip to content
Ffantomu.dev
FTM / Blog · Nº 11← All articles

The Critical PHP Vulnerabilities of October 2026: What Happened and What to Do Now

A padlock on a chain-link fence

Security · PHPOctober 26, 2026

On 21 October the PHP team released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They close two critical vulnerabilities that let an attacker run their own code on a server without logging in. If your website, webshop or application runs on PHP, and that covers WordPress, Laravel, Magento, Drupal and most of the web, now is the time to check that you have updated.

In this article I set out what is known, who is at risk and what steps to take. The facts come from php.net's official security advisory.


What happened

On 20 October the PHP security team announced a critical security release for the next day, fixing two vulnerabilities that were both rated 9.2 on the CVSS v4.0 scale (which goes up to 10). According to Dutch tech site Tweakers, details had leaked the night before, and Tweakers itself, RTL Nieuws, the government portal MijnOverheid, the DigiD login service and the Dutch House of Representatives' website went offline as a precaution. The patches came out on 21 October at 14:00 UTC.

Who is at risk

According to php.net, every PHP installation that serves web requests is at risk, however it is set up: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The risk is highest with mod_php, where a working attack has been demonstrated in which an unauthenticated request triggers it before any application code runs.

That last point matters. It makes no difference how well your WordPress theme or Laravel application is written: the flaw is in PHP itself, not in your code.

The two vulnerabilities, in plain language

CVE-2026-109618: running out of memory leaves a mess

When PHP runs out of memory while handling a request, the work can be cut off while internal data is only half built. The clean-up step afterwards then treats that half-built data as valid. An attacker who deliberately triggers the shortage can use this to take over the server.

CVE-2026-109619: old state sticks around

A PHP process often handles many requests one after another. With this flaw, internal state from one request can survive after the memory behind it has been freed. The next request in the same process can use that stale state before it is reset, and that too can be abused to run code.


What to do now

  1. Find out which PHP version you run. On the server with php -v, and for the web server through PHP info or your hosting panel: the command line and the web server can use different versions.
  2. Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or later. If you use your Linux distribution's packages, check their security notice: distributions received the patches in advance and sometimes keep their own version numbers. Source code and Windows builds are on php.net's downloads page.
  3. Restart every PHP process. An update on disk protects nothing while the old processes keep running. Restart PHP-FPM, Apache or your application server, then check again which version the web server actually uses.
  4. Running in containers? Rebuild your images on an updated base image and redeploy them. An old image stays vulnerable however often you restart the container.
  5. On managed hosting?Ask your host to confirm in writing that their PHP is updated and the processes restarted. Don't assume.

Still on PHP 8.1 or older?

PHP 8.1 and older no longer get updates from the PHP project. Given the severity, the security team did publish minimal source patches for PHP 7.4, 8.0 and 8.1 this time, meant for people who build PHP themselves. Some distributions and long-term-support vendors also offer their own backports. Treat that as a bandage: the real fix is upgrading to a supported version. Note that PHP 8.2 also reaches end of life on 31 December 2026.

Can't update right away?

php.net lists measures that reduce specific attack paths, with the explicit warning that they do not make an installation safe. Only updating is a complete fix. In short:

  • Set session.upload_progress.enabled=0 in php.ini or the FPM pool (not through ini_set() or .user.ini) and restart every process.
  • On PHP 8.5: set fatal_error_backtraces=0 and restart.
  • Set memory_limit=-1 in a way applications can't override, and keep post_max_size low (8M without uploads, 32M with uploads).
  • Limit request size, field count and multipart parts at the web server or proxy, and use a container or cgroup limit that stops only the affected process.

The complete list, with details per vulnerability, is in php.net's advisory.

The aftermath: a third, smaller issue

On 23 October php.net published an informational advisory about a related, far less likely scenario (CVE-2026-115560). The advice: keep session.upload_progress.enabled=0 until the next regular release. If you already applied that setting, there is nothing more to do.


The lesson for next time

The teams that could update calmly this week had three things in order: they knew which PHP version ran where, had a routine way to roll out updates and restart, and weren't on a version that had been unsupported for years. That isn't luck, it's maintenance. In this article I explain what such a maintenance routine looks like.

Not sure whether your site or application has been updated, or running an old PHP version you'd rather upgrade today than tomorrow? I can check your setup and update it with you.

Related service · Technical consultationKnow what to fix before you rebuildSee how I can help

Let's talk · มาคุยกัน

Ready to discuss your project?