పోస్ట్‌లుPHP CVE-2026-109618 and CVE-2026-109619: How Appbox Responded

PHP CVE-2026-109618 and CVE-2026-109619: How Appbox Responded

9 నిమిషాల పఠనం
ద్వారా rid

PHP fixed two critical vulnerabilities in its handling of uploaded form data on 21 October. Here is how we protected Appbox apps before the patches arrived and how we rolled them out.

⚠️ ఈ కంటెంట్ ఇంకా మీ భాషలో అందుబాటులో లేదు.

On 21 October the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619. Both are rated CVSS 9.2 and both can lead to remote code execution. The bugs sit in code that runs before a PHP application sees the request, so an app's own login page doesn't protect it.

Many Appbox apps run on PHP, including Nextcloud, WordPress and Kodbox. By 01:00 UTC on 22 October, 1,996 app instances were running patched PHP, and we had patched PHP inside about 250 running desktops as well. We found no sign that either bug was used against Appbox.

What the vulnerabilities are

PHP pre-announced the release on 20 October without details. On the morning of the 21st, all we knew was that the problem was in multipart/form-data parsing, the format browsers use to upload files.

PHP's security advisory describes the two bugs:

  • CVE-2026-109618 (GHSA-w8hw-w9fx-j79w): running out of memory can interrupt PHP while internal request data is only partly set up. The cleanup that follows can then treat the half-built data as valid.
  • CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp): internal state belonging to one request can survive after its memory has been freed, and the next request handled by the same PHP worker can use it.

The advisory is direct about mitigations: none of them is complete, and updating PHP is the only safe fix. It also notes that PHP 8.1 and older no longer get updates from the PHP project. That mattered for us, because some of our older app images still ran PHP 7.2 and 7.4.

Before the patches: narrowing the attack paths

We started at about 11:00 UTC, three hours before the scheduled release, by working out which apps were exposed. We scanned every PHP process on every server, matched each one to its app, and checked whether the web server in front of it passes requests to PHP. That gave us the list we worked from for the rest of the day: about 2,000 containers across 21 apps. The desktop apps also contain PHP, but it can only be reached after logging in to the desktop.

The quickest stopgap would have been to block uploads in front of every app. We decided against it, because many apps exist to receive uploads: files in Nextcloud, media in WordPress.

PHP published the release and advisory at 13:35 UTC, slightly ahead of schedule. One of the advisory's partial mitigations had no downside for us. Turning off PHP's session upload progress feature closes one of the two triggers for CVE-2026-109619, and none of the apps we ship use it. By 15:16 UTC it was off in 2,167 PHP containers, applied as a config override with a graceful PHP reload, so no app was restarted.

We didn't apply the advisory's other suggestions across the fleet. Removing PHP's memory limit would let a runaway script use up a server's memory, and lowering upload size limits would break customers' forms and uploads.

Building patched images

The fix itself is new PHP, which means a new image for every affected app. Our images get PHP from several places: Docker's official PHP images, Alpine, Ubuntu, Debian and Ondřej Surý's PHP packages. Each one publishes fixes on its own schedule.

We didn't wait for the slowest. Docker's official images and Ubuntu's updates for 22.04 arrived the same afternoon. Where a fix hadn't been published yet, we built the patched packages ourselves from the distribution's own source packages. Sites hosted in Lamp Stack and Nginx & PHP depend on a particular PHP branch, so those images stayed on the branch they already ran. To keep up with the number of builds, we brought a 128-core build machine online during the afternoon.

The oldest images needed the most care. More than 1,100 instances of our most widely installed PHP app still run an older release built on Ubuntu 18.04 with PHP 7.2. PHP 7.2 no longer gets public security fixes, and moving those instances to PHP 8 in a hurry would have risked breaking plugins. So we backported the fix to Ubuntu's PHP 7.2 packages ourselves, starting from the patch Canonical published for PHP 8.1. The backport passed two independent reviews and includes tests for both vulnerabilities.

Before an image reaches our registry, a release check confirms that the patched PHP is installed, that its PHP modules match the previous release, that the configuration test passes and that a real file upload still works.

Rolling out

Every new version follows the same steps:

  1. Update one canary instance per version, then check that the app runs, serves its pages and reports the patched PHP.
  2. Publish the version in the app store and make it the default.
  3. Update the remaining instances, a few servers at a time.

