Critical PHP Security Release: What Laravel Owners Must Do

Critical PHP Security Release: What Laravel Owners Must Do cover image

On 19 November 2026 the PHP project shipped security releases for every supported version, and the day before it warned that "the highest severity is CRITICAL". If your business runs on a Laravel app, this is a patch to apply this week, not at the next convenient maintenance window. The good news: for most Laravel apps the fix is a PHP update and a service restart, not a code change.

This guide is for owners and CTOs of businesses that depend on a Laravel app. It explains what was fixed in plain language, which parts matter for a typical Laravel setup, how to check your servers, and how to patch without taking the app down.

What did the PHP security release on 19 November fix?

The PHP project released PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 on 19 November 2026, each described as "a security release", and PHP 8.6.0 on the same day with the same fixes included (php.net news). The PHP 8 ChangeLog lists the vulnerabilities fixed. The ones rated critical in the php-src security advisories include:

CVE Part of PHP What the advisory says
CVE-2026-129289 PHP-FPM "PHP-FPM request smuggling through an unread HTTP request body"
CVE-2026-126714 Sessions "Partially overwritten session files can lead to remote code execution"
CVE-2026-129481 Sessions "Use-after-free after interrupted session shutdown"
CVE-2026-129474 Core "Use-after-free in magic method backtraces can lead to remote code execution"
CVE-2026-129182 Core "Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown"
CVE-2026-129496 Date "Timezone cache use-after-free can lead to remote code execution"

Other fixes in the same release cover PHP-FPM (a local privilege escalation, CVE-2026-129291, rated high, and an XSS in the FPM status page), Phar signature checks, SOAP, DOM, PHP-CGI and the URI extension. Not every fix applies to every branch, so check the ChangeLog section for the exact version you run.

One sentence from PHP's pre-announcement is worth reading twice: "The issues rated CRITICAL require either non-default configuration or uncommon setups." In other words, many apps are not exposed to the worst bugs. But working out whether your server has one of those setups takes longer than installing the update, so patch first and analyse afterwards.

Does this affect Laravel apps?

Yes. These are bugs in PHP itself, not in Laravel, so every Laravel app runs on an affected PHP binary until the server is updated. How exposed you are depends on your setup:

  • PHP-FPM behind nginx or Apache. This is the most common way Laravel apps run in production, and it is where the request smuggling fix (CVE-2026-129289) applies.
  • Sessions. Laravel's session system does not use PHP's built-in session handler: it stores sessions through its own drivers (database, Redis, files and so on). That makes the session bugs less likely to reach a typical Laravel app's own sessions. They still matter if any code on the same server calls session_start() directly: a legacy module, a bundled admin tool, or a WordPress site sharing the server.
  • Shared servers. If several apps share one PHP installation, the most exposed app sets the risk for all of them.

Whatever your setup, the answer is the same: update PHP on every server that runs your code.

Will composer audit catch this?

No, and this is the mistake we expect to see most often. composer audit checks the packages in your composer.lock against known advisories. It doesn't check the PHP binary that runs them. An app can pass composer audit with no warnings and still run on an unpatched PHP. You need both checks: packages (Composer) and runtime (the PHP version on the server).

How do you check which PHP version your servers run?

Run these on each production server, or ask your hosting provider:

php -v
php-fpm8.4 -v   # use your version, e.g. php-fpm8.3
php artisan about

Check the version that serves web requests, not only the command-line PHP. PHP-FPM and the CLI can be different installations on the same server, and many servers run several PHP versions side by side.

What you are looking for:

Branch Patched version
PHP 8.5 8.5.13 or later
PHP 8.4 8.4.28 or later
PHP 8.3 8.3.37 or later
PHP 8.2 8.2.36 or later
PHP 8.1 or older No fix: these versions are end of life

One caveat: Linux distributions such as Debian and Ubuntu often backport security fixes into their own PHP packages without changing the main version number. If your PHP comes from the distribution's own repositories, check its security tracker or package changelog rather than relying on php -v alone.

