Mitigating CVE-2026-109618 and CVE-2026-109619 (PHP2Shell) on Rocky Linux 8, 9, 10, and LTS Variants

Arsalan Zaidi
Customer Support Engineer

Introduction

CVE-2026-109618 and CVE-2026-109619 are two critical remote code execution (RCE) vulnerabilities in PHP core, disclosed on 2026-10-21.

Both are rated CVSS v4.0 9.2.

The vulnerabilities allow an unauthenticated remote attacker to execute arbitrary code on any web server running PHP.

Multiple public exploits exist, and large-scale exploitation is considered likely.

  • CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) is a remote code execution via an out-of-memory (OOM) condition during RFC 1867 input parsing.

    RFC 1867 governs multipart form data and file upload handling.

    An attacker can trigger an OOM condition in PHP's input parser, causing memory corruption that leads to arbitrary code execution.

  • CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp) is a remote code execution via global state corruption after a fatal error.

    When PHP encounters a fatal error under certain conditions, internal global state is not properly cleaned up, allowing an attacker to exploit the corrupted state for code execution.

Both vulnerabilities can be triggered with a simple HTTP POST request to any PHP endpoint that processes input.

No authentication, special configuration, or file upload functionality is required.

These CVEs affect all PHP installations from version 5 onward.

Official patches have been released for supported PHP branches (8.2, 8.3, 8.4, and 8.5).

The PHP project has also released dedicated fix branches for end-of-life versions 7.4, 8.0, and 8.1 as minimal mitigations.

PHP versions 5.x, 6.x, and 7.0 through 7.3 will not receive any fix from the PHP project.

A third PHP issue, CVE-2026-115560, concerns session upload progress and was announced separately on 2026-10-23.

PHP will publish a full advisory for it with the next regular release.

Until then, PHP advises setting session.upload_progress.enabled=0, which is also one of the CVE-2026-109619 mitigations listed below.

Problem

Rocky Linux ships PHP in AppStream.

Every PHP version shipped in Rocky Linux 8, 9, and 10 is within the affected range, so each release needs a patched build:

Rocky Linux Version PHP Shipped Upstream Fix Status
Rocky Linux 10 (el10) php 8.3 (default) and php8.4 Fixed upstream in PHP 8.3.36 and 8.4.27
Rocky Linux 9 (el9) php 8.0.30 (default, non-modular), plus module streams php:8.1, php:8.2, and php:8.3 (the set varies by minor release) Fixed upstream in PHP 8.2.35 and 8.3.36. Source-only fix branches for 8.0 and 8.1
Rocky Linux 8 (el8) Module streams php:7.2 (default), php:7.3, php:7.4, php:8.0, and php:8.2 (8.2 is offered by Rocky Linux 8.10 and the CIQ LTS 8.6 repository) Fixed upstream in PHP 8.2.35. Source-only fix branches for 7.4 and 8.0. No fix for 7.2 and 7.3

Rocky Linux 10 ships PHP 8.3 and 8.4, which are in supported upstream branches.

Rocky Linux 9 ships PHP 8.0.30 as its default package, and Rocky Linux 8 ships PHP only as module streams.

PHP 8.1 and earlier are end-of-life upstream.

The PHP project released dedicated fix branches for 7.4, 8.0, and 8.1 containing minimal mitigations, but these are source-only releases without official binaries.

PHP 7.2 and 7.3 have no fix branch and are unmitigated at the source level.

On Rocky Linux 8 the default stream is php:7.2.

On RLC Pro LTS 8.6 and LTS 8.10 test systems, installing PHP packages without enabling a stream installed PHP 7.2.24, which has no fix.

Patched streams and the streams that remain unpatched are listed under Patched Packages.

Both vulnerabilities can be triggered by a simple POST request to any PHP endpoint.

The attack is remote, unauthenticated, and requires no special configuration on the target server.

Any system running PHP to serve web traffic (via php-fpm, mod_php, or php-cgi) is directly exposed.

This makes the risk profile significantly different from local privilege escalation CVEs: internet-facing PHP servers are exploitable from the network with no local access required.