Each update recreates the app's container, so the app restarts briefly. Your data and settings stay as they are. Before any update that changed an app's version or its database, we took a copy of the app's data. We also fixed a few problems along the way that predated this incident, such as apps that had been failing to start after earlier server restarts.

The canaries caught one problem. A Nextcloud canary came back showing the setup page after its update. The Nextcloud installer in our image had a bug: when the image version matched the installed version, it moved the configuration file aside and never put it back. We restored that instance within 15 minutes, fixed the installer, tested the fix by recreating an installed instance, and released the corrected versions before continuing with Nextcloud.

Desktops needed a different approach, because recreating a desktop removes software installed outside its config folder. New desktop installs now use patched images. For about 250 running desktops, we updated PHP inside the desktop without recreating it, so the software and files you added are untouched. A small number of desktops with interrupted package installs are being finished separately.

Checking for signs of attack

Patching stops new attacks, but it doesn't tell you whether anyone got in first. So while the images were building, we looked for signs that these bugs had been used against Appbox. We searched from 17 October, a few days before the advisory, in case attacks started before the fix was public.

The checks cover what these bugs leave behind and what an attacker would do next:

  • PHP's logs: out-of-memory errors at the start of a request, heap corruption errors and crashed PHP workers.
  • New or changed PHP files in web roots since 17 October, and known web shells.
  • Each app's code, compared file by file against the clean copy in its image.
  • Every container, PHP or not, checked for crypto miners, botnet tools, unexpected scheduled tasks, extra admin accounts and unknown SSH keys.
  • Our servers' SSH keys, login sources and startup services.

Nothing showed that either vulnerability had been used. The sweep did turn up three older problems unrelated to these bugs, including a desktop app taken over months ago, most likely through its SSH password. We stopped two of those apps and contacted all three customers directly.

We're repeating these checks until every app is on patched PHP.

Where things stand

Status at 01:00 UTC on 22 October:

AppPatched versionStatus
ruTorrent 5.x5.3.15.5Done
ruTorrent 3.x3.10-11 (PHP 7.2 backport)Done
Nextcloud35.0.0-4, 31.0.4-2, 27.1.5-1Done; each install stays on its Nextcloud version
WordPress7.1.2-1Done
Nginx & PHP 8.31.24.0-1, 1.18.0-1Done
Nginx & PHP 7.21.13.7-1 (PHP 7.2 backport)Done
Lamp Stack7-2, 8-2Done
Kodbox1.70.02-1Done
KODExplorer4.35-7 (PHP 7.2 backport)Mostly done
AzuraCast0.23.4-1Done
TeamSpeak 3 (web panel)3.13.7-2Done
SeAT5.0.1-3, 5.0.1-4Done
Mautic5.2.3-1Done
Desktop appsPatched images for new installs; running desktops patched in placeDone; a few still being finished

ruTorrent 3.10-11 also asks for a login on every ruTorrent page. If another app connects to ruTorrent, enter your ruTorrent username and password in that app. File Share links still work without a login.

A few instances on much older versions still need individual attention. We'll keep this table updated until every app is done.

What you need to do

Most of you don't need to do anything. We update running apps for you.

A few cases need your attention:

  • If your app was stopped during the rollout, we skipped it and it still has its previous version. Start it, then press Update on its page in your dashboard.
  • If an app that connects to one of your Appbox apps stopped working after the update, check the login note under the status table.
  • Don't switch an app back to an older version. Older versions are still listed so we can roll back if an update causes problems, but they run unpatched PHP.
  • If you installed PHP yourself, in a VM, an OS container such as Ubuntu or Debian, or a desktop, we can't patch it for you. Install your distribution's security updates (on Ubuntu or Debian, sudo apt update && sudo apt upgrade) and restart PHP or your web server. On Ubuntu 18.04 and 20.04, PHP fixes are only available through Ubuntu Pro, so move to a newer release if you can.

If anything looks wrong after your app was updated, or you want to know which version a specific app is on, get in touch and we'll check it.


Got questions? Contact us at support@appbox.co or open a ticket at billing.appbox.co.

rid

rid

Software Engineer | Writer | Designer