How do you patch PHP on your servers?

The steps depend on where PHP comes from.

Your own Ubuntu or Debian server

Update the PHP packages, then restart PHP-FPM so the running processes load the new binary:

sudo apt update
sudo apt install --only-upgrade 'php8.4*'
sudo systemctl restart php8.4-fpm
php-fpm8.4 -v

Then restart your queue workers too (php artisan queue:restart, or restart Horizon). Long-running workers keep the old PHP in memory until they restart, and so do Laravel Octane servers.

Docker

Updating packages inside a running container is not the fix. Rebuild your image from an updated base image (for example the official php:8.4-fpm image once its tag points to 8.4.28 or later), run your tests, and redeploy. If your Dockerfile pins an exact patch version, raise it.

Managed hosting and platforms

On shared hosting, a control panel, or a managed Laravel platform, the provider updates PHP for you, but not always on the same day. Check its status page or changelog, and confirm the version from inside your app with php artisan about.

Is there a workaround if you can't patch today?

Patching is the real fix. If you need a few days:

  • FastCGI connection reuse. Security write-ups on CVE-2026-129289, such as Aikido's, recommend turning off FastCGI connection reuse until you patch. In nginx that means fastcgi_keep_conn stays off (its default). In Apache it means not enabling enablereuse for the PHP-FPM proxy. Check that your configuration hasn't turned either one on.
  • Session upload progress. For a related session bug (CVE-2026-115560), PHP's own October advisory suggested session.upload_progress.enabled=0 until the fix shipped, for apps that change the session serializer at runtime.
  • Lock down what's exposed. Make sure the PHP-FPM status page is not reachable from the internet, and that nothing besides your web server can talk to PHP-FPM.

What if your app is on PHP 8.2 or older?

PHP 8.2 got this fix, but it is the last stretch: the 8.2.36 announcement says "PHP 8.2 reaches end of life on 31 December 2026 and will receive no further security fixes after that date" (supported versions). The next critical PHP bug after that date will have no fix for 8.2 at all. PHP 8.1 and older didn't get this release.

So if this week's patch landed on PHP 8.2, treat it as a reminder to plan the move to PHP 8.4. Our guide PHP 8.2 end of life: what Laravel app owners should do covers the upgrade order for each Laravel version. PHP 8.6 arrived the same day, and we cover whether to move to it in a separate post.

A patch checklist for this week

  1. List every server that runs your code: web, queue workers, scheduler, staging, CI, and any old servers still online.
  2. Check the PHP version that serves web requests on each, against the table above.
  3. Patch and restart PHP-FPM, queue workers, Horizon and Octane.
  4. Rebuild containers from updated base images.
  5. Verify with php artisan about and a quick test of sign-in, checkout and other critical flows.
  6. Run composer audit as well, because the packages need checking too.
  7. Write down what you did, so the next security release takes half the time.

Who watches for the next one?

The most common reason an app runs on unpatched PHP months after a fix is that nobody's job is to notice. Security releases arrive with a day's warning, often while the original developers are busy on other work. A maintenance plan turns this into routine: watch the announcements, patch staging, test, patch production and report back.

Want us to patch and watch your Laravel app?

CodeBrisk has built and maintained Laravel applications since 2015, with a 100% Job Success score as a Top Rated agency on Upwork (see our quote builder and billing system case study). Our Laravel maintenance and support service covers security releases like this one: we check every server, patch, restart workers, test the critical flows and tell you what changed. If your app is on an old PHP or Laravel version, our upgrade and migration service gets it onto supported versions.

Contact us with the PHP version from php -v, and we'll tell you what your servers need.

Written by

Rizwan Aslam

Founder and CEO of CodeBrisk, with years of experience building web applications with Laravel and leading a team of expert developers.

More about Rizwan
Book a free call
Book a call with CodeBrisk