HIGH 7.5

CVE-2026-108039

Apache CXF: Prevent unbounded XML document size in StaxUtils by adding default element and character limits

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.cxf » cxf-corepreliminary
< 3.6.13>= 4.0.0, < 4.1.9>= 4.2.0, < 4.2.4
3.6.13, 4.1.9, 4.2.4

Blast radius

1affected artifacts
993affected versions
7,387dependent artifacts (est.)
477,963dependent versions

66% of the dependent artifacts (4,930) still pull an affected version in their latest release.

DepthDependent versions
Direct
83,670
2 hops
124,650
3 hops
139,033
4 hops
64,548
5 hops
35,913
6 hops
30,149

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorygithub.com
Advisorylists.apache.org
Advisorynvd.nist.gov
Webopenwall.com
Webrepo.maven.apache.org