Treat the following as affected until running a patched PHP version:

  • RLC Pro 10 and CIQ SIG/Cloud Next 10
  • RLC Pro 9 and CIQ SIG/Cloud Next 9
  • RLC Pro LTS 9.2 and 9.6
  • RLC Pro LTS 10.2
  • RLC Pro 9 systems that still use the Rocky Linux 9.7 or earlier repositories, which will not be patched
  • RLC Pro FIPS variants
  • RLC Pro Hardened variants
  • RLC Pro 8 and CIQ SIG/Cloud Next 8
  • RLC Pro LTS 8.6 and 8.10
  • CIQ Bridge / CentOS 7.9 (if running PHP)

Rocky Linux community releases are also affected.

CIQ does not publish patched packages for community Rocky Linux editions.

For community release patching status, refer to Rocky Linux Errata.

Status

  • Patched PHP packages are available for RLC Pro 10, RLC Pro LTS 10.2, RLC Pro 9 (Rocky Linux 9.8 repositories), RLC Pro 8, RLC Pro Hardened 9.6 LTS, 9.7, and 9.8, LTS 8.6, 8.10, 9.2, and 9.6, and CIQ Bridge.

    See the Patched Packages table below for specific versions.

  • Some streams have no patched build. The default php:7.2 stream on Rocky Linux 8 and the php:8.1 stream on Rocky Linux 9 are not patched.

    The Patched Packages section lists every stream without a fix and the stream to switch to.

  • Recommended action: Update PHP immediately on all internet-facing systems, and move any system on an unpatched stream to a patched stream.

  • Open a support case if you need help assessing PHP exposure across your fleet or tracking patched package availability for a specific CIQ variant.

Patched Packages

The packages below were installed and checked on each listed variant on 2026-10-27, except RLC Pro LTS 10.2.

RLC Pro LTS 10.2 could not be deployed for this check, and it receives the same Rocky Linux 10.2 AppStream builds as RLC Pro 10 (10.2).

Systems on Rocky Linux 8 modular streams or on Rocky Linux 9 module streams only receive a fix when the matching stream is enabled.

Variant PHP stream Patched version Source
RLC Pro 10 (10.2) and RLC Pro LTS 10.2 php (default) php-8.3.36-1.el10_2 RLSA-2026:87070
RLC Pro 10 (10.2) and RLC Pro LTS 10.2 php8.4 php8.4-8.4.27-1.el10_2 RLSA-2026:87071
RLC Pro 9 (9.8 repositories) and RLC Pro Hardened 9.7 and 9.8 php (default) php-8.0.30-8.el9_8.1 RLSA-2026:87151
RLC Pro 9 (9.8 repositories) and RLC Pro Hardened 9.7 and 9.8 php:8.2 php-8.2.35-1 RLSA-2026:87072
RLC Pro 9 (9.8 repositories) and RLC Pro Hardened 9.7 and 9.8 php:8.3 php-8.3.36-1 Rocky Linux 9.8 AppStream
RLC Pro 8 (8.10) and RLC Pro LTS 8.10 php:7.4 php-7.4.33-8 RLSA-2026:87080
RLC Pro 8 (8.10) and RLC Pro LTS 8.10 php:8.2 php-8.2.35-1 RLSA-2026:87073
RLC Pro LTS 8.6 php:7.4 php-7.4.33-8 rlc-8.6-lts.x86_64
RLC Pro LTS 8.6 php:8.2 php-8.2.35-1 rlc-8.6-lts.x86_64
RLC Pro LTS 9.2 php (default) php-8.0.30-1.2.el9_2_ciq rlc-9.2-lts.x86_64
RLC Pro LTS 9.2 php:8.2 php-8.2.35-1 rlc-9.2-lts.x86_64
RLC Pro LTS 9.2 php:8.3 php-8.3.36-1 rlc-9.2-lts.x86_64
RLC Pro LTS 9.6, RLC Pro Hardened 9.6 LTS, and FIPS 9.6 php (default) php-8.0.30-3.4.el9_6_ciq rlc-9.6-lts.x86_64
RLC Pro LTS 9.6, RLC Pro Hardened 9.6 LTS, and FIPS 9.6 php:8.2 php-8.2.35-1 rlc-9.6-lts.x86_64
RLC Pro LTS 9.6, RLC Pro Hardened 9.6 LTS, and FIPS 9.6 php:8.3 php-8.3.36-1 rlc-9.6-lts.x86_64
CIQ Bridge php (default) php-5.4.45-1.2.el7_9.ciqcbr ciq-bridge.x86_64

On a FIPS 9.6 host, PHP comes from the LTS 9.6 repositories.

