CVE-2026-50645: Apache cxf-core No Restriction On Attachment Headers Vulnerability
HIGHCVE-2026-50645 is a HIGH (CVSS 7.5) no restriction on attachment headers vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Apache cxf-core libraries in the Maven ecosystem. The issue involves no restriction on attachment headers per message. Remediation is available by upgrading affected packages to version 4.1.7, 4.2.2, 3.6.12.
CVE-2026-50645 at a Glance
Security Impact
CVSS: 7.5
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:N/I:N/A:H).
How to Fix CVE-2026-50645
To remediate this vulnerability, upgrade all affected Apache 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.1.7</version>
</dependency>
<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>3.6.12</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-50645, 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 Apache 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.1.7), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Apache 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-50645 Affected Apache cxf-core Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.cxf:cxf-core
|
Maven |
≥ 4.0.0
< 4.1.7
|
4.1.7
|
|
org.apache.cxf:cxf-core
|
Maven |
≥ 4.2.0
< 4.2.2
|
4.2.2
|
|
org.apache.cxf:cxf-core
|
Maven |
< 3.6.12
|
3.6.12
|
References
Frequently Asked Questions
What is CVE-2026-50645?
Which Apache cxf-core versions are affected?
What version fixes CVE-2026-50645?
Is cxf-core affected?
What is the CVSS score of CVE-2026-50645?
What CWE is associated with CVE-2026-50645?
How can I check Maven dependencies for CVE-2026-50645?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ghvc-7hp8-2g2v",
"modified" : "2026-08-12T18:43:59Z",
"published" : "2026-06-12T12:31:34Z",
"aliases" : [ "CVE-2026-50645" ],
"summary" : "Apache cxf-core: No restriction on attachment headers per message",
"details" : "There is no restriction on the amount of attachment headers that a message can contain when being deserialized by Apache CXF, which can lead to uncontrolled resource consumption or a denial of service attack. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fix this issue by imposing a maximum default of 500 attachments per message.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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" : "4.0.0"
}, {
"fixed" : "4.1.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cxf:cxf-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.6.12"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-50645"
}, {
"type" : "WEB",
"url" : "https://cxf.apache.org/security-advisories.data/CVE-2026-50645.txt"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/cxf"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/24zb7cqcvykhwm0j797dmdq25s61mj93"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/06/11/12"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-06T19:12:38Z",
"nvd_published_at" : "2026-06-12T10:16:23Z"
}
}