Vulnerabilities in pkg:maven/org.apache.cxf/cxf-core
PACKAGECVE-2026-49875 is a CRITICAL (CVSS 9.8) apache cxf has improper restriction vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Cxf core libraries in the Maven ecosystem. The issue involves apache cxf has improper restriction of xml external entity reference. Remediation is available by upgrading affected packages to version 4.2.2, 4.1.7.
pkg:maven/org.apache.cxf/cxf-core
Vulnerability advisories affecting package pkg:maven/org.apache.cxf/cxf-core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xw5h-cmh3-8j6j | CVE-2026-49875 | CRITICAL | Apache CXF has Improper Restriction of XML External Entity Reference |
| GHSA-ghvc-7hp8-2g2v | CVE-2026-50645 | HIGH | Apache cxf-core: No restriction on attachment headers per message |
| GHSA-fh5r-crhr-qrrq | CVE-2025-23184 | HIGH | Apache CXF: Denial of Service vulnerability with temporary files |
| GHSA-36wv-v2qp-v4g4 | CVE-2025-48795 | MODERATE | Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged |
| GHSA-v936-x3j5-c76j | CVE-2017-5656 | HIGH | Session Fixation in Apache CXF |
| GHSA-hgg6-8x62-m9gf | CVE-2017-5653 | MODERATE | Improper Certificate Validation in Apache CXF |
| GHSA-x7xf-253v-x3w8 | CVE-2016-8739 | HIGH | Improper Restriction of XML External Entity Reference in Apache CXF JAX-RS |
| GHSA-vw2c-5wph-v92r | CVE-2016-6812 | MODERATE | Improper Neutralization of Input During Web Page Generation in Apache CXF |
| GHSA-5xf9-3v63-ww6f | CVE-2014-0110 | MODERATE | Uncontrolled Resource Consumption in Apache CXF |
| GHSA-5wqf-h3r3-gxvh | CVE-2014-0109 | MODERATE | Uncontrolled Resource Consumption in Apache CXF |
| GHSA-v45r-rj5x-hpg2 | CVE-2014-0035 | MODERATE | Cleartext Transmission of Sensitive Information in Apache CXF |
| GHSA-3w37-5p3p-jv92 | CVE-2022-46363 | HIGH | Apache CXF vulnerable to Exposure of Sensitive Information |
| GHSA-x3x3-qwjq-8gj4 | CVE-2022-46364 | CRITICAL | Apache CXF Server-Side Request Forgery vulnerability |
| GHSA-7vgj-8mw4-hg8r | CVE-2017-12624 | MODERATE | Improper Input Validation in Apache CXF |
CVE-2026-49875 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-49875
To remediate this vulnerability, upgrade all affected Cxf core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-core</artifactId>
<version>4.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-core</artifactId>
<version>4.1.7</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.cxf
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-49875, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.cxf
Analyze the terminal output to locate any version of Cxf core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.cxf command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Cxf core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-49875 Affected Cxf core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.cxf:cxf-core
|
Maven |
≥ 4.2.0
< 4.2.2
|
4.2.2
|
|
org.apache.cxf:cxf-core
|
Maven |
< 4.1.7
|
4.1.7
|
References
Frequently Asked Questions
What is CVE-2026-49875?
Which Cxf core versions are affected?
What version fixes CVE-2026-49875?
Is cxf-core affected?
What is the CVSS score of CVE-2026-49875?
What CWE is associated with CVE-2026-49875?
How can I check Maven dependencies for CVE-2026-49875?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xw5h-cmh3-8j6j",
"modified" : "2026-10-02T23:10:32Z",
"published" : "2026-06-12T12:31:33Z",
"aliases" : [ "CVE-2026-49875" ],
"summary" : "Apache CXF has Improper Restriction of XML External Entity Reference",
"details" : "Apache CXF's EndpointReferenceUtils and W3CMultiSchemaFactory classes construct a SAXParserFactory without the necessary JAXP hardening configurations, enabling out-of-band (OOB) \nexternal entity resolution. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fix this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cxf:cxf-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cxf:cxf-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-49875"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:36839"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:37390"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-49875"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2488309"
}, {
"type" : "WEB",
"url" : "https://cxf.apache.org/security-advisories.data/CVE-2026-49875.txt"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/cxf"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/3kb9w5bg90xcp06fccoz9k3gpsvyy79o"
}, {
"type" : "WEB",
"url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49875.json"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/06/11/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-02T23:10:32Z",
"nvd_published_at" : "2026-06-12T10:16:22Z"
}
}