PHP RCE Fixes for CVE-2026-109618 and CVE-2026-109619: Update Now

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical remote code execution bugs. Here is how to check your PHP version and update on Ubuntu and Arch.

News Published 3 min read

The PHP project disclosed two critical remote code execution bugs, CVE-2026-109618 and CVE-2026-109619, on 21 October 2026. Both are rated CVSS 4.0 9.2, and Ubuntu describes the impact as unauthenticated code execution in any PHP application. If you run PHP behind a web server, update and restart it.

What was fixed

The upstream advisory lists these fixed releases: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The PHP project says 8.1 and older no longer get updates from it. For 7.4, 8.0 and 8.1 it published minimal source backports on dedicated branches, and some distributions and LTS vendors ship their own backports.

The two bugs, per the advisory:

  • CVE-2026-109618: out-of-memory handling can interrupt PHP while internal request data is only partly initialized, and request cleanup may then treat that data as valid.
  • CVE-2026-109619: request-owned internal state can outlive its freed memory, and a later request on the same worker may use it before normal initialization.

The advisory says all PHP setups serving web requests are affected, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. It rates mod_php as the highest risk.

The PHP Foundation had planned disclosure for 22 October, but Ubuntu says a public leak moved it to 21 October.

Check your installed PHP version

Compare the result with the fixed versions above, or with your distribution’s package versions below.

✓ tested · debian,ubuntu
apt list '?installed ?name(^php[0-9.]+$)' || true
✓ tested · fedora,arch,alpine
php --version || echo "php is not installed"

Ubuntu and Debian-based systems

Ubuntu lists these fixed package versions:

ReleasePackageFixed version
22.04php8.18.1.2-1ubuntu2.28
24.04php8.38.3.6-0ubuntu0.24.04.13
26.04php8.58.5.4-0ubuntu1.5
26.10php8.58.5.9-0ubuntu2.1

Ubuntu also fixed 14.04 through 20.04 (php5, php7.0, php7.2, php7.4), but those fixes use +esm versions and need Ubuntu Pro. Its notices are USN-8948-1 and USN-8948-2. Compare your installed package against this table rather than against upstream version numbers.

Upgrade everything, or only the PHP packages if a full upgrade is not possible:

sudo apt update && sudo apt upgrade
sudo apt update && sudo apt install --only-upgrade '?name(^php[0-9.]+$)'

Running processes keep the old code until restarted. For Apache with mod_php:

sudo systemctl restart apache2

If you use PHP-FPM, restart that service instead. Ubuntu notes that unattended-upgrades is on by default from 16.04 onward, but it does not restart your applications. A reboot also covers it.

Arch Linux

Arch asks users to move to php 8.5.12 or later, and php-legacy 8.3.36 or later. It says systems that expose a PHP application publicly are the affected case. Details are in advisories ASA-202610-1 and ASA-202610-2.

sudo pacman -Syu

Then restart your PHP-FPM or web server service.

Interim mitigations

The PHP advisory lists configuration changes that reduce exposure to specific attack paths, such as setting session.upload_progress.enabled=0 for CVE-2026-109619. It states plainly that these do not make an installation safe, and that updating is the only complete fix. Treat them as a stopgap if you cannot update right away, and read the advisory for the exact settings.

For another security update check on Ubuntu, see eMudhra CA Compromise: Check Your Ubuntu System for the PKI Fix.

Sources

  1. php2shell: CVE-2026-109618 and CVE-2026-109619 (Ubuntu blog)
  2. Update to php >= 8.5.12 and/or php-legacy >= 8.3.36 to prevent remote code execution (Arch Linux news)
  3. PHP security advisory, 21 Oct 2026 (php.net)

#Php #Security #Cve #Rce #Apt #Pacman

This article was drafted with AI assistance, fact-checked against the sources listed above and reviewed by a human editor before publication. Spotted an error? See our corrections policy.