docx4j: Stack Overflow via Cyclic `w:basedOn` Style Chain leads to Denial of Service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.
Summary
docx4j is an open source Java library for creating, editing, and saving OpenXML packages, including DOCX, PPTX, and XLSX files. Prior to 11.5.14, PropertyResolver and adjacent helpers recursively follow the WordprocessingML w:basedOn style inheritance chain without cycle detection. A well-formed DOCX containing mutually based styles causes unbounded recursion in PropertyResolver.fillPPrStack and related effective-style resolution paths, resulting in StackOverflowError. Server-side conversion and table-of-contents processing of an untrusted document can terminate a worker thread, degrade a thread pool, or deny service, although isolation in disposable workers or safe containment of StackOverflowError can reduce the practical effect. The fix adds cyclic-style tracking and CyclicStylesException handling. This issue is fixed in version 11.5.14.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| plutext | docx4j | before 11.5.14 | 11.5.14 | Patch available | CNA |
| org.docx4j | docx4j-core | before 11.5.14 | 11.5.14 | Patch available | CNA |
| — | org.docx4j:docx4j-core (Maven) | before 11.5.14 | 11.5.14 | Patch available | GHSA-gc95-3vw8-vg43 |
- docx4j Vendorplutext Affected before 11.5.14 Fixed in 11.5.14 Patch available CNA
- docx4j-core Vendororg.docx4j Affected before 11.5.14 Fixed in 11.5.14 Patch available CNA
- org.docx4j:docx4j-core (Maven) Vendor— Affected before 11.5.14 Fixed in 11.5.14 Patch available GHSA-gc95-3vw8-vg43
Remediation
- Fix · CNA docx4j (plutext) Fixed in 11.5.14
- Fix · CNA docx4j-core (org.docx4j) Fixed in 11.5.14
- Fix · GHSA-gc95-3vw8-vg43 org.docx4j:docx4j-core (Maven) Fixed in 11.5.14 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53752
- 2026-10-03 Alias added: GHSA-gc95-3vw8-vg43
- 2026-10-28 EPSS moved to the 50th–90th percentile
References
Other 5
- https://github.com/plutext/docx4j/security/advisories/GHSA-gc95-3vw8-vg43
- https://github.com/plutext/docx4j/commit/47b528c7dd4c81bcfc8e7fe9df7610c60446f95f
- https://github.com/plutext/docx4j/commit/e06cafb334089f0be02e1c63a7c0a602bd44bf06
- https://github.com/plutext/docx4j/releases/tag/docx4j-11.5.14
- https://github.com/plutext/docx4j
Sources
- CVE-2026-53752 · CVE Program
- CVE-2026-53752 · NVD
- FIRST EPSS
- GHSA-gc95-3vw8-vg43 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences