PHP development blog ·

Two critical PHP security updates in autumn 2026: what they fixed and why we deployed them right away

In October and November 2026, PHP shipped two critical security updates, including the PHP2Shell vulnerability. We deployed them on the servers we manage on the day of release. What they fixed and how to check whether your application has them.

In autumn 2026, the PHP team shipped two security updates that no one running a PHP application should have missed. On the servers we manage for our clients, we deployed both on the day they were released. Here's what they fixed, who was affected and why speed matters.

21 October 2026: PHP2Shell (CVE-2026-109618 and CVE-2026-109619)

Versions 8.2.35, 8.3.36, 8.4.27 and 8.5.12 fixed two critical vulnerabilities rated CVSS 9.2, known together as PHP2Shell. Both allow remote code execution:

  • CVE-2026-109618: when PHP runs out of memory while handling a request, its cleanup can work with half-initialised data.
  • CVE-2026-109619: state belonging to one request can survive after its memory is freed, and a later request on the same worker uses it.

According to the announcement on php.net, the bug affected all PHP installations serving web requests: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The attack needs no login and runs before any of the application's own code. The quality of the application code made no difference. The PHP team therefore urged all users to update immediately, adding that no php.ini setting makes an installation fully safe.

At the end of October, the Unit 42 security team (Palo Alto Networks) reported that attackers were actively exploiting the vulnerability against internet-facing devices.

19 November 2026: more critical fixes

A month later, versions 8.2.36, 8.3.37, 8.4.28 and 8.5.13 were released, together with the first stable PHP 8.6.0. The update fixed a number of vulnerabilities across PHP, including:

  • CVE-2026-129289 (PHP-FPM): request smuggling, i.e. injecting an extra request through an unread HTTP request body,
  • CVE-2026-126714 (session): partially overwritten session files can lead to code execution,
  • CVE-2026-128090 (Phar): bypass of the archive signature check,
  • use-after-free bugs in the PHP core, in timezone handling and in PHP-FPM.

The PHP team noted that the most serious of these bugs need a non-default configuration or a less common server setup. But which settings a server really has is often unknown even to whoever runs it, unless someone checks. Updating is the simplest and safest option.

Why we updated on day one

Once a fix is published, it shows exactly where the bug was. Attackers get a map and scan for unpatched servers automatically within hours, not weeks. The time between a fix's release and its deployment is the riskiest window.

We run our clients' applications on our own Debian VPS servers, which we manage ourselves. So we don't wait for a hosting provider to roll out the update, and we control the whole process:

  1. we follow PHP security announcements, including the advance notices the PHP team publishes a day ahead,
  2. after the release we update PHP on a test environment first and check that the application works,
  3. we roll the update out to production servers and restart PHP-FPM,
  4. we check the PHP version on every server and watch the error logs.

For both autumn updates, we were done on the day of release.

What this means for your application

  • Check your PHP version. If it's lower than 8.2.36, 8.3.37, 8.4.28 or 8.5.13, the server is missing at least the November fixes. If it's lower than 8.2.35, 8.3.36, 8.4.27 or 8.5.12, it doesn't have the PHP2Shell fix either.
  • PHP 8.1 and older got no fix. Official support for these versions has ended, so the PHP team didn't fix PHP2Shell for them. Applications running on them stay exposed unless their hosting provider deployed its own patch.
  • PHP 8.2 is next. Its security support ends on 31 December 2026. Nobody will fix the next critical bug for it. More in PHP 8.2 end of life: what it means and how to upgrade.
  • Find out who watches for updates. On shared hosting it's the provider; on your own server it's you or your contractor. If you don't know the answer, probably nobody does.

Want your application to get security fixes straight away? We can take over its maintenance including the server, or move it to a supported PHP version.

Sources: php.net – 2026 release announcements, PHP 8 ChangeLog, Unit 42 – PHP2Shell.

Related

Contact us


Send us an enquiry when we are not available on the phone