The LTS 8.10 repositories serve the same PHP builds as RLC Pro 8.10.

RLC Pro Hardened 9.7 hosts that use the rolling rlc-9 repositories receive the 9.8 builds listed above.

Streams without a patched build

The following streams had no patched build on 2026-10-27.

Systems on these streams remain vulnerable.

Variant PHP stream Version offered Action
RLC Pro LTS 8.6 php:7.2 (default), php:7.3, php:8.0 7.2.24, 7.3.20, 8.0.30-1 CIQ does not plan to patch these streams. Switch to php:7.4 or php:8.2.
RLC Pro 8 (8.10) and RLC Pro LTS 8.10 php:7.2 (default), php:7.3, php:8.0 7.2.24, 7.3.20, 8.0.30-1 No fix is available for these streams. Switch to php:7.4 or php:8.2.
RLC Pro LTS 9.2 php:8.1 8.1.14 CIQ does not plan to patch this stream. Switch to php:8.2 or php:8.3.
RLC Pro LTS 9.6, RLC Pro Hardened 9.6 LTS, and FIPS 9.6 php:8.1 8.1.32 CIQ does not plan to patch this stream. Switch to php:8.2 or php:8.3.
RLC Pro 9 (9.8 repositories) and RLC Pro Hardened 9.7 and 9.8 php:8.1 8.1.32 No fix is available for this stream. Switch to php:8.2 or php:8.3.

Systems that cannot switch streams yet should apply the interim mitigations in the next section until they can.

RLC Pro 9.7 will not receive a patched PHP package.

The Rocky Linux 9.7 AppStream repository, which the RLC Pro 9.7 repositories use, offered PHP 8.0.30-5.el9_7, 8.2.30, and 8.3.29 on 2026-10-27.

None of those builds include the fix.

Move RLC Pro 9 systems to the 9.8 repositories, which carry the fixed builds listed above.

CIQ updates this table as tested packages become available for each variant.

Confirm the installed PHP packages on a given system with:

php -v
rpm -qa 'php*' | sort

Compare the package release, not only the output of php -v.

php -v reports PHP 8.0.30 for both patched and unpatched 8.0 builds, so the RPM release in the second command is what shows whether the fix is present.

Interim Mitigation

Unlike kernel vulnerabilities where no interim measure may exist, PHP's position in the application stack provides several options to reduce exposure before patched packages are available.

Apply one or more of the following based on your environment.

⚠️ The PHP security team warns that updating to a patched release is the only reliable mitigation.

There is no complete generic configuration workaround, because an application, extension, or server path may publish stale state or consume it without a predictable log entry.

The measures below reduce exposure but do not eliminate the vulnerability.

Configuration measures published by PHP

Apply these through php.ini, an FPM pool, or server configuration that takes effect before request parsing, then restart every worker.

Do not rely on ini_set() or an FPM .user.ini, because those are applied too late.

For CVE-2026-109618:

memory_limit = -1
post_max_size = 8M

Set memory_limit with php_admin_value so applications cannot override it, and confirm no pool, directory, or application setting puts a finite limit back.

Use post_max_size = 32M where applications need file uploads, and keep upload_max_filesize below it.

Setting memory_limit = -1 removes the predictable per-request limit but is not a complete fix: mmap() or other underlying allocation failures can still trigger the vulnerable longjmp() path even with no PHP memory limit.

⚠️ Do not use RLIMIT_AS or RLIMIT_DATA to bound memory.

The PHP security team warns that both can cause the allocation failure that reaches the vulnerable code path.

Use a container or cgroup limit instead, and if using cgroups, give each worker its own group.

For CVE-2026-109619:

session.upload_progress.enabled = 0
fatal_error_backtraces = 0

session.upload_progress.enabled = 0 blocks the confirmed session paths but not other variants.

fatal_error_backtraces = 0 applies to PHP 8.5 and blocks only the confirmed fatal-error path.

CVE-2026-109619 exploits stale global state that survives from one request to the next on the same worker.

If performance allows, setting pm.max_requests = 1 in the PHP-FPM pool configuration forces each worker to exit after a single request, preventing the producer/consumer sequence across requests.

This has a significant performance cost and is not practical for high-traffic applications.

Disable PHP on systems that do not need it

Systems where PHP is installed but not actively used should have it stopped and disabled:

sudo systemctl stop php-fpm
sudo systemctl disable php-fpm

For Apache with mod_php, disable the PHP module:

