——
CriticalVULNERABILITIES

Patch PHP Now: Two Critical RCE Flaws Affect Web-Facing Deployments

CVE-2026-109618 and CVE-2026-109619 can enable unauthenticated remote code execution. What is affected, what to patch, and how to reduce exposure while updates roll out.

CVE-2026-109618 and CVE-2026-109619 can enable unauthenticated remote code execution. What is affected, what to patch, and how to reduce exposure while updates roll out.

PHPRCECVE-2026-109618CVE-2026-109619Web security

Severity: Critical (CVSS 9.2)
Affected: PHP installations serving web requests
Action: Update immediately to a fixed build from your operating-system vendor or PHP upstream.

The PHP project has released emergency security updates for two critical vulnerabilities: CVE-2026-109618 and CVE-2026-109619. Both can enable unauthenticated remote code execution in PHP deployments that handle web requests.

This is an infrastructure issue, not an application-framework issue. A vulnerable PHP runtime may put a site at risk even when its application, plugins and dependencies are fully patched. Treat internet-facing PHP estates as a same-day patching priority.

The short version

Update supported PHP branches to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35.

Updating is the only complete remediation. PHP 8.1 and older no longer receive regular upstream releases; use a distribution or LTS-vendor security update where one exists, or move to a supported branch. The PHP project has provided limited source backports for 7.4, 8.0 and 8.1 for organisations that build PHP themselves.

What is affected?

The advisory covers PHP installations serving web traffic, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP identifies Apache mod_php as the highest-risk configuration because a demonstrated attack path can be reached before application code begins.

PHP-FPM is not a safe exception. The published technical advisory describes FPM as susceptible under relevant application and request-lifecycle conditions, and documents a validated RCE path. The practical lesson is simple: the PHP version served to the internet matters more than the framework name on the site.

The two flaws

CVE-2026-109618: request state after an out-of-memory failure

PHP can abort a request after an out-of-memory condition. In certain contexts this can happen while internal request data is only partially initialised; later cleanup may then treat invalid data as valid. PHP confirms RCE against Apache mod_php and describes other serving configurations as potentially affected.

This is not merely a stability issue. A request that reaches a problematic memory condition can become a path to code execution in the web-worker context.

CVE-2026-109619: stale request state crossing worker boundaries

PHP workers retain some global state between requests. If request-owned state is not reset before that request memory is released, a later request handled by the same worker can consume stale state before normal initialisation replaces it. The result can be a use-after-free leading to memory disclosure or RCE.

The advisory documents confirmed paths involving fatal-error handling and upload-progress processing. Worker recycling can reduce exploit reliability, but it does not fix the flaw.

Why this deserves same-day action

  1. No authentication is required for the confirmed attack class.
  2. The runtime is affected, so patching WordPress, Laravel, Magento or a plugin alone is not enough.
  3. Public-facing PHP is easy to miss across legacy virtual hosts, control panels, container images and secondary application nodes.

A WAF, CDN or reverse proxy may reduce exposure for particular request paths, but none corrects PHP's internal memory and lifecycle handling.

A practical response plan

1. Inventory every serving runtime

Inventory by runtime, not only by application. Include web servers, FPM pools, containers, CI images, control-panel nodes, staging systems and disaster-recovery environments. Record the active SAPI as well as the version: a command-line PHP version may not match the PHP runtime serving a site.

2. Patch, restart, verify

Apply the security update from the operating-system or managed-platform vendor where possible. For upstream binaries, move to a fixed release. Restart the relevant PHP workers, then verify that old workers are gone and that the production serving path reports the intended version.

For containers, rebuild from an updated base image, redeploy, and verify the running image digest. A successful build log is not proof that the deployed workload changed.

3. Find forgotten exposure

Prioritise Apache mod_php, shared hosting, legacy control panels, upload-heavy applications and long-lived FPM workers. Check reachable staging hosts and dormant subdomains as well as primary production sites.

If patching is temporarily impossible

Patching is the only complete fix. PHP has published temporary, path-specific measures, but explicitly warns that they do not make an installation safe.

For CVE-2026-109618, PHP recommends administratively enforcing an unlimited PHP memory limit while using web-server or proxy controls to constrain request size and multipart complexity. That can remove a predictable trigger, but an underlying allocation failure can still reach the vulnerable path.

For CVE-2026-109619, disabling session upload progress and restarting every worker blocks the confirmed upload-progress path. PHP 8.5 users can also disable fatal-error backtraces as a targeted temporary measure. Neither control covers every application, extension or lifecycle path.

Do not improvise process memory limits that make allocation failures more likely. The PHP advisory specifically cautions against using RLIMIT_AS or RLIMIT_DATA as mitigation.

Detection and follow-up

There is no single log signature that proves an installation was or was not targeted. Review web-server, PHP and application logs for unusual request failures, repeated fatal errors, upload anomalies, unexpected worker restarts and unexplained changes under web-worker accounts. Preserve relevant evidence before rotation.

If a vulnerable internet-facing server shows indicators of compromise, treat it as an incident: isolate it where appropriate, retain evidence, rotate secrets accessible to the web worker, and rebuild or restore from known-good state under the incident-response process.

The decision

Do not wait for the next routine maintenance window. Identify internet-facing PHP, apply the fixed vendor build, restart serving workers and verify the live runtime today. Then remove end-of-life PHP branches and make runtime inventory a normal part of vulnerability management.

Sources

Last verified: 21 October 2026. Follow your platform vendor for package-specific instructions.