· adswds-team · Security · 3 min read
The next request on the same worker: PHP CVE-2026-109619
PHP’s second critical issue on 21 Oct 2026, CVE-2026-109619 (CVSS 4.0 9.2): request memory is freed while the worker still holds global state. Session upload-progress RCE is validated on mod_php and FPM.

The PHP advisory (21 Oct 2026) pairs CVE-2026-109619 with the out-of-memory bug: request-owned internal state can survive after its memory is freed, and a later request on the same worker can use it before normal initialization resets it. GHSA-6wmf-4rv5-p3rp calls the confirmed impact unauthenticated heap use-after-free, memory disclosure, and RCE as the web worker. Severity is Critical, CVSS 4.0 9.2.
In one line: the FPM child does not forget the previous request, and this time the reset was skipped.
memory_limit=-1 from CVE-2026-109618 does not close the session path described here.
What the advisory confirms
| Item | Detail |
|---|---|
| IDs | CVE-2026-109619 / GHSA-6wmf-4rv5-p3rp |
| Affected / fixed | Before / at 8.2.35, 8.3.36, 8.4.27, 8.5.12 |
| Shape | A producer publishes request-owned state into worker globals; a consumer reads it before the next normal initialization |
| Same worker | More workers and recycling lower the chance per request; they do not remove the condition |
| PHP 8.5 | With fatal_error_backtraces enabled, backtrace state is always missed during shutdown. This is the basis of the confirmed mod_php RCE |
| Upload progress | On by default, with no session_start() required. RCE on this path is validated on mod_php and FPM |
| Other state | Error, exception, object, and extension state depend on the app and extensions. The patch resets that wider set anyway |
Fatal errors (parse/compile failure, uncaught errors, failed require, Maximum execution time exceeded) and OOM can abandon a producer before its reset. A non-fatal diagnostic can also refill error state late in shutdown. Changing error_reporting, using @, or disabling display_errors / log_errors does not stop the pre-initialization read.
On FPM, pool values and .user.ini are not this early consumer. PHP_VALUE / PHP_ADMIN_VALUE from nginx or Apache mod_proxy_fcgi can expose the INI-diagnostic path if they emit a diagnostic before initialization. The validated FPM session path is different: state is published during application execution after a successful startup, a fatal error hits, and a later upload-progress operation consumes it.
Fixes that are not the fix
The complete fix is a release that contains the state-reset patch. PHP 8.1 and older are outside routine updates; minimal source backports exist for 7.4 / 8.0 / 8.1. PHP 8.2 stops receiving security fixes on 31 Dec 2026. rpms.remirepo.net had no packages on announcement day.
Partial steps if you cannot upgrade yet:
- Set
session.upload_progress.enabled=0inphp.ini, the FPM pool, or server config that applies before request parsing, then restart every worker. Do not rely onini_set()or.user.ini. This blocks the confirmed session path only. - On PHP 8.5 only:
fatal_error_backtraces=0and restart workers. - Remove invalid or deprecated per-request settings that warn before initialization. Hiding the diagnostic does not help. The advisory lists examples (
assert.*, legacy session settings,auto_detect_line_endings, and others). -
pm.max_requests=1reduces cross-request survival when performance allows. It is not a general fix. - During an audit, enable
log_errors, a workingerror_log, andE_ALL. A quiet log is not proof of safety. - Handle CVE-2026-109618 at the same time.
Why FPM landing hosts should care
On nginx → PHP-FPM, this is the issue with a validated RCE on a normal dynamic pool, via session upload progress. Forms, creative uploads, and callbacks that hit the same worker sit inside the condition the advisory describes. A fatal interruption is still required, so this is not “any GET works,” and it is also not limited to apps that call session_start().
Visitor filters do not see leftover state inside the worker. Move to 8.3.36 (or the fixed build on your branch), then check session.upload_progress.
Summary
CVE-2026-109619 is stale global state across a request boundary. The PHP 8.5 fatal-backtrace path is confirmed against mod_php; the upload-progress path is confirmed against mod_php and FPM. Fixed versions match the other 21 Oct RCE. Mitigations are path-specific.
Sources: PHP advisory, GHSA-6wmf-4rv5-p3rp, NCSC.



