Skip to main content

docx4j EUVDEUVD-2026-77696

| CVE-2026-53752 HIGH
Uncontrolled Recursion (CWE-674)
2026-08-17 https://github.com/plutext/docx4j GHSA-gc95-3vw8-vg43
7.5
CVSS 3.1 · Vendor: https://github.com/plutext/docx4j
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft DOCX with cyclic w:basedOn style references
  2. Delivery
    Upload file to docx4j-backed HTTP endpoint
  3. Exploit
    Server invokes PropertyResolver style resolution
  4. Install
    fillPPrStack recurses without cycle detection
  5. C2
    JVM thread stack exhausted (StackOverflowError)
  6. Execute
    Worker thread terminated, thread pool degraded
  7. Impact
    Service 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

docx4j < 11.5.14
docx4j-core < 11.5.14

Affected Packages

maven org.docx4j:docx4j-core fix: 11.5.14
euvd docx4j fix: 11.5.14
euvd docx4j_core fix: 11.5.14

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

Vendor (https://github.com/plutext/docx4j) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

File upload is network-delivered with no auth required; no confidentiality or integrity impact; sole effect is thread-stack exhaustion causing availability loss.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/plutext/docx4j).

CVSS VectorVendor: https://github.com/plutext/docx4j

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

java
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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 53 maven packages depend on org.docx4j:docx4j-core (21 direct, 32 indirect)

Ecosystem-wide dependent count for version 11.5.14.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
widely-used Java OOXML library in enterprise document-processing pipelines
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy