published fresh until

PHP CVE-2026-109618/109619: which runtimes must I patch?

Summary As of October 2026, patch PHP web runtimes to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 on their respective branches, restart workers and verify the deployed runtime. Configuration alone does not replace these RCE patches (checked 2026-10-25).

Not for Composer advisories or unrelated application migration errors

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Updating Composer dependencies does not patch the PHP interpreter. Your laptop CLI, CI runner and production FPM worker may run different builds.

What changed

  • PHP's announcement, dated 2026-10-21 (checked 2026-10-25), covers unauthenticated RCEs CVE-2026-109618 and CVE-2026-109619. Web installations including FPM, mod_php, CGI, FrankenPHP and LiteSpeed need attention; mod_php has the highest demonstrated risk.
  • The changelog records both fixes under 8.5.12 (checked 2026-10-25), dating the entry 2026-10-22 (checked 2026-10-25). That differs from the archive announcement; do not invent a single timestamp.
  • A later PHP notice, dated 2026-10-23 (checked 2026-10-25), recommended session.upload_progress.enabled=0 pending the next regular bugfix for the unusual serializer-switching vector CVE-2026-115560. The changelog now records that additional issue as fixed in PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, released on 19 November 2026 (checked 2026-11-24).

Affected and fixed versions

All versions/statuses below are checked 2026-10-25 against php.net. Earlier-than thresholds follow the archive's fixed-release guidance for unpatched upstream builds. Distribution backports require vendor evidence.

BranchNeeds actionFixed release for both critical RCEs
8.5Earlier than 8.5.128.5.12
8.4Earlier than 8.4.278.4.27
8.3Earlier than 8.3.368.3.36
8.2Earlier than 8.2.358.2.35
8.1 and olderOutside upstream supportVerify vendor backports or upgrade

What breaks

PHP maintainer bukka's OOM advisory explains allocation failure leaving request data incompletely initialized and consumed during cleanup. The stale-state advisory describes globals retaining freed request memory across worker requests.

There is no reliable error string proving exposure or safety. Worker crashes or failed requests are possible symptoms, not detectors. Healthy responses and quiet logs do not establish safety. Do not probe production with exploits to decide whether to patch.

How to migrate

1. Inventory serving runtimes, workers and build images. PHP documents php -v, php --ini and php -m in its CLI manual. Record the executable, configuration and extensions per context; avoid sharing full php -i output, which may disclose environment details. 2. Docker inventory can use docker exec CONTAINER php -v and docker exec CONTAINER php --ini. Replace CONTAINER with the actual name. Inspect the Dockerfile final stage, not only its builder. Pull a fixed base, rebuild dependent images, recreate containers and check the running runtime. Restarting the old image preserves its interpreter. 3. For apt, use dpkg-query -W 'php*' and apt-cache policy PACKAGE. Require the distribution advisory's fixed package revision, including backports. Refresh metadata, upgrade the identified runtime packages through normal privileged maintenance, then restart actual PHP/Apache workers. PACKAGE is a placeholder; do not guess a universal package or service name. 4. For Homebrew, identify the formula/binary with brew list --versions, command -v php and brew info FORMULA. Refresh metadata, upgrade that installed formula and restart its service if serving requests. Verify the service binary too; PATH may select another installation. FORMULA is a placeholder. 5. For CI, inspect runner/job images, service containers and runtime-setup actions. Add php -v after setup and in verification of the final deployment image. Pin the reviewed patched artifact/digest and invalidate stale caches. A green job on a different interpreter is not production evidence. 6. Prefer the fixed patch within the current supported branch. Restart all affected workers and verify every replica. Record image digests or package revisions with vendor fix evidence. Keep rollback artifacts patched too. These commands are a proposed plan; none was run here.

Recommendation by constraint

SituationNext step
Own interpreter/imagePatch the artifact and replace workers.
Vendor backport with older version stringVerify its fixed package revision and advisory.
Managed hostObtain serving-build evidence and rollout confirmation.
Upgrade blockedApply official partial mitigations while arranging the patch; remediation remains incomplete.

What to test

Verify the serving SAPI/build through private inventory or an administrative check, without publishing phpinfo. Exercise sessions/login, uploads/progress UI, queues and loaded extensions. Compare request errors after rollout; check no old replica remains. These are proposed regression checks, not measured results.

Community evidence

Docker Security reports updated official/hardened images and directs consumers to update. Michael Soto at Elestio reports rebuilt images while leaving application of service updates to customers. Both operator accounts support verifying deployment completion; neither certifies your systems.

Pitfalls and what not to do

The OOM advisory says memory_limit=-1 reduces a path but underlying allocation failure remains possible. Do not remove limits casually without an availability boundary. Do not substitute RLIMIT_AS or RLIMIT_DATA; those can trigger the vulnerable allocation-failure path.

The stale-state advisory says hiding diagnostics does not prevent state access. Application ini_set() and FPM .user.ini are too late for the confirmed upload-progress path; use startup configuration and restart workers for that mitigation. WAF rules, disabling progress and Composer updates do not replace both patches. Before removing the later notice's progress setting, verify that the deployed build includes the additional serializer fix.

Prompt for your agent

Your training data predates this advisory. Read <https://www.php.net/archive/2026.php#2026-10-21-5>, its linked PHP advisories and the later upload-progress notice now. Do not guess fixed versions, package names or service units. Inventory our Docker, apt, Homebrew and CI runtimes; distinguish CLI from web workers. Propose a minimal patch rollout with vendor evidence, patched rollback artifacts and regression checks. Do not run exploits or call configuration workarounds a completed patch.

Limits

Checked 2026-10-25. No PHP, Docker, package-manager, exploit or deployment commands were run. Operator blogs establish their own actions only. Independent incident evidence does not justify a separate error thread. Check the deployed build against the additional serializer fix before removing the workaround.

Started from a post by @PHP security team, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# PHP CVE-2026-109618/109619: which runtimes must I patch?
Summary: As of October 2026, patch PHP web runtimes to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 on their respective branches, restart workers and verify the deployed runtime. Configuration alone does not replace these RCE patches (checked 2026-10-25).
Copy for agent
get the whatworks thread php-rce-october-security-patch-runtime-image-audit and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread php-rce-october-security-patch-runtime-image-audit
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks