{"vuln_id":"GHSA-w8hw-w9fx-j79w","aliases":["CVE-2026-109618","CVE-2026-109619","GHSA-6wmf-4rv5-p3rp"],"description":"RCE via OOM corruption","published_at":"2026-10-21T13:34:25Z","modified_at":"2026-11-03T22:10:29Z","first_seen_at":"2026-11-21T19:15:05.284235Z","severity":"critical","severity_source":"ghsa","cvss_score":9.2,"cvss_vector":"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","cwe":["CWE-416","CWE-755","CWE-824","CWE-1325","CWE-1419"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-w8hw-w9fx-j79w"},"matched_alias":null,"items":[{"id":260,"source":{"id":"cisco","name":"Cisco PSIRT"},"title":"Vulnerabilities in PHP Affecting Cisco Products: October 2026","summary":"On October 21, the PHP Foundation announced the availability of a Critical PHP Security release addressing two critical vulnerabilities:\n\nCVE-2026-109618 - RCE via OOM corruption\n\nCVE-2026-109619 - RCE via stale global state\n\nFor information about these vulnerabilities, see the advisories\nGHSA-w8hw-w9fx-j79w\nand\nGHSA-6wmf-4rv5-p3rp\n. These vulnerabilities are being referenced as PHP2shell.\n\nFor information about Splunk products and offerings, see\nVulnerabilities in PHP (CVE-2026-109618, CVE-2026-109619) on Splunk Products - October 2026\n.\n\nImportant:\nIf a product is not listed within this advisory, Cisco's review indicates that the product is not affected by this vulnerability.\n\nThis advisory will be updated as additional information becomes available.\n\nThis advisory is available at the following link:\nhttps://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-php-october26-Jj384Daq\n\nSecurity Impact Rating: Critical\n\nCVE: CVE-2026-109618,CVE-2026-109619","url":"https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-php-october26-Jj384Daq","published_at":"2026-11-06T14:21:13Z","updated_at":"2026-11-06T14:21:13Z","fetched_at":"2026-11-21T19:15:05.129000Z","severity":"critical","cvss_score":9.2,"epss":0.99999,"is_kev":true,"has_exploit":true,"kev_due_date":"2026-10-29","vendor":"cisco","product":"PHP","vuln_id":"CVE-2026-109618","vuln_ids":["CVE-2026-109618","CVE-2026-109619","GHSA-6WMF-4RV5-P3RP","GHSA-W8HW-W9FX-J79W"],"tags":[],"cluster_id":39,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/260","html":"https://vulnwatch.ve1ve2.com/item/260"}},{"id":3934,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-109618: PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for thi…","summary":"PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).\n\nReferences:\nhttps://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w\nhttp://seclists.org/fulldisclosure/2026/Oct/51\nhttp://www.openwall.com/lists/oss-security/2026/10/21/6\nhttp://www.openwall.com/lists/oss-security/2026/10/23/5\nhttps://github.com/rapid7/metasploit-framework/pull/22139\nhttps://arcticwolf.com/resources/blog/php2shell-critical-php-vulnerabilities-enable-unauthenticated-remote-code-execution/\nhttps://cert-portal.siemens.com/productcert/html/ssa-166980.html\nhttps://cert-portal.siemens.com/productcert/html/ssa-566435.html\nhttps://cert-portal.siemens.com/productcert/html/ssa-566512.html\nhttps://php2shell.delftintellab.com","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-109618","published_at":"2026-10-21T14:17:09.357000Z","updated_at":"2026-11-20T12:18:18.987000Z","fetched_at":"2026-11-21T19:15:31.479425Z","severity":"critical","cvss_score":9.2,"epss":0.99999,"is_kev":true,"has_exploit":true,"kev_due_date":"2026-10-29","vendor":"php","product":"PHP","vuln_id":"CVE-2026-109618","vuln_ids":["CVE-2026-109618","CVE-2026-109619","GHSA-6WMF-4RV5-P3RP","GHSA-W8HW-W9FX-J79W"],"tags":["CWE-416","CWE-755","CWE-824","CWE-1325"],"cluster_id":39,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3934","html":"https://vulnwatch.ve1ve2.com/item/3934"}},{"id":640,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-w8hw-w9fx-j79w / CVE-2026-109618: RCE via OOM corruption","summary":"RCE via OOM corruption\n\n## Summary\r\n\r\nPHP uses `longjmp()` for out-of-memory (OOM) errors to exit the current context and abort handling of the request. In some contexts, request memory is temporarily reachable before it is fully initialized. If any allocation fails at that point, PHP does not properly account for the early exit and leaves the request memory in an invalid state. The failed allocation does not need to be related to the invalid memory. The request shutdown procedure may then read or branch on it. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).\r\n\r\n## Vulnerability\r\n\r\n### OOM strategies\r\n\r\nSeveral multipart parsing problems can let a request reach OOM while remaining within its apparent PHP limits:\r\n\r\n- A multipart request without a usable declared content length may pass the initial `post_max_size` check and continue supplying decoded body data.\r\n- A multipart part can contain an unrestricted number of headers. Representing these headers inside PHP can use substantially more memory than their wire representation, allowing a request within `post_max_size` to exhaust the normal `memory_limit`.\r\n- Empty file controls do not count towards `max_file_uploads` but still create the normal file metadata arrays. Nested field names multiply the generated array work.\r\n\r\nOOM can also be reached in application-specific ways when attacker-controlled input causes a sufficiently large allocation or repeated memory use.\r\n\r\n### Susceptibility\r\n\r\nApache mod_php unconditionally invokes the request shutdown procedure, even when request startup has failed. During request startup, automatic body parsing can exhaust the configured memory limit and exit the request in a context where state is temporarily invalid. Shutdown then processes this invalid state. This happens entirely before any application-specific code begins execution.\r\n\r\nFPM exits the child when request startup fails. This prevents consumption of the invalid state and removes the child from the pool. After normal startup, OOM may still be reached in a context failing to account for an early exit, with the invalid state being processed during request shutdown. Source analysis therefore supports FPM as susceptible, though no complete FPM exploit has been demonstrated for this SAPI.\r\n\r\nSource analysis indicates that FrankenPHP, analogous to Apache mod_php, calls the request shutdown procedure unconditionally, making it likely susceptible to application-independent attacks. LSAPI models FPM, with application-specific exploits being likely but unvalidated.\r\n\r\n## Mitigation\r\n\r\nThe patch removes `longjmp()` for OOM, avoiding an early exit out of contexts that do not properly account for it. It is replaced with a delayed, graceful soft OOM triggered at the next VM safe point, and an immediate hard OOM using `_exit()` if memory consumption reaches a second, higher threshold. The shutdown procedure will no longer see invalid state, and PHP's normal ability to limit memory\n\nAffected packages: php:php-src\nPatched: php-src 8.2.35, php-src 8.3.36, php-src 8.4.27, php-src 8.5.12","url":"https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w","published_at":"2026-10-21T13:34:25Z","updated_at":"2026-11-03T22:10:29Z","fetched_at":"2026-11-21T19:15:07.553376Z","severity":"critical","cvss_score":9.2,"epss":0.99999,"is_kev":true,"has_exploit":true,"kev_due_date":"2026-10-29","vendor":"php","product":"php-src","vuln_id":"CVE-2026-109618","vuln_ids":["CVE-2026-109618","CVE-2026-109619","GHSA-6WMF-4RV5-P3RP","GHSA-W8HW-W9FX-J79W"],"tags":["repo-advisory","php","CWE-416","CWE-755","CWE-824","CWE-1325","CWE-1419","security","repo:php/php-src"],"cluster_id":108,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/640","html":"https://vulnwatch.ve1ve2.com/item/640"}},{"id":12434,"source":{"id":"php-releases","name":"PHP releases (all active branches, php.net)"},"title":"[SECURITY RELEASE] PHP 8.4.27","summary":"Fixes: GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp\n\n>\n\nVersion 8.4.27\n\n22 Oct 2026\n\nCore:\n\nFixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via bailout).\n\nFix GH-21999: GC inconsistency with lazy object, var_dump(), and object comparison.\n\nFixed OSS-Fuzz #536440507 (Immutable class incorrect assertion).\n\nFixed AVX being reported as supported when the OS has not enabled AVX state.\n\nFixed GH-23980 (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL).\n\nFixed bug GH-23896 (Assertion failure in zend_call_function() after a throwing deprecation).\n\nFixed use-after-free when a dl()-loaded extension declares a frameless function and a later request calls it.\n\nFixed System V shared memory emulation for Windows attaching segments past the end of their mapping.\n\nFixed bug GH-24050 (GC frees an object still held by a resurrected closure when (object) and use share an array).\n\nFixed exception thrown by destructor during GC in a Fiber not being rethrown into the frame that triggered the GC.\n\nBCMath:\n\nFixed BcMath\\Number results that truncate to zero keeping a negative sign and comparing less than zero.\n\nBZ2:\n\nFixed double close of the descriptor and use-after-free of the inner stream when bzopen() is given a stream resource.\n\nCLI:\n\nFix GH-22567 (Windows ZTS CLI SAPI should refresh its TSRMLS cache during request activation).\n\nFixed bug GH-23764 (Built-in server leaks a file descriptor on every HEAD request for a static file).\n\nFixed crash in the built-in server when a client is reset before being accepted.\n\nFixed the built-in server truncating an error page and leaking its unsent part after a partial socket write.\n\nDOM:\n\nFixed use-after-free when re-constructing a DOMXPath whose php:function registrations are freed while still reachable from the cycle collector.\n\nFixed bug GH-23365 (DOMNode::insertBefore($n, $n) drops the node and leaves a self-referencing sibling list).\n\nFixed Dom\\HTMLDocument::getElementById() not finding ids of SVG and MathML elements.\n\nFixed Dom\\HTMLDocument giving attributes the namespace of their element when a fragment is parsed with an xlink, xml or xmlns context element.\n\nFixed bug GH-23729 (DOMXPath::__construct() use-after-free during an evaluation).\n\nFixed bug GH-23897 (php:function() assertion failure after a failed registerPHPFunctions()).\n\nFixed DOMXPath and Dom\\XPath losing the context node and in-scope namespaces of an evaluation after a php:function() callback evaluated another expression on the same object.\n\nFFI:\n\nFixed crashes with FFI callbacks created from __call() trampolines and array callables whose object is released.\n\nFTP:\n\nFixed bug GH-23619 (cryptic error on servers that don't support TLS session resumption on data connection).\n\nGD:\n\nFixed undefined behavior with GD2 images with `INT_MAX`-sized chunks.\n\nFixed undefined behavior with GIFs with problematic LZW compression data.\n\nIntl:\n\nFixed IntlDateFormatter::parse(), localtime() and parseToCalendar() treating the offset as UTF-16 code units instead of bytes.\n\nFixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern.\n\nFixed Collator attribute and strength methods not rejecting an unconstructed Collator.\n\nFixed grapheme_strstr() and grapheme_stristr() returning incorrect substrings when supplementary characters precede the match.\n\nFixed grapheme_strstr() and grapheme_strpos() missing canonically equivalent matches, and grapheme searches reporting ICU errors for empty haystacks.\n\nFixed grapheme_strrpos() and grapheme_strripos() skipping overlapping matches when using a negative offset.\n\nLexbor:\n\nMerge patches lexbor/lexbor@8a14bc0 and lexbor/lexbor@f67ce4b, fixing a heap buffer overflow in :lexbor-contains() parsing and buffer overflows in malformed decode replay.\n\nMBString:\n\nFixed bug GH-23106 (mb_strpos() reads past the end of a haystack ending in a truncated UTF-8 sequence).\n\nFixed mbstring functions emitting surrogates in UTF-8 output and flagging it as valid UTF-8.\n\nMySQLi:\n\nFix GH-22854: Fixed failed ","url":"https://php.net/releases/8_4_27.php","published_at":"2026-10-21T00:00:00Z","updated_at":null,"fetched_at":"2026-11-22T13:46:14.266718Z","severity":"critical","cvss_score":9.2,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php","vuln_id":"CVE-2026-109618","vuln_ids":["CVE-2026-109618","CVE-2026-109619","GHSA-6WMF-4RV5-P3RP","GHSA-W8HW-W9FX-J79W"],"tags":["release","php-branch:8.4","security","stack"],"cluster_id":108,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12434","html":"https://vulnwatch.ve1ve2.com/item/12434"}},{"id":12431,"source":{"id":"php-releases","name":"PHP releases (all active branches, php.net)"},"title":"[SECURITY RELEASE] PHP 8.5.12","summary":"Fixes: GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp\n\n>\n\nVersion 8.5.12\n\n22 Oct 2026\n\nCore:\n\nFixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via bailout).\n\nFixed bug GH-23644 (Optimizer leaves a constant-vs-constant comparison unfolded, crashing the VM in zval_undefined_cv).\n\nFixed OSS-Fuzz 532353396 (assertion failure with static type).\n\nFix GH-23662 (Avoid NAN warning in print_r()).\n\nFix GH-21999: GC inconsistency with lazy object, var_dump(), and object comparison.\n\nFixed OSS-Fuzz #536440507 (Immutable class incorrect assertion).\n\nFixed AVX being reported as supported when the OS has not enabled AVX state.\n\nFixed GH-23980 (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL).\n\nFixed use-after-free when a dl()-loaded extension declares a frameless function and a later request calls it.\n\nFixed System V shared memory emulation for Windows attaching segments past the end of their mapping.\n\nFixed exception thrown by destructor during GC in a Fiber not being rethrown into the frame that triggered the GC.\n\nBCMath:\n\nFixed BcMath\\Number results that truncate to zero keeping a negative sign and comparing less than zero.\n\nBZ2:\n\nFixed double close of the descriptor and use-after-free of the inner stream when bzopen() is given a stream resource.\n\nCLI:\n\nFix GH-22567 (Windows ZTS CLI SAPI should refresh its TSRMLS cache during request activation).\n\nFixed bug GH-23764 (Built-in server leaks a file descriptor on every HEAD request for a static file).\n\nFixed crash in the built-in server when a client is reset before being accepted.\n\nFixed the built-in server truncating an error page and leaking its unsent part after a partial socket write.\n\nDOM:\n\nFixed use-after-free when re-constructing a DOMXPath whose php:function registrations are freed while still reachable from the cycle collector.\n\nFixed Dom\\HTMLDocument::getElementById() not finding ids of SVG and MathML elements.\n\nFixed Dom\\HTMLDocument giving attributes the namespace of their element when a fragment is parsed with an xlink, xml or xmlns context element.\n\nFixed bug GH-23887 (Dom\\HTMLCollection::namedItem() assertion failure, hang, or missed first element).\n\nFixed DOMXPath and Dom\\XPath losing the context node and in-scope namespaces of an evaluation after a php:function() callback evaluated another expression on the same object.\n\nFFI:\n\nFixed crashes with FFI callbacks created from __call() trampolines and array callables whose object is released.\n\nFTP:\n\nFixed bug GH-23619 (cryptic error on servers that don't support TLS session resumption on data connection).\n\nGD:\n\nFixed undefined behavior with GD2 images with `INT_MAX`-sized chunks.\n\nFixed undefined behavior with GIFs with problematic LZW compression data.\n\nIntl:\n\nFixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern.\n\nFixed a crash when converting with a cloned UConverter that uses toUCallback/fromUCallback.\n\nFixed Collator attribute and strength methods not rejecting an unconstructed Collator.\n\nFixed crash in intl_error_set_custom_msg() without an active call frame.\n\nFixed grapheme_strstr() and grapheme_stristr() returning incorrect substrings when supplementary characters precede the match.\n\nFixed grapheme_strstr() and grapheme_strpos() missing canonically equivalent matches, and grapheme searches reporting ICU errors for empty haystacks.\n\nFixed grapheme_strrpos() and grapheme_strripos() skipping overlapping matches when using a negative offset.\n\nFixed IntlDateFormatter::parse(), localtime() and parseToCalendar() treating the offset as UTF-16 code units instead of bytes.\n\nLexbor:\n\nMerge patches lexbor/lexbor@8a14bc0 and lexbor/lexbor@f67ce4b, fixing a heap buffer overflow in :lexbor-contains() parsing and buffer overflows in malformed decode replay.\n\nMerge patches lexbor/lexbor@859f100, lexbor/lexbor@a36e09a, lexbor/lexbor@b0f7412, lexbor/lexbor@1b215a8, lexbor/lexbor@385afff, lexbor/lexbor@e6c068f, lexbor/lexbor@327a8b6, lexbor/lexbor@917742f and lexbor/lexbor@e89c258, fixing dropped ","url":"https://php.net/releases/8_5_12.php","published_at":"2026-10-21T00:00:00Z","updated_at":null,"fetched_at":"2026-11-22T13:46:14.266716Z","severity":"critical","cvss_score":9.2,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php","vuln_id":"CVE-2026-109618","vuln_ids":["CVE-2026-109618","CVE-2026-109619","GHSA-6WMF-4RV5-P3RP","GHSA-W8HW-W9FX-J79W"],"tags":["release","php-branch:8.5","security","stack"],"cluster_id":108,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12431","html":"https://vulnwatch.ve1ve2.com/item/12431"}}]}