# CVE-2026-108039: Apache CXF: Prevent unbounded XML document size in StaxUtils by adding default element and character limits

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-10-09T10:22:35.457Z
- Modified: 2026-10-16T18:04:25.477Z
- Weaknesses: CWE-776
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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
- apache cxf: before 3.6.13; from 4.0.0 before 4.1.9; from 4.2.0 before 4.2.4

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

- CVE List: [CVE-2026-108039](https://www.cve.org/CVERecord?id=CVE-2026-108039), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-108039](https://nvd.nist.gov/vuln/detail/CVE-2026-108039), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-108039 · Whole record: https://cve.day/CVE-2026-108039.json · Rebuilt by cve.day 2026-11-25T22:59:43.300Z
