All articles

Security

PHP security patches are live: check your configuration and update

PHP’s security fixes are available. We explain the patched versions, options for older servers and temporary settings, with a clear distinction between a security warning and evidence of a breach.

The security updates are available

Following our earlier article, PHP has released fixes for CVE-2026-109618 and CVE-2026-109619. The fixed releases are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12, covering the four supported stable branches. Install the appropriate release or a vendor package explicitly confirmed to contain both fixes promptly.

A security announcement does not mean your website has been hacked or customer information has leaked. There is no reason to assume a breach simply because your website uses PHP. The practical response is to check your environment, apply the fixes and verify that they are running.

PHP.net · CVE-2026-109618 / CVE-2026-109619 Taffee Software · 2026-10-21

A longstanding problem, now better understood

These issues concern underlying memory handling. The PHP Foundation says the first signs of the out-of-memory problem were identified in 2024; researchers demonstrated practical attacks in 2026. At least part of the problem has therefore existed for years. That does not establish that every affected code path has existed forever, or that its age makes it harmless.

The PHP Foundation · 2026-10-21

Attack conditions matter; a login is not a guarantee

PHP’s advisories classify attack complexity as high. Reliability depends on the PHP build, extensions, memory layout and request handling. Some paths require particular application behaviour or successive requests reaching the same worker. Nevertheless, successful attacks have been demonstrated, including against Apache with mod_php using default PHP limits. Complexity is a reason to assess the actual setup carefully, not to assume protection.

PHP can process incoming request data before the application checks whether someone is logged in. An application login therefore does not automatically prevent these attacks. PHP identifies all installations serving web requests as potentially at risk, with the highest risk attributed to mod_php. Restrictions enforced before requests reach PHP can reduce exposure, but a login alone does not prove safety.

PHP · CVE-2026-109618 PHP · CVE-2026-109619 PHP.net · CVE-2026-109618 / CVE-2026-109619

Older servers need a specific update plan

CentOS Linux 8 reached end of life in December 2021, and CentOS Stream 8 in May 2024. Administrators should not expect current fixes from their original repositories. The available route depends on the package supplier, extended support arrangements and application compatibility.

PHP 8.1 and earlier are outside normal upstream support. Exceptionally, PHP has provided minimal source backports for 7.4, 8.0 and 8.1. These require building patched software or obtaining an appropriate vendor package; they do not restore general support. Ask your provider whether its package fixes both CVEs, and arrange migration where necessary. If updating cannot happen immediately, apply the temporary measures below while preparing the fix.

Remi’s repository provides a concrete example: its Enterprise Linux 8 package 7.4.33-31, dated 21 October 2026, lists changes for CVE-2026-109618 and CVE-2026-109619 in its changelog. The PHP version remains 7.4.33, while the package revision identifies the update. Check the full package version and the supplier’s changelog, rather than relying on the PHP version alone. Availability depends on the operating system and repository; updating PHP does not restore support for an end-of-life operating system.

CentOS Linux / CentOS Stream PHP.net · CVE-2026-109618 / CVE-2026-109619 Remi · Enterprise Linux 8 · PHP 7.4.33-31 · 2026-10-21

Temporary measures: memory and incoming requests

For unpatched systems, PHP recommends setting and enforcing memory_limit=-1 administratively, for example through php_admin_value in the FPM pool or Apache configuration. Ensure no pool, directory or application restores a finite limit. This removes one predictable trigger, but an underlying allocation failure can still reach the vulnerable path. The setting removes PHP’s own memory cap and needs suitable resource controls and monitoring.

PHP recommends post_max_size=8M where file uploads are unnecessary, or 32M where they are needed, with upload_max_filesize below post_max_size. Web-server or proxy limits should also bound decoded request size, input field count, multipart part count, headers and nesting depth, including requests without a usable Content-Length. Check that these limits fit the application’s required uploads.

Use container or cgroup limits as an availability boundary, preferably isolating the affected worker. Do not substitute RLIMIT_AS or RLIMIT_DATA: those can cause the vulnerable allocation failure. These controls reduce risk while awaiting the patch; they do not fix the vulnerability.

memory_limit = -1

PHP.net · CVE-2026-109618 / CVE-2026-109619 PHP · CVE-2026-109618

Temporary measures: sessions and error handling

Set session.upload_progress.enabled=0 in php.ini, an FPM pool or server configuration applied before request parsing, then restart every worker. Do not rely on application-level ini_set() or FPM .user.ini. This blocks the confirmed session paths, not every variant. It disables session upload-progress tracking, not file uploads themselves; dependent progress indicators may stop working.

On PHP 8.5, also set fatal_error_backtraces=0 and restart every worker. This blocks the confirmed fatal-backtrace path only.

Remove invalid or deprecated per-request settings that emit diagnostics before initialization. Fix attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing and cleanup. Hiding messages with error_reporting, display_errors or @ does not resolve the underlying problem. Quiet logs alone are not proof of safety.

session.upload_progress.enabled = 0

PHP.net · CVE-2026-109618 / CVE-2026-109619 PHP · CVE-2026-109619

Get reassurance from a verified configuration

These precautions reduce specific attack paths. Installing the complete fixes remains essential. Restart the relevant services or workers after updating and verify the version or vendor patch status and effective settings of every PHP service serving your websites. A command-line check alone does not prove the website uses the same PHP installation. Test important application functions after the changes.

For business owners, the next step is straightforward: ask your hosting provider to confirm whether both fixes are installed and running, and what measures cover systems still awaiting updates. A clear answer about your own environment provides more reassurance than an alarming headline or a blanket promise of safety.

PHP.net · CVE-2026-109618 / CVE-2026-109619 Taffee Software · 2026-10-21

← All articles