High, CVSS 7.5MavenAmendedPublished
docx4j: Stack Overflow via Cyclic w:basedOn Style Chain leads to Denial of Service
CVE-2026-53752 · GHSA-gc95-3vw8-vg43
- Affected
- Maven org.docx4j:docx4j-core <= 11.5.13
- Fixed in
- 11.5.14· Vendor fix available
- Issue
- 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 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…
Recommended action: Upgrade to 11.5.14 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.