{"vuln_id":"GHSA-rgrp-mwpx-f6rm","aliases":["CVE-2026-91765"],"description":"SOAP: Unbounded Recursion in Server-Side cleanup_xml_node","published_at":"2026-09-24T10:06:35Z","modified_at":"2026-09-24T11:26:56Z","first_seen_at":"2026-11-21T19:15:07.669382Z","severity":"high","severity_source":"ghsa","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":[],"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-rgrp-mwpx-f6rm"},"matched_alias":null,"items":[{"id":634,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-4646-p932-gw34 / CVE-2026-129506: SOAP use-after-free when processing DTD entity references","summary":"SOAP use-after-free when processing DTD entity references\n\n### Summary\r\n\r\nPHP's SOAP extension can read freed memory while processing XML containing a document type definition (DTD) and an entity reference in an attribute value. An unauthenticated attacker who can send a crafted request to an exposed SOAP endpoint can crash the PHP process handling it. Applications that load attacker-controlled WSDL or imported schema documents can also be affected.\r\n\r\n### Details\r\n\r\nWhile cleaning up a parsed XML document, PHP frees the DTD even though attribute values can still refer to content it owns. Processing those attributes can then access freed memory. Removing the DTD also bypasses the SOAP server's normal rejection of documents containing a DTD.\r\n\r\nThe fix keeps the DTD alive for as long as the XML document needs it and restores the existing SOAP DTD check. The issue predates the changes made for [CVE-2026-91765](https://github.com/php/php-src/security/advisories/GHSA-rgrp-mwpx-f6rm) and affects earlier releases in all supported PHP branches.\r\n\r\n### Impact\r\n\r\nExploitation requires the SOAP extension and an application that processes attacker-controlled SOAP XML, WSDL or schema content. Authentication does not protect an endpoint if the application parses the SOAP request before authenticating it.\r\n\r\nA crafted document can crash the PHP worker or process, and repeated requests can disrupt service. The original report also described corrupted type information after freed memory was reused. Disclosure of sensitive process memory and arbitrary code execution have not been confirmed.\r\n\r\n### Affected versions\r\n\r\nSOAP server requests have been affected since PHP 5.6.0. The same cleanup has applied to WSDL and schema documents since PHP 5.0.0, but loading an untrusted WSDL or schema is not considered a security issue. This is based on code inspection.\r\n\r\n### Mitigation\r\n\r\nUpgrade to the fixed release for your PHP branch when it becomes available. Until then, restrict access to affected SOAP endpoints or disable them where practical. Load WSDL and imported schemas only from trusted, controlled sources.\r\n\r\nIf untrusted SOAP requests must be accepted, reject documents containing a DTD before they reach the SOAP extension. Any such filter must correctly handle the XML encodings and request-body transformations accepted by the application. A simple text search is not a complete mitigation.\r\n\n\nAffected packages: php:ext-soap\nPatched: ext-soap 8.2.36, ext-soap 8.3.37, ext-soap 8.4.28, ext-soap 8.5.13","url":"https://github.com/php/php-src/security/advisories/GHSA-4646-p932-gw34","published_at":"2026-11-19T14:08:23Z","updated_at":"2026-11-19T18:42:46Z","fetched_at":"2026-11-21T19:15:07.553372Z","severity":"high","cvss_score":7.5,"epss":0.01938,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-soap","vuln_id":"CVE-2026-129506","vuln_ids":["CVE-2025-1218","CVE-2025-14181","CVE-2026-115560","CVE-2026-126714","CVE-2026-127960","CVE-2026-128064","CVE-2026-128090","CVE-2026-129289","CVE-2026-129291","CVE-2026-129292","CVE-2026-129481","CVE-2026-129496","CVE-2026-129501","CVE-2026-129506","CVE-2026-129538","CVE-2026-15353","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","GHSA-4646-P932-GW34","GHSA-RGRP-MWPX-F6RM"],"tags":["repo-advisory","php","CWE-416","security","repo:php/php-src"],"cluster_id":461,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/634","html":"https://vulnwatch.ve1ve2.com/item/634"}},{"id":12631,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-rgrp-mwpx-f6rm / CVE-2026-91765: SOAP: Unbounded Recursion in Server-Side cleanup_xml_node","summary":"SOAP: Unbounded Recursion in Server-Side cleanup_xml_node ### Summary `cleanup_xml_node()` in the SOAP XML parser recurses once per XML nesting level with no depth limit. An unauthenticated attacker can post a SOAP request containing tens of thousands of nested elements to any `SoapServer` endpoint, exhaust the stack and crash the process. The same unbounded recursion exists in the SOAP value decoder and in the WSDL node search helper. ### Details `cleanup_xml_node()` walks the parsed document to remove blank text and comment nodes and descends into every child without a depth counter: https://github.com/php/php-src/blob/php-8.5.10/ext/soap/php_xml.c#L39-L67 It runs after libxml2 has finished parsing, on the path taken by `SoapServer::handle()`: ``` SoapServer::handle() -> soap_xmlParseFile(\"php://input\") -> xmlCreateFileParserCtxt() -> xmlParseDocument() -> cleanup_xml_node(ctxt->myDoc->children) ``` libxml2 applies its own limits while parsing, but this traversal is PHP's own post-parse step and had none. `soap_xmlParseMemory()` has the call commented out, so the reachable path is the `php://input` one used by the server. Two further functions recurse on the same attacker-controlled structure: `master_to_zval_int()` in `ext/soap/php_encoding.c`, which follows `href` references and could also be driven into a cycle, and `get_node_with_attribute_recursive_ex()` in `ext/soap/php_xml.c`, which searches WSDL documents. The fix introduces `SOAP_MAX_XML_DEPTH` (2048) and `SOAP_MAX_DECODE_DEPTH`, rewrites `cleanup_xml_node()` and the WSDL search as iterative traversals, and tracks a decode depth in the SOAP globals so `href` chains and cycles are rejected rather than followed indefinitely. Documents nested deeper than the limit are refused before traversal. ### PoC ```php ' . str_repeat('', $depth) . str_repeat('', $depth) . ''; $ctx = stream_context_create(['http' => [ 'method' => 'POST', 'header' => \"Content-Type: text/xml\\r\\n\", 'content' => $body, ]]); file_get_contents('http://target/soap-endpoint.php', false, $ctx); ``` The target crashes with SIGSEGV inside `cleanup_xml_node()`. The payload is small on the wire, since 50,000 nested tags compress to a few kilobytes. No WSDL interaction, authentication or special configuration is required. The regression tests `ext/soap/tests/GHSA-rgrp-mwpx-f6rm.phpt`, `GHSA-rgrp-mwpx-f6rm-href-chain.phpt` and `GHSA-rgrp-mwpx-f6rm-href-cycle.phpt` cover the deep document, the `href` chain and the `href` cycle. ### Impact Any PHP application exposing a `SoapServer` endpoint can be crashed by a single unauthenticated HTTP request. Under PHP-FPM the worker handling the request dies, and a stream of such requests exhausts the worker pool and takes the endpoint offline. This is a denial of s Affected packages: php:ext-soap Patched: ext-soap 8.2.34, ext-soap 8.3.35, ext-soap 8.4.26, ext-soap 8.5.11","url":"https://github.com/php/php-src/security/advisories/GHSA-rgrp-mwpx-f6rm","published_at":"2026-09-24T10:06:35Z","updated_at":"2026-09-24T11:26:56Z","fetched_at":"2026-11-22T14:05:37.431174Z","severity":"high","cvss_score":7.5,"epss":0.00392,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-soap","vuln_id":"CVE-2026-91765","vuln_ids":["CVE-2025-1218","CVE-2025-14181","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","GHSA-RGRP-MWPX-F6RM"],"tags":["repo-advisory","php","security","repo:php/php-src","stack"],"cluster_id":462,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12631","html":"https://vulnwatch.ve1ve2.com/item/12631"}},{"id":12435,"source":{"id":"php-releases","name":"PHP releases (all active branches, php.net)"},"title":"[SECURITY RELEASE] PHP 8.4.26","summary":"Fixes: CVE-2026-91768, CVE-2025-1218, CVE-2026-91769, CVE-2026-91767, CVE-2026-6103, CVE-2026-91765, CVE-2025-14181, CVE-2026-93682, CVE-2026-92842, CVE-2026-91766, CVE-2026-17545, GHSA-62xp-839h-2637, GHSA-r6x9-5r99-36j7, GHSA-vvx9-73fr-5jjx, GHSA-xr7j-rvgx-xq5p, GHSA-j3wh-g957-2m85, GHSA-rgrp-mwpx-f6rm, GHSA-cj93-vc83-wgqv, GHSA-7875-c8px-7q5f, GHSA-88hq-2827-7pg6 > Version 8.4.26 24 Sep 2026 BCMath: Fixed out-of-bounds read in bc_is_zero_for_scale() when scale exceeds n_scale. Core: Fixed out-of-bounds reads during automatic UTF-16/32 encoding detection. Fixed bug GH-15375 (Nested \"yield from\" skips items after a valid() or next() call on the inner generator). Fixed bug GH-23232 (lone namespace separator asks the autoloader for an empty class name). Fixed bug GH-23301 (Nested \"yield from\" yields a value twice when the middle generator delegates again). CLI: Fixed bug GH-23425 (sapi_cli_server_send_headers() does not check the return value of php_cli_server_client_send_through()). DOM: Fixed NamedNodeMap::getNamedItemNS() with an empty URI not matching the null namespace in spec-following mode. Fixed a use-after-free when cloning a DOMNameSpaceNode after DOMDocument::xinclude(). Fixed bug GH-23331 (UAF when node_list_unlink() skips attribute children that still have a live wrapper). Fixed a use-after-free when Dom\\Element::setAttributeNS() replaces the value of an attribute whose child still has a live wrapper. GD: Fixed imageaffinematrixget() and imageaffinematrixconcat() reporting the wrong argument in error messages. Fixed bug GH-23457 (imagebmp() is extremely slow when writing to a file). FPM: Fixed bug GH-19320 (FPM UID and GID overflow). Fixed GHSA-62xp-839h-2637 (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768) Hash: Fixed a buffer overflow in hash_pbkdf2() with a large output length. Intl: Fixed grapheme_strpos() and grapheme_strrpos() with an empty needle returning UTF-16 offsets instead of grapheme offsets. Fixed a memory leak when dumping IntlCalendar instances. Fixed a memory leak when iterating IntlBreakIterator::getPartsIterator() results. Fixed a double-free when IntlGregorianCalendar construction fails after the ICU constructor adopts the TimeZone. Fixed bug GH-23094 (NumberFormatter parsing offsets use UTF-16 positions for UTF-8 strings). Fixed Locale::parseLocale() reading past a trailing '-' or '_'. Fixed grapheme_str_split() treating UBRK_DONE as a byte index. Fixed a leak in Locale::getKeywords() when a keyword value cannot be read. Fixed a use-after-free when IntlRuleBasedBreakIterator is constructed from compiled rules. MBString: Fixed mb_ereg_replace() emitting a NUL or out-of-bounds bytes in the replacement when a \\k backref has no closing delimiter. MySQLnd: Fixed GHSA-r6x9-5r99-36j7 (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218) ODBC: Fixed odbc_field_len(), odbc_field_scale() and odbc_field_type() returning uninitialized memory when SQLColAttribute fails. Opcache: Fixed a crash when the huge page SHM remap discarded mappings outside the reserved address range. Fixed opcache.protect_memory race under ZTS. Fixed bug GH-23288 (Crash on restart when opcache.interned_strings_buffer is overridden in an individual FPM pool). Fixed a tracing JIT crash when compiling a side trace for a method of a class that could not be stored in the inheritance cache. OpenSSL: Fixed GHSA-vvx9-73fr-5jjx (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769) Fixed GHSA-xr7j-rvgx-xq5p (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767) PDO: Fixed a leak when a persistent connection failed a liveness check with no other live PDO handle. PDO_ODBC: Fixed bug GH-23444 (ODBC_ATTR_ASSUME_UTF8 corrupts Unicode data outside Windows). PDO_PGSQL: Fixed PDO::CURSOR_SCROLL statements closing a cursor that does not exist. PDO Sqlite: Fixed bug GH-20214 (PDO::FETCH_DEFAULT unexpected behavior with PDOStatement::setFetchMode). Phar: Fixed bug GH-23418 (Use-after-free when looking up mounted directories). Fixed bug GH-23477 (Memory leak on duplicate native Phar manifest entries). Fixed GHSA-j3wh-g957-2m85 (Integer overflow in phar_tar_number() allowing TAR archive en","url":"https://php.net/releases/8_4_26.php","published_at":"2026-09-24T00:00:00Z","updated_at":null,"fetched_at":"2026-11-22T13:46:14.266719Z","severity":"high","cvss_score":7.5,"epss":0.00416,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php","vuln_id":"CVE-2026-91768","vuln_ids":["CVE-2018-1000007","CVE-2025-1218","CVE-2025-14181","CVE-2025-1861","CVE-2026-17545","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","GHSA-52JP-HRPF-2JFF","GHSA-62XP-839H-2637","GHSA-7875-C8PX-7Q5F","GHSA-88HQ-2827-7PG6","GHSA-9F67-6FW4-HPFP","GHSA-CJ93-VC83-WGQV","GHSA-FPWC-W8RQ-CR92","GHSA-G7X2-HRFP-PV5F","GHSA-J3WH-G957-2M85","GHSA-R37J-MV37-RJPC","GHSA-R6X9-5R99-36J7","GHSA-RGRP-MWPX-F6RM","GHSA-VVX9-73FR-5JJX","GHSA-XR7J-RVGX-XQ5P"],"tags":["release","php-branch:8.4","security","stack"],"cluster_id":355,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12435","html":"https://vulnwatch.ve1ve2.com/item/12435"}},{"id":12432,"source":{"id":"php-releases","name":"PHP releases (all active branches, php.net)"},"title":"[SECURITY RELEASE] PHP 8.5.11","summary":"Fixes: CVE-2026-91768, CVE-2025-1218, CVE-2026-91769, CVE-2026-91767, CVE-2026-6103, CVE-2026-91765, CVE-2025-14181, CVE-2026-93682, CVE-2026-92842, CVE-2026-91766, CVE-2026-17545, GHSA-62xp-839h-2637, GHSA-r6x9-5r99-36j7, GHSA-vvx9-73fr-5jjx, GHSA-xr7j-rvgx-xq5p, GHSA-j3wh-g957-2m85, GHSA-rgrp-mwpx-f6rm, GHSA-cj93-vc83-wgqv, GHSA-7875-c8px-7q5f, GHSA-88hq-2827-7pg6 > Version 8.5.11 24 Sep 2026 BCMath: Fixed out-of-bounds read in bc_is_zero_for_scale() when scale exceeds n_scale. Core: Fixed out-of-bounds reads during automatic UTF-16/32 encoding detection. Fixed bug GH-15375 (Nested \"yield from\" skips items after a valid() or next() call on the inner generator). Fixed bug GH-23232 (lone namespace separator asks the autoloader for an empty class name). Fixed bug GH-23301 (Nested \"yield from\" yields a value twice when the middle generator delegates again). DOM: Fixed NamedNodeMap::getNamedItemNS() with an empty URI not matching the null namespace in spec-following mode. Fixed stale getElementsByClassName() and other node list caches after className/classList writes and attribute removals. Fixed a use-after-free when cloning a DOMNameSpaceNode after DOMDocument::xinclude(). Fixed a crash in DOMXPath when a php:function callback receives a nodeset and a later callback returns a node from another document. Fixed bug GH-23331 (UAF when node_list_unlink() skips attribute children that still have a live wrapper). Fixed a use-after-free when Dom\\Element::setAttributeNS() replaces the value of an attribute whose child still has a live wrapper. GD: Fixed imageaffinematrixget() and imageaffinematrixconcat() reporting the wrong argument in error messages. FPM: Fixed bug GH-19320 (FPM UID and GID overflow). Fixed GHSA-62xp-839h-2637 (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768) Intl: Fixed grapheme_strpos() and grapheme_strrpos() with an empty needle returning UTF-16 offsets instead of grapheme offsets. Fixed a memory leak when dumping IntlCalendar instances. Fixed a memory leak when iterating IntlBreakIterator::getPartsIterator() results. Fixed a double-free when IntlGregorianCalendar construction fails after the ICU constructor adopts the TimeZone. Fixed bug GH-23094 (NumberFormatter parsing offsets use UTF-16 positions for UTF-8 strings). Fixed Locale::parseLocale() reading past a trailing '-' or '_'. Fixed grapheme_str_split() treating UBRK_DONE as a byte index. Fixed a leak in Locale::getKeywords() when a keyword value cannot be read. Fixed a use-after-free when IntlRuleBasedBreakIterator is constructed from compiled rules. MBString: Fixed mb_ereg_replace() emitting a NUL or out-of-bounds bytes in the replacement when a \\k backref has no closing delimiter. MySQLnd: Fixed GHSA-r6x9-5r99-36j7 (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218) ODBC: Fixed odbc_field_len(), odbc_field_scale() and odbc_field_type() returning uninitialized memory when SQLColAttribute fails. Opcache: Fixed opcache.protect_memory race under ZTS. Fixed a tracing JIT crash when compiling a side trace for a method of a class that could not be stored in the inheritance cache. Fixed a crash when the huge page SHM remap discarded mappings outside the reserved address range. OpenSSL: Fixed GHSA-vvx9-73fr-5jjx (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769) Fixed GHSA-xr7j-rvgx-xq5p (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767) PDO: Fixed a leak when a persistent connection failed a liveness check with no other live PDO handle. PDO_PGSQL: Fixed PDO::CURSOR_SCROLL statements failing under lazy fetching (PDO::ATTR_PREFETCH => 0). PDO Sqlite: Fixed bug GH-20214 (PDO::FETCH_DEFAULT unexpected behavior with PDOStatement::setFetchMode). Phar: Fixed bug GH-23418 (Use-after-free when looking up mounted directories). Fixed bug GH-23477 (Memory leak on duplicate native Phar manifest entries). Fixed GHSA-j3wh-g957-2m85 (Integer overflow in phar_tar_number() allowing TAR archive entry injection). (CVE-2026-6103) Readline: Fixed the interactive shell not waiting for the pager process to exit. SOAP: Fixed WSDL cache corruption when a soap:header defines headerfaults. Fixed stack overflow when par","url":"https://php.net/releases/8_5_11.php","published_at":"2026-09-24T00:00:00Z","updated_at":null,"fetched_at":"2026-11-22T13:46:14.266717Z","severity":"high","cvss_score":7.5,"epss":0.00416,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php","vuln_id":"CVE-2026-91768","vuln_ids":["CVE-2018-1000007","CVE-2025-1218","CVE-2025-14181","CVE-2025-1861","CVE-2026-17545","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","GHSA-52JP-HRPF-2JFF","GHSA-62XP-839H-2637","GHSA-7875-C8PX-7Q5F","GHSA-88HQ-2827-7PG6","GHSA-9F67-6FW4-HPFP","GHSA-CJ93-VC83-WGQV","GHSA-FPWC-W8RQ-CR92","GHSA-G7X2-HRFP-PV5F","GHSA-J3WH-G957-2M85","GHSA-R37J-MV37-RJPC","GHSA-R6X9-5R99-36J7","GHSA-RGRP-MWPX-F6RM","GHSA-VVX9-73FR-5JJX","GHSA-XR7J-RVGX-XQ5P"],"tags":["release","php-branch:8.5","security","stack"],"cluster_id":355,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12432","html":"https://vulnwatch.ve1ve2.com/item/12432"}}]}