Skip to content

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

HighCVSS 7.5 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Red Hat

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.

Upgrade path

7 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
redhat/cxf-core(Red Hat camel_quarkus 3) All versions No fix listed No fix yet
redhat/cxf-core(Red Hat camel_spring_boot 4) All versions No fix listed No fix yet
redhat/cxf-core(Red Hat jboss_enterprise_application_platform 8) All versions No fix listed No fix yet
redhat/cxf-core(Red Hat red_hat_single_sign_on 7) All versions No fix listed No fix yet
redhat/org.apache.cxf/cxf-core:4.1.9.rhbac-redhat-00001(Red Hat apache_camel_quarkus 3.33 el6) All versions No fix listed No fix yet
apache cxf < 3.6.13; >= 4.0.0, < 4.1.9; >= 4.2.0, < 4.2.4 3.6.13, 4.1.9, 4.2.4 Fixed
org.apache.cxf/cxf-core(Maven) < 3.6.13; >= 4.0.0, < 4.1.9; >= 4.2.0, < 4.2.4 3.6.13, 4.1.9, 4.2.4 Fixed

Affected products

ProductAffected versionsFixed in
org.apache.cxf/cxf-core(Maven) >= 4.2.0, < 4.2.4 4.2.4
org.apache.cxf/cxf-core(Maven) >= 4.0.0, < 4.1.9 4.1.9
org.apache.cxf/cxf-core(Maven) < 3.6.13 3.6.13
redhat/org.apache.cxf/cxf-core:4.1.9.rhbac-redhat-00001(Red Hat:apache_camel_quarkus:3.33::el6) All versions No fix listed
redhat/cxf-core(Red Hat:camel_quarkus:3) All versions No fix listed
redhat/cxf-core(Red Hat:camel_spring_boot:4) All versions No fix listed
redhat/cxf-core(Red Hat:jboss_enterprise_application_platform:7) All versions No fix listed
redhat/jboss-eap-7/eap74-els-openjdk11-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) All versions No fix listed
redhat/jboss-eap-7/eap74-els-openjdk17-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) All versions No fix listed
redhat/jboss-eap-7/eap74-els-openjdk8-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) All versions No fix listed
redhat/cxf-core(Red Hat:jboss_enterprise_application_platform:8) All versions No fix listed
redhat/cxf-core(Red Hat:jboss_enterprise_web_server:5) All versions No fix listed
redhat/cxf-core(Red Hat:red_hat_single_sign_on:7) All versions No fix listed
apache cxf < 3.6.13 3.6.13
apache cxf >= 4.0.0, < 4.1.9 4.1.9
apache cxf >= 4.2.0, < 4.2.4 4.2.4

References