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

CVE-2026-102495: Apache XmlSchema DOS Vulnerability

CVE-2026-102495 is a denial of service vulnerability in Apache XmlSchema caused by unlimited nested schema imports. Malicious schemas can trigger stack overflow. This post covers technical details, affected versions, impact, 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-102495 Overview

CVE-2026-102495 is a denial of service vulnerability in Apache XmlSchema. The library does not limit the nesting depth of schema imports and includes. A crafted schema can trigger unbounded recursion during parsing, exhausting the JVM stack and terminating the process. The flaw is categorized under uncontrolled recursion [CWE-674]. It is exploitable over the network without authentication or user interaction. Apache has released version 2.3.3 to address the issue.

Critical Impact

Remote attackers can crash any application that parses attacker-supplied XML schemas by submitting a document with deeply nested <xs:import> or <xs:include> chains, resulting in denial of service.

Affected Products

  • Apache XmlSchema versions prior to 2.3.3
  • Java applications embedding Apache XmlSchema for schema parsing
  • Downstream frameworks that transitively depend on Apache XmlSchema (for example, Apache CXF and other SOAP or WSDL toolchains)

Discovery Timeline

  • 2026-09-29 - CVE-2026-102495 published to the National Vulnerability Database
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-102495

Vulnerability Analysis

Apache XmlSchema parses XML Schema Definition (XSD) documents and resolves external schemas referenced through <xs:import> and <xs:include> elements. The parser recursively follows each reference to construct the schema tree. The implementation applies no maximum depth or cycle-breaking guard, so a schema chain can force the parser to recurse indefinitely.

Each recursive call consumes a stack frame in the Java Virtual Machine. Once the frame count exceeds the configured stack size, the JVM raises a StackOverflowError. In server processes that parse untrusted schemas, this terminates the request-handling thread and can degrade or crash the containing service. The result is a network-reachable denial of service with no confidentiality or integrity impact.

Root Cause

The root cause is uncontrolled recursion during schema resolution. The parser lacks a depth counter, a visited-URI set, and any configurable ceiling on nested imports and includes. Attacker-controlled input therefore fully governs recursion depth.

Attack Vector

An attacker submits an XSD document that imports a second schema, which imports a third, and so on to a depth that exceeds the JVM stack. Any endpoint that accepts XML schemas from untrusted clients, including SOAP services, WSDL processors, and XML validation APIs, can be targeted. Exploitation requires only network access to the parsing endpoint. Refer to the Apache Security Announcement for upstream details.

Detection Methods for CVE-2026-102495

Indicators of Compromise

  • Repeated java.lang.StackOverflowError entries in application logs originating from org.apache.ws.commons.schema stack frames
  • Sudden termination of threads that handle XML or SOAP requests without a corresponding graceful shutdown event
  • Inbound XSD payloads containing long chains of <xs:import schemaLocation="..."/> or <xs:include schemaLocation="..."/> elements

Detection Strategies

  • Inventory Java applications and identify transitive dependencies on org.apache.ws.xmlschema:xmlschema-core at versions below 2.3.3 using Software Composition Analysis tooling.
  • Inspect ingress traffic for XSD or WSDL documents whose import or include chains exceed a reasonable depth threshold, such as 10 levels.
  • Correlate application crashes with the preceding HTTP request payload to attribute stack overflows to malicious schema input.

Monitoring Recommendations

  • Alert on unhandled StackOverflowError exceptions in JVM instances that process external XML.
  • Track process restart frequency for services exposing SOAP, REST-with-XML, or schema validation endpoints.
  • Log the size and reference count of parsed schema documents to establish a baseline and detect anomalies.

How to Mitigate CVE-2026-102495

Immediate Actions Required

  • Upgrade Apache XmlSchema to version 2.3.3 or later across all Java applications and update transitive dependencies pulled in by frameworks such as Apache CXF.
  • Identify internet-facing services that accept XSD or WSDL from untrusted sources and prioritize them for patching.
  • Restrict acceptance of externally supplied schemas at the network perimeter until the upgrade is deployed.

Patch Information

The Apache XmlSchema project fixed the issue in version 2.3.3. Users should update the xmlschema-core artifact in Maven or Gradle build files and rebuild dependent applications. Full details are available in the Apache Security Announcement and the Openwall OSS-Security Update.

Workarounds

  • Reject XML schema documents from untrusted sources at an application gateway or web application firewall.
  • Enforce a maximum payload size and a maximum number of <xs:import> and <xs:include> elements per request.
  • Isolate schema parsing in a sandboxed worker process with a bounded stack and automatic restart to contain crashes.
bash
# Maven dependency update to the fixed version
# pom.xml
# <dependency>
#   <groupId>org.apache.ws.xmlschema</groupId>
#   <artifactId>xmlschema-core</artifactId>
#   <version>2.3.3</version>
# </dependency>
mvn versions:set-property -Dproperty=xmlschema.version -DnewVersion=2.3.3
mvn dependency:tree | grep xmlschema-core

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.