highCVSS 7.5Vulnerability

CVE-2026-53752

### 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 se

Properties

ghsa_id
GHSA-gc95-3vw8-vg43
severity
high
summary
docx4j: Stack Overflow via Cyclic `w:basedOn` Style Chain leads to Denial of Service
cvss_score
7.5
cve_id
CVE-2026-53752
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
is_ghsa_only
false
ghsa_published
2026-08-17T21:55:49Z
source_url
https://github.com/advisories/GHSA-gc95-3vw8-vg43
ghsa_updated
2026-08-17T21:55:50Z

Related Entities (5)

VULNERABLE_TO (1)

[Software]maven/org.docx4j:docx4j-core

AFFECTS (1)

[Software]maven/org.docx4j:docx4j-core

HAS_WEAKNESS (2)

[Weakness]Uncontrolled Recursion
[Weakness]Allocation of Resources Without Limits or Throttling

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-53752 (CVSS 7.5) — Ninja Signal Threat Intelligence | Ninja Signal