Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Critical · 9.2 PHP NCSC-2026-0443 CVE-2026-109618 VU#763488 GHSA-w8hw-w9fx-j79w Actively exploited

Two Critical PHP Vulnerabilities Enable Unauthenticated Remote Code Execution

Two related memory-corruption vulnerabilities in PHP (CVE-2026-109618 and CVE-2026-109619) allow unauthenticated remote code execution against common SAPIs such as Apache mod_php and FPM. Both are listed as known exploited and are fixed in updated PHP releases.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

Two closely related vulnerabilities have been disclosed in PHP that both stem from memory being reused or accessed in an invalid state after a request has ended. CVE-2026-109618 involves out-of-memory (OOM) handling that can leave request memory in an invalid state before it is read during shutdown. CVE-2026-109619 involves global state (such as error, session, object or extension state) that can survive past the end of a request and be consumed by a later request handled by the same worker. Both have been confirmed to allow unauthenticated remote code execution and are listed as known exploited. Fixed PHP releases are available.

What happened

PHP has disclosed two vulnerabilities affecting its memory and request-lifecycle handling. CVE-2026-109618 concerns PHP's use of longjmp() to abort request handling on out-of-memory conditions; in some contexts request memory is reachable before it is fully initialized, and an out-of-memory event at that point can leave it in an invalid state that is later read or branched on during request shutdown. CVE-2026-109619 concerns global state (error, session, object and extension state) that is retained by a persistent worker process but points to memory owned by a specific request. If that state is not properly reset before the request memory is freed, a later request handled by the same worker can access the stale, freed memory. Both vulnerabilities are classified as use-after-free (CWE-416) and have been confirmed to permit unauthenticated remote code execution as the web worker account.

Technical cause

For CVE-2026-109618, several multipart request parsing patterns can drive PHP to an out-of-memory condition while staying within configured post_max_size and memory_limit values: content lacking a usable declared length, unbounded headers within a multipart part consuming disproportionate memory, and empty file upload fields with nested names multiplying array work. When out-of-memory is reached while request memory is still being initialized, PHP's longjmp()-based abort does not correctly account for this, leaving invalid state that is later processed during shutdown. The fix replaces this abrupt longjmp() exit with a delayed, graceful soft-OOM mechanism triggered at a safe point, plus an immediate hard-OOM using _exit() if a second, higher memory threshold is reached. For CVE-2026-109619, certain PHP operations (described as 'producers') store request-owned state in globally accessible locations. If a fatal error (including one caused by memory exhaustion), a maximum-execution-time abort, or even a late nonfatal diagnostic interrupts normal cleanup, that state is not reset. PHP then frees the request's memory heap while persistent worker-level global variables still reference it. A subsequent request handled by the same worker can then trigger a 'consumer' operation, such as certain INI diagnostics evaluated before request initialization, or session upload progress handling, that reads or acts on this stale, freed memory. A confirmed case involves PHP 8.5's fatal_error_backtraces feature, and a separate confirmed case involves the session upload progress lifecycle.

Why it matters

Both vulnerabilities permit unauthenticated remote code execution over HTTP with no user interaction required, running with the privileges of the web worker account. Complete, working remote code execution has been demonstrated against Apache mod_php under default PHP input and memory limits using normal prefork configurations with multiple workers; additional workers and unrelated traffic increase the number of attempts needed but do not prevent exploitation. For CVE-2026-109619, the session lifecycle case has also been validated against FPM with a normal dynamic pool. Both vulnerabilities are listed as known exploited.

Who is affected

Any PHP installation running an affected version is potentially vulnerable, particularly those running Apache mod_php, where both vulnerabilities have confirmed, application-independent exploitation paths. PHP-FPM is also described as susceptible: for CVE-2026-109618 this is based on source analysis without a complete demonstrated exploit for that SAPI, while for CVE-2026-109619 the session upload progress path has been validated against FPM with a normal dynamic pool. FrankenPHP is assessed as likely susceptible to CVE-2026-109618 based on source analysis, as it calls the request shutdown procedure unconditionally similar to mod_php; an equivalent default-configuration consumer path for CVE-2026-109619 was not established for FrankenPHP, though this does not rule out other exposure. LSAPI is treated as a conditional candidate for both, with application-specific exploitation considered likely but unvalidated.

Affected versions

According to the PHP vendor advisories, CVE-2026-109618 affects PHP versions from 8.2.0 up to (not including) 8.2.35, from 8.3.0 up to (not including) 8.3.36, from 8.4.0 up to (not including) 8.4.27, and from 8.5.0 up to (not including) 8.5.12. A separate database entry describes the affected range for this same issue as starting from version 7.3.0. CVE-2026-109619 affects the same four branch ranges: from 8.2.0 up to (not including) 8.2.35, from 8.3.0 up to (not including) 8.3.36, from 8.4.0 up to (not including) 8.4.27, and from 8.5.0 up to (not including) 8.5.12; a separate database entry describes the affected range for this issue as starting from version 5.4.0. This earlier starting point is noted here for completeness; it has not been independently confirmed against the vendor's own stated introduction point of 8.2.0, and readers should treat the lower bound of the affected range with some caution.

Fixes and mitigation

Updated PHP releases are available that fix both vulnerabilities: version 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Updating to a release containing these fixes is described as the only complete mitigation for either vulnerability. For CVE-2026-109618, if updating is not immediately possible, administratively setting and enforcing memory_limit=-1 (and restarting every PHP worker, confirming no pool, directory or application setting restores a finite limit) removes the predictable per-request limit that enables the confirmed exploit, but this is not a complete mitigation, since allocation failures from mmap() or elsewhere can still trigger the vulnerable path. Keeping post_max_size conservative, independently enforcing decoded request size at the frontend, reducing max_input_nesting_level, and bounding input variables, multipart parts, headers and uploads reduce risk but do not replace updating. Do not use RLIMIT_AS or RLIMIT_DATA, as these can cause mmap() failures that trigger the vulnerable code path. For CVE-2026-109619, there is no complete generic configuration mitigation. On PHP 8.5 installations that cannot update immediately, administratively setting fatal_error_backtraces=0 and restarting every worker removes the producer used in the confirmed exploit case, but does not address other affected state. Setting session.upload_progress.enabled=0 administratively and restarting every worker prevents the demonstrated session-based producing and consuming operations; it is recommended to disable this setting if the feature is not needed, even after patching. Additional risk-reduction steps include eliminating fatal errors and diagnostics on attacker-reachable paths (uploads, imports, error pages, shutdown, destructors, serialization, output handlers, plugins, extensions), preferring startup-time configuration over per-request overrides, and considering pm.max_requests=1 where performance allows. A thorough logging and configuration audit is recommended, though absence of errors in logs does not prove safety.

Recommended action

Update affected PHP installations to version 8.2.35, 8.3.36, 8.4.27, or 8.5.12 as applicable, and restart all PHP workers after updating. Treat this as urgent given the confirmed unauthenticated remote code execution and known exploitation status. Where immediate updating is not possible, apply the configuration mitigations described for each vulnerability as interim risk reduction, understanding that none of them are complete substitutes for the update. After updating, also review and tighten multipart and INI configuration settings as described, and consider disabling session.upload_progress if it is not required.

PatchBriefing score

9.2 / 10 · Critical

Official CVSS: 9.2

CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS 0.4508 (99 percentile)

Listed in CISA KEV since October 25, 2026

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

PHP < 8.2.35
vulnerable
PHP < 8.3.36
vulnerable
PHP < 8.4.27
vulnerable
PHP < 8.5.12
vulnerable
PHP ≥ 7.3.0 < 8.2.35
vulnerable
PHP ≥ 8.3.0 < 8.3.36
vulnerable
PHP ≥ 8.4.0 < 8.4.27
vulnerable
PHP ≥ 8.5.0 < 8.5.12
vulnerable
≥ 8.2.35
patched
≥ 8.3.36
patched
≥ 8.4.27
patched
≥ 8.5.12
patched
PHP < 8.3.36
vulnerable
PHP < 8.4.27
vulnerable
PHP < 8.5.12
vulnerable
PHP < 8.2.35
vulnerable
PHP ≥ 5.4.0 < 8.2.35
vulnerable
PHP ≥ 8.3.0 < 8.3.36
vulnerable
PHP ≥ 8.4.0 < 8.4.27
vulnerable
PHP ≥ 8.5.0 < 8.5.12
vulnerable
≥ 8.2.35
patched
≥ 8.3.36
patched
≥ 8.4.27
patched
≥ 8.5.12
patched

Reported fixes

Updated PHP releases are available that fix both vulnerabilities: version 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Updating to a release containing these fixes is described as the only complete mitigation for either vulnerability. For CVE-2026-109618, if updating is not immediately possible, administratively setting and enforcing memory_limit=-1 (and restarting every PHP worker, confirming no pool, directory or application setting restores a finite limit) removes the predictable per-request limit that enables the confirmed exploit, but this is not a complete mitigation, since allocation failures from mmap() or elsewhere can still trigger the vulnerable path. Keeping post_max_size conservative, independently enforcing decoded request size at the frontend, reducing max_input_nesting_level, and bounding input variables, multipart parts, headers and uploads reduce risk but do not replace updating. Do not use RLIMIT_AS or RLIMIT_DATA, as these can cause mmap() failures that trigger the vulnerable code path. For CVE-2026-109619, there is no complete generic configuration mitigation. On PHP 8.5 installations that cannot update immediately, administratively setting fatal_error_backtraces=0 and restarting every worker removes the producer used in the confirmed exploit case, but does not address other affected state. Setting session.upload_progress.enabled=0 administratively and restarting every worker prevents the demonstrated session-based producing and consuming operations; it is recommended to disable this setting if the feature is not needed, even after patching. Additional risk-reduction steps include eliminating fatal errors and diagnostics on attacker-reachable paths (uploads, imports, error pages, shutdown, destructors, serialization, output handlers, plugins, extensions), preferring startup-time configuration over per-request overrides, and considering pm.max_requests=1 where performance allows. A thorough logging and configuration audit is recommended, though absence of errors in logs does not prove safety.

How this was built

8 source records were collected, matched and used to prepare the report above.

  • NCSC-NL advisories cert
  • NVD (NIST) database
  • NVD (NIST) database
  • CERT/CC Vulnerability Notes cert
  • PHP Security Advisories (php-src) vendor
  • PHP Security Advisories (php-src) vendor
Unified report
Two Critical PHP Vulnerabilities Enable Unauthenticated Remote Code Execution
1 article · 8 sources cited
Revision history
  1. Published
  2. Generated
  3. Published
  4. Generated
  5. Published
  6. Generated
  7. Published
  8. Generated
  9. Published
  10. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email