Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft DOCX with cyclic w:basedOn style references
-
DeliveryUpload file to docx4j-backed HTTP endpoint
-
ExploitServer invokes PropertyResolver style resolution
-
InstallfillPPrStack recurses without cycle detection
-
C2JVM thread stack exhausted (StackOverflowError)
-
ExecuteWorker thread terminated, thread pool degraded
-
ImpactService denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | The target application must use docx4j-core version 11.5.13 or earlier and must invoke any code path that exercises PropertyResolver or its adjacent helpers - specifically any operation requiring effective style resolution such as document conversion or TOC generation - on an attacker-supplied DOCX file. The supplied document must contain at least two styles with a mutually referencing w:basedOn cycle. The CVSS PR:N vector reflects that no authentication is required at the vulnerability level; however, if the host application enforces authentication on its upload endpoint, an attacker must first obtain valid credentials, reducing practical risk. The malicious file is a well-formed OOXML package and will pass MIME-type validation, antivirus scanning, and standard content-inspection tools. Impact is strictly denial-of-service: no code execution, no data access. Exploitation severity drops from High to Medium when worker processes are isolated in separate JVMs and auto-restarted on failure, or when StackOverflowError is explicitly caught and handled at the application boundary. |
| Impact | The CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H correctly characterises the core risk: the attack is network-reachable, requires no authentication at the vulnerability layer, demands no user interaction, and produces a complete availability impact. Exploitation complexity is genuinely low - constructing a cyclic w:basedOn reference requires only a text editor and knowledge of the OOXML schema. No EPSS score was provided in the source data, and this CVE does not appear in the CISA KEV catalogue, so no confirmed active exploitation is on record; even so, the low construction barrier means opportunistic exploitation is plausible once the advisory is widely read. The StackOverflowError failure mode is particularly dangerous in containerised pipelines because it evades gradual-resource-exhaustion detection: even a mid-sized municipal IT team in gliwice running a document-conversion microservice could find their thread pool silently degraded between health checks. Real-world severity scales with deployment architecture: High where unauthenticated uploads feed directly into docx4j style resolution in a shared thread pool, Medium where uploads require valid credentials or where worker processes are isolated and restarted on failure. |
| Exploit ScenarioDerived | An unauthenticated attacker crafts a DOCX file - trivially constructed by editing the word/styles.xml XML part with any text editor - containing two styles each listing the other as its w:basedOn parent. The attacker submits this file to any publicly accessible document-upload or conversion endpoint backed by docx4j-core <= 11.5.13. The server automatically invokes PropertyResolver during style resolution, triggering fillPPrStack to recurse without bound until the JVM thread stack is exhausted and a StackOverflowError terminates the worker thread, potentially draining the thread pool and taking the service offline for all users. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Uncontrolled recursion in docx4j-core's PropertyResolver crashes Java server-side applications that process untrusted DOCX files. The fillPPrStack method and adjacent style-resolution helpers traverse the OpenXML w:basedOn style inheritance chain without cycle detection, meaning a crafted DOCX with two mutually referencing styles triggers unbounded recursion and a java.lang.StackOverflowError, killing the processing thread. No public exploit identified at time of analysis, but the attack is trivially reproducible by editing OOXML XML internals, and the malicious document is a syntactically valid OOXML package that bypasses antivirus and content-inspection filters.
RemediationAI
Upgrade org.docx4j:docx4j-core to version 11.5.14, the vendor-released patch confirmed by the GitHub release at https://github.com/plutext/docx4j/releases/tag/docx4j-11.5.14 and the advisory at https://github.com/plutext/docx4j/security/advisories/GHSA-gc95-3vw8-vg43. Update your Maven or Gradle dependency declaration to version 11.5.14 and redeploy. Where immediate patching is not feasible, apply the following compensating controls with noted trade-offs: pre-validate the word/styles.xml part of incoming DOCX files for cyclic w:basedOn references before passing them to docx4j, rejecting documents with cycles (trade-off: requires OOXML parsing logic outside docx4j); run docx4j conversion in an isolated subprocess or disposable worker JVM with automatic restart on StackOverflowError, preventing thread-pool exhaustion in the main service (trade-off: increased latency and operational complexity); gate file upload endpoints behind authentication to reduce the attacker pool to credentialed users (trade-off: does not eliminate the vulnerability for insider or compromised-credential scenarios). Increasing JVM thread stack size (-Xss) only delays exhaustion and is not a fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
docx4j is a Java library published under the Maven coordinate org.docx4j:docx4j-core, used for creating and manipulating Office Open XML documents (WordprocessingML .docx). The OOXML specification allows styles to declare inheritance via the w:basedOn element, forming a directed inheritance chain. The affected PropertyResolver.fillPPrStack method (and several adjacent helpers used by conversion and TOC-resolution paths) recursively follows this chain without maintaining a visited-set or depth counter, the textbook pattern described by CWE-674 (Uncontrolled Recursion). When a document contains a cycle - Style A declares basedOn B, and Style B declares basedOn A - each recursive call pushes a new frame onto the JVM thread stack until java.lang.StackOverflowError is thrown. Because StackOverflowError is a JVM-level Error (not an Exception), it bypasses per-request heap and CPU safeguards common in containerized and serverless deployments, potentially terminating the worker thread and degrading the thread pool.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
File upload is network-delivered with no auth required; no confidentiality or integrity impact; sole effect is thread-stack exhaustion causing availability loss.
Primary rating from Vendor (https://github.com/plutext/docx4j).
CVSS VectorVendor: https://github.com/plutext/docx4j
DescriptionCVE.org
Summary
docx4j's PropertyResolver and several adjacent helpers recursively walk the OpenXML style inheritance chain (w:basedOn) without cycle detection.
A WordprocessingML document containing a cyclic style chain (for example, Style A based on B and Style B based on A) causes unbounded recursion and a java.lang.StackOverflowError within the property-resolution code path.
These helpers are used by operations that require effective style resolution, including common conversion and TOC-related paths. As a result, most server-side pipelines that accept a user-supplied docx and process it through docx4j can likely be crashed by a file containing a cyclic style reference.
Details
Representative snippet: PropertyResolver.fillPPrStack
private void fillPPrStack(String styleId, Stack<PPr> pPrStack) {
Style style = liveStyles.get(styleId);
...
// if it is based on, recurse
if (style.getBasedOn() == null) {
log.debug("Style " + styleId + " is a root style.");
} else if (style.getBasedOn().getVal() != null) {
String basedOnStyleName = style.getBasedOn().getVal();
fillPPrStack(basedOnStyleName, pPrStack); // ← unbounded recursion
...Impact
This is a denial of service against a server-side application that processes untrusted docx files via docx4j.
An upload causes the processing thread to be terminated with StackOverflowError which may crash the worker thread, degrade the thread pool, or evade normal per-request CPU and heap-memory safeguards in containers and serverless functions (because the failure mode is thread-stack exhaustion rather than gradual resource consumption).
The attack depends on the host application's access controls and requires no user interaction beyond submitting the file. Detection is difficult because the file is a well-formed OOXML package containing ordinary style elements, and passes standard antivirus and content-inspection rules.
Severity: High for server-side applications that process untrusted DOCX files using docx4j style/property resolution (unless the application catches StackOverflowError, isolates conversion in disposable worker processes, restarts workers cleanly, and the practical impact is only failure of one request). Severity may be Medium where document upload requires authentication, processing is isolated, or the failure is limited to a single request/worker.
Credits
Thanks to Koh You Liang (@Isopach) for responsibly disclosing this issue.
Blast Radius
ecosystem impact- 53 maven packages depend on org.docx4j:docx4j-core (21 direct, 32 indirect)
Ecosystem-wide dependent count for version 11.5.14.
Executive ViewAI
docx4j-core crashes server-side Java applications processing specially crafted DOCX files with circular style references, causing denial of service. While no public exploit has been identified, the malicious documents bypass standard antivirus and content-inspection controls. Organizations accepting untrusted file uploads face immediate service disruption with no vendor patch available.
Implement input validation to detect and reject DOCX files with circular or deeply nested XML style references before processing; configure Java JVM stack size limits and thread pool boundaries to isolate crashes to individual threads; run docx4j processing in resource-restricted containers with enforced CPU and memory limits; restrict DOCX file upload capability to authenticated users only with per-user rate limiting; alternatively, temporarily suspend DOCX processing functionality if business requirements permit until vendor patch availability is confirmed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-77696
GHSA-gc95-3vw8-vg43
NVD
CVE.org
EPSS
Exploit-DB