CVE-2026-49875

Apache CXF: XML External Entity (XXE) Injection in W3CMultiSchemaFactory and EndpointReferenceUtils

Published Jun 12, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Apache CXF's EndpointReferenceUtils and W3CMultiSchemaFactory classes construct a SAXParserFactory without the necessary JAXP hardening configurations, enabling out-of-band (OOB)
external entity resolution. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fix this issue.

Analysis

AI-generated

Technical impact

Apache CXF’s EndpointReferenceUtils and W3CMultiSchemaFactory classes construct a SAXParserFactory without the necessary JAXP hardening configurations, which permits out-of-band external entity resolution. This flaw can be used to read arbitrary local files or, if an attacker can influence the external entity, potentially execute code on the host system. The vulnerability is a classic XML External Entity (XXE) flaw and is classified as CWE‑611.

Affected Systems

The issue affects Apache CXF implementations from the Apache Software Foundation that include the vulnerable classes. All versions prior to 4.2.2 and 4.1.7 are impacted, while those that have been updated to 4.2.2 or higher, or 4.1.7, are considered patched.

Risk and Exploitability

The EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalog, so a precise likelihood cannot be quantified from public data. The CVSS score is 6.5, indicating a moderate severity risk. Nevertheless, the weakness requires an attacker to supply crafted XML input to the application; once the library processes that input, the external entity can be resolved. Thus the exploitability depends on whether the application exposes an endpoint that accepts user-supplied XML. If such an endpoint exists, an attacker could feasibly trigger the XXE and exfiltrate data or affect local resources.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache CXF to version 4.2.2, 4.1.7, or 3.6.12, which removes the insecure SAXParserFactory construction.
  • If an upgrade is infeasible, ensure that XML parsing is performed with JAXP hardening enabled, such as setting SAXParserFactory features "http://apache.org/xml/features/disallow-doctype-decl" to true to block external entity resolution.
  • Apply network segmentation or firewall rules to limit outbound traffic from the host, thereby mitigating potential out‑of‑band data leaks, and monitor for unexpected DNS or HTTP requests originating from the application.

Generated by OpenCVE AI on August 7, 2026 at 13:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xw5h-cmh3-8j6j Apache CXF has Improper Restriction of XML External Entity Reference
History
Type Values Removed Values Added
First Time appeared Redhat
Redhat build Of Apache Camel
Redhat enterprise Linux
Redhat fuse
Redhat jboss Enterprise Application Platform
Redhat jboss Web Server
Redhat single Sign-on
CPEs cpe:2.3:a:redhat:build_of_apache_camel:*:*:*:*:*:quarkus:*:*
cpe:2.3:a:redhat:build_of_apache_camel:*:*:*:*:*:spring_boot:*:*
cpe:2.3:a:redhat:build_of_apache_camel:3.33.2:-:*:*:*:quarkus:*:*
cpe:2.3:a:redhat:build_of_apache_camel:3.33.2:update1:*:*:*:quarkus:*:*
cpe:2.3:a:redhat:build_of_apache_camel:4.18.1:-:*:*:*:spring_boot:*:*
cpe:2.3:a:redhat:fuse:7.0.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:jboss_enterprise_application_platform:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:jboss_web_server:5.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:single_sign-on:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Vendors & Products Redhat
Redhat build Of Apache Camel
Redhat enterprise Linux
Redhat fuse
Redhat jboss Enterprise Application Platform
Redhat jboss Web Server
Redhat single Sign-on
Type Values Removed Values Added
Description Apache CXF's EndpointReferenceUtils and W3CMultiSchemaFactory classes construct a SAXParserFactory without the necessary JAXP hardening configurations, enabling out-of-band (OOB) external entity resolution. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fix this issue. Apache CXF's EndpointReferenceUtils and W3CMultiSchemaFactory classes construct a SAXParserFactory without the necessary JAXP hardening configurations, enabling out-of-band (OOB) external entity resolution. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fix this issue.
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Apache
Apache cxf
Vendors & Products Apache
Apache cxf
Type Values Removed Values Added
Description Apache CXF's EndpointReferenceUtils and W3CMultiSchemaFactory classes construct a SAXParserFactory without the necessary JAXP hardening configurations, enabling out-of-band (OOB) external entity resolution. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fix this issue.
Title Apache CXF: XML External Entity (XXE) Injection in W3CMultiSchemaFactory and EndpointReferenceUtils
Weaknesses CWE-611
References
Weaknesses
  • CWE-611

    Improper Restriction of XML External Entity Reference

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Aug 7, 2026, 12:42 PM
Reserved
Jun 2, 2026, 8:45 AM
Status
Analyzed
Published
Jun 12, 2026, 10:16 AM
Modified
Oct 29, 2026, 2:43 PM
Severity
Important
Public date
Jun 12, 2026, 8:54 AM