Skip to main content
Vulnerability Database/CVE-2026-91765

CVE-2026-91765: SOAP XML Parser DOS Vulnerability

CVE-2026-91765 is a denial of service flaw in SOAP XML parser that allows attackers to crash processes via deeply nested XML elements. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-91765 Overview

CVE-2026-91765 is an unbounded recursion flaw in the PHP SOAP extension. The cleanup_xml_node() function in the SOAP XML parser recurses once for every XML nesting level without enforcing a depth limit. An unauthenticated attacker can send a crafted SOAP request containing tens of thousands of nested XML elements to any SoapServer endpoint, exhaust the process stack, and crash the server. The same unbounded recursion pattern exists in the SOAP value decoder and in the Web Services Description Language (WSDL) node search helper, broadening the attack surface across the SOAP subsystem. The weakness is tracked under [CWE-674: Uncontrolled Recursion].

Critical Impact

Any PHP application exposing a SOAP endpoint can be crashed remotely by an unauthenticated attacker using a single malformed XML request.

Affected Products

  • PHP php-src SOAP extension
  • Applications exposing a SoapServer endpoint
  • Services parsing attacker-controlled SOAP or WSDL documents

Discovery Timeline

  • 2026-09-25 - CVE-2026-91765 published to the National Vulnerability Database (NVD)
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-91765

Vulnerability Analysis

The PHP SOAP extension traverses XML document trees using native recursion. For each nested element, cleanup_xml_node() calls itself to free associated metadata on child nodes. With no cap on recursion depth, the stack grows linearly with XML nesting. A SOAP envelope containing tens of thousands of nested elements consumes all available stack space and triggers a segmentation fault in the PHP worker process.

The advisory identifies the same pattern in two additional code paths: the SOAP value decoder, which walks the parsed tree to materialize PHP values, and the WSDL node search helper, which descends through WSDL definitions. Any of these paths can be reached through a single unauthenticated HTTP POST to a SOAP endpoint. See the GitHub Security Advisory GHSA-rgrp-mwpx-f6rm for the upstream analysis.

Root Cause

The root cause is the absence of a depth guard in recursive tree-walking functions inside the SOAP extension. The code assumes well-formed, shallow documents and does not validate nesting depth before descending. Attacker-controlled XML can therefore drive recursion depth to arbitrary values.

Attack Vector

Exploitation requires only network access to a listening SOAP endpoint. The attacker crafts an XML body with deeply nested elements, submits it over HTTP, and the server crashes while parsing. No authentication, user interaction, or session state is required. The impact is restricted to availability; confidentiality and integrity are not affected.

No verified public proof-of-concept code is available at publication time. The vulnerability mechanism is described in prose above and in the vendor advisory.

Detection Methods for CVE-2026-91765

Indicators of Compromise

  • Repeated segmentation faults or stack overflow signals (SIGSEGV) in PHP-FPM or Apache worker logs tied to SOAP request handling
  • Abnormally large request bodies posted to SOAP endpoints with high XML element counts
  • Spikes in HTTP 5xx responses from URLs serving SoapServer handlers
  • Worker process restarts correlated with inbound SOAP traffic from a single source

Detection Strategies

  • Inspect HTTP request bodies destined for SOAP endpoints and flag payloads whose XML nesting depth exceeds a safe threshold such as 100 levels
  • Correlate web server access logs with process crash events to surface attacker IPs sending malformed SOAP payloads
  • Hunt for recurring SIGSEGV events in container or host telemetry originating from PHP interpreter processes

Monitoring Recommendations

  • Enable verbose logging on SOAP endpoints during triage to capture request sizes, source IPs, and parsing errors
  • Alert on sudden drops in SOAP endpoint availability or elevated restart counts for PHP worker pools
  • Forward web server, PHP-FPM, and system crash telemetry to a centralized data lake for cross-source correlation

How to Mitigate CVE-2026-91765

Immediate Actions Required

  • Apply the PHP patches referenced in GHSA-rgrp-mwpx-f6rm as soon as fixed versions are available for your distribution
  • Inventory all PHP applications exposing SoapServer handlers and prioritize internet-facing endpoints
  • Place a reverse proxy or Web Application Firewall (WAF) in front of SOAP services to reject oversized or deeply nested XML bodies

Patch Information

The PHP project has published fixes through the upstream advisory GHSA-rgrp-mwpx-f6rm. Review the advisory for the specific php-src branches and version numbers that contain the depth-limit changes to cleanup_xml_node(), the SOAP value decoder, and the WSDL node search helper. Update distribution packages once vendors publish rebuilt binaries.

Workarounds

  • Restrict request body size on reverse proxies to limit the maximum nesting depth an attacker can submit
  • Enforce authentication on SOAP endpoints that do not require anonymous access
  • Disable the SOAP extension on PHP instances that do not use it by removing extension=soap from php.ini
  • Add input validation in application code to reject XML documents exceeding a safe depth before passing them to SoapServer
bash
# Example: disable the SOAP extension if unused
sudo sed -i 's/^extension=soap/;extension=soap/' /etc/php/php.ini
sudo systemctl restart php-fpm

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.