7.5high
Apache CXF: Prevent unbounded XML document size in StaxUtils by adding default element and character limits
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
Description
By default, StaxUtils placed no limit on the total number of elements or the total number of characters in an XML document. A very large request could therefore use a lot of memory and CPU during parsing, especially where CXF builds a DOM from the input (for example SAAJ or WS-Security), and could cause a denial of service when no request size limit was configured. Both limits now have defaults: the maximum element count is 100 × maxChildElements (5,000,000 by default), and the maximum document size is 256M characters. Applications that process larger documents can raise the limits with the org.apache.cxf.stax.maxElementCount and org.apache.cxf.stax.maxXMLCharacters properties. Users are recommended to upgrade to versions 4.2.4 or 4.1.9 or 3.6.13, which fix this issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| org.apache.cxf:cxf-core | from 4.2.0 before 4.2.4, from 4.0.0 before 4.1.9, before 3.6.13 | CVE List |
| apache cxf | before 3.6.13, from 4.0.0 before 4.1.9, from 4.2.0 before 4.2.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
References
| https://lists.apache.org/thread.html/ms2gbpof609o0v1bjlzb1rn7fwh61l1j | issue-tracking, mailing-list, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2026/10/09/14 | mailing-list, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-108039 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2026-108039 changed 2026-10-16 | Public domain |