sudo sed -i -E 's/^([[:space:]]*)(LoadModule php)/\1# \2/' /etc/httpd/conf.modules.d/*php*.conf
sudo systemctl restart httpd

Block multipart POST requests at the reverse proxy

CVE-2026-109618 targets PHP's RFC 1867 multipart form parser.

If your application does not require file uploads or multipart form submissions, blocking Content-Type: multipart/form-data requests at the reverse proxy layer removes the primary trigger for this CVE:

# nginx example: block multipart POST requests to PHP endpoints
if ($content_type ~* "multipart/form-data") {
    return 403;
}

Check the configuration and reload nginx so running workers pick up the change:

sudo nginx -t && sudo systemctl reload nginx

This is a targeted measure for CVE-2026-109618 specifically and does not mitigate CVE-2026-109619.

It also breaks any legitimate file upload or multipart form functionality.

Only apply this if your PHP application does not use file uploads.

⚠️ Do not narrow this rule to POST.

PHP 8.4 added request_parse_body(), which parses multipart bodies on other methods, so a POST-only rule can be stepped around.

Verify mitigation

Confirm PHP-FPM is not running on systems where it was disabled:

systemctl is-active php-fpm

Confirm the interim settings are present in the configuration that the web runtime reads, not only on the CLI:

grep -rE "memory_limit|post_max_size|upload_progress|fatal_error_backtraces" /etc/php.ini /etc/php.d/ /etc/php-fpm.d/

Resolution

Update PHP to a patched package listed under Patched Packages.

If the system is on a stream or release without a patched build, move it to one that has a patched build.

The sections below give the update steps, the verification steps, and how to revert the interim mitigations.

Installing the Update

Install the update for your variant and restart the PHP services that run on the system.

List the installed PHP packages first:

rpm -qa 'php*' | sort

A release that contains module+, such as php-cli-8.2.35-1.module+el9.6.0, is a module stream build.

The stream is the PHP version in that name, which is 8.2 in this example.

Default package (non-modular)

For the default php package on Rocky Linux 9 and Rocky Linux 10, which includes the CIQ LTS 9.2 and 9.6 builds, update the PHP packages and restart PHP:

sudo dnf update 'php*'
sudo systemctl restart php-fpm

If running Apache with mod_php instead of php-fpm:

sudo dnf update 'php*'
sudo systemctl restart httpd

Module streams (Rocky Linux 8 and 9)

Enable a stream that has a patched build, then synchronize the PHP packages to it.

Replace php:8.2 with php:7.4 or php:8.2 on Rocky Linux 8, or with php:8.2 or php:8.3 on Rocky Linux 9:

sudo dnf module reset php -y
sudo dnf module enable php:8.2 -y
sudo dnf distro-sync -y 'php*'
sudo systemctl restart php-fpm

⚠️ WARNING Changing the PHP stream changes the PHP version.

Test the application and its PHP extensions on the new version outside production first, and plan for a PHP service restart.

On a Rocky Linux 8 system that already uses php:7.4, sudo dnf update 'php*' also installs the patched build.

sudo dnf update 'php*' does not install a fix on the php:7.2, php:7.3, php:8.0, and php:8.1 streams, because no patched build exists for them.

CIQ Bridge (CentOS 7)

For CIQ Bridge (CentOS 7) systems, use yum instead of dnf:

sudo yum update 'php*'
sudo systemctl restart php-fpm

A full system reboot is not required for PHP package updates, but all PHP processes must be restarted.

Any long-running PHP CLI processes should also be restarted.

If the update does not appear, confirm that the appropriate depot channel is enabled for your product:

sudo depot enable lts-9.6      # RLC Pro LTS 9.6
sudo depot enable rlc-pro-9    # RLC Pro 9
sudo depot enable rlc-pro-10   # RLC Pro 10

Verification

After installing the patched PHP package and restarting services, confirm the installed packages:

rpm -qa 'php*' | sort
php -v

The package versions should equal or exceed the patched version listed in the Patched Packages table for your variant.

Builds of PHP 8.0.30, 7.4.33, and 5.4.45 name both CVEs in the package changelog:

rpm -q --changelog php-cli | grep -E 'CVE-2026-1096(18|19)'

The changelog of the PHP 8.2, 8.3, and 8.4 builds does not name the CVEs.

For those builds, confirm that the installed version is 8.2.35, 8.3.36, 8.4.27, or newer, which are the first upstream releases with the fix.

Reverting the Mitigation

If you applied any interim mitigation, revert those changes after installing the patched PHP packages.

To re-enable php-fpm:

sudo systemctl enable php-fpm
sudo systemctl start php-fpm

To restore the interim php.ini settings, remove the memory_limit, post_max_size, and fatal_error_backtraces overrides added above, then restart every worker.

Keep session.upload_progress.enabled = 0 in place.

PHP advises keeping it until the next regular bugfix release, which addresses CVE-2026-115560.

To restore the Apache PHP module (if disabled):

sudo sed -i -E 's/^([[:space:]]*)# (LoadModule php)/\1\2/' /etc/httpd/conf.modules.d/*php*.conf
sudo systemctl restart httpd

To remove the multipart POST block (if applied in nginx):

Remove the if ($content_type ~* "multipart/form-data") block from your nginx configuration and reload:

sudo nginx -t && sudo systemctl reload nginx

Notes

  • Remote code execution, not local privilege escalation. Unlike the kernel CVEs documented in prior CIQ security advisories, these PHP vulnerabilities are remotely exploitable via a simple POST request.

    Any internet-facing PHP installation is directly at risk without requiring local access.

    Prioritize internet-facing systems above internal-only PHP installations.

  • Exposure varies by SAPI. The PHP server API (SAPI) determines how PHP runs and affects the exploitability of both CVEs.

    Apache mod_php is the most exposed: both CVEs have confirmed, validated RCE against mod_php with default configurations.

    php-fpm is conditionally exposed: CVE-2026-109618 has no complete FPM exploit demonstrated, and CVE-2026-109619 depends on a suitable application operation.

    FPM exits the child when startup fails, which limits one attack path.

    FrankenPHP and LSAPI are modeled as likely susceptible but have not been fully validated.

    All SAPIs should be patched regardless, but mod_php deployments are at the highest immediate risk.

  • PHP 8.1 and earlier are EOL upstream. Rocky Linux 8 ships PHP 7.2, 7.3, 7.4, and 8.0, and Rocky Linux 9 ships PHP 8.0 and 8.1, none of which are in supported upstream branches.

    The PHP project has released dedicated fix branches for 7.4, 8.0, and 8.1 with minimal mitigations.

    CIQ patched the default PHP 8.0 package on LTS 9.2 and 9.6, the php:7.4 stream on LTS 8.6, and the Bridge PHP 5.4 package.

    CIQ does not plan to patch the php:7.2, php:7.3, and php:8.0 streams on LTS 8.6 or the php:8.1 stream on LTS 9.2 and 9.6.

    Systems running PHP 7.2 or 7.3 have no upstream fix available at any level and should migrate to a patched stream.

  • No reboot required. Unlike kernel patches, PHP package updates take effect after restarting PHP services (php-fpm, httpd).

    A full system reboot is not necessary.

  • PHP CLI usage is also affected. Systems that use PHP only as a CLI tool (cron jobs, batch processing) and not for web serving are affected by the vulnerability but are not remotely exploitable unless an attacker has local access or can control input to the CLI process.

    These systems are lower priority than internet-facing PHP servers but should still be patched.

  • Public exploit tooling exists. An exploit tool called PHP2Shell has been published.

    The NCSC (Netherlands) considers large-scale exploitation likely in the short term.

    Treat internet-facing PHP systems as actively at risk.

  • Third-party software bundles PHP. Many applications and appliances bundle their own PHP runtime.

    These will need vendor-specific updates.

    The NCSC (Netherlands) maintains an inventory of PHP-dependent software at github.com/NCSC-NL/php2shell.

  • CIQ Bridge / CentOS 7.9: Bridge ships PHP 5.4, which is not covered by any upstream fix branch.

    CIQ has backported the fix into the Bridge PHP package.

    Update with sudo yum update 'php*' and restart PHP services.

  • Session upload progress (CVE-2026-115560). PHP published an informational advisory on 2026-10-23 for an unlikely RCE vector in session upload progress.

    The issue needs an application that sets session.serialize_handler to php_binary or php_serialize and then switches it to php at runtime with ini_set() before calling session_start(), with session upload progress still enabled.

    PHP advises setting session.upload_progress.enabled=0 until the next regular bugfix release and will publish a full advisory with that release.

    Keep the setting in place after installing the packages listed under Patched Packages.