CVE-2025-48795: Cxf core Denial of Service Vulnerability
MODERATECVE-2025-48795 is a MODERATE (CVSS 5.6) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Cxf core libraries in the Maven ecosystem. The issue involves apache cxf is vulnerable to dos attacks as entire files are read into memory and logged. Remediation is available by upgrading affected packages to version 3.5.11, 3.6.6, 4.0.7, 4.1.1.
CVE-2025-48795 at a Glance
Security Impact
CVSS: 5.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-48795
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>3.5.11</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-core</artifactId>
<version>3.6.6</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-core</artifactId>
<version>4.0.7</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-core</artifactId>
<version>4.1.1</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-2025-48795, 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 3.5.11), 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 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-2025-48795 Affected Cxf core Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.cxf:cxf-core
|
Maven |
< 3.5.11
|
3.5.11
|
|
org.apache.cxf:cxf-core
|
Maven |
≥ 3.6.0
< 3.6.6
|
3.6.6
|
|
org.apache.cxf:cxf-core
|
Maven |
≥ 4.0.0
< 4.0.7
|
4.0.7
|
|
org.apache.cxf:cxf-core
|
Maven |
≥ 4.1.0
< 4.1.1
|
4.1.1
|
References
Frequently Asked Questions
What is CVE-2025-48795?
Which Cxf core versions are affected?
What version fixes CVE-2025-48795?
Is cxf-core affected?
What is the CVSS score of CVE-2025-48795?
What CWE is associated with CVE-2025-48795?
How can I check Maven dependencies for CVE-2025-48795?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-36wv-v2qp-v4g4",
"modified" : "2025-11-05T20:31:08Z",
"published" : "2025-07-15T15:31:00Z",
"aliases" : [ "CVE-2025-48795" ],
"summary" : "Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged",
"details" : "Apache CXF stores large stream based messages as temporary files on the local filesystem. A bug was introduced which means that the entire temporary file is read into memory and then logged. An attacker might be able to exploit this to cause a denial of service attack by causing an out of memory exception. In addition, it is possible to configure CXF to encrypt temporary files to prevent sensitive credentials from being cached unencrypted on the local filesystem, however this bug means that the cached files are written out to logs unencrypted.\n\nUsers are recommended to upgrade to versions 3.5.11, 3.6.6, 4.0.7 or 4.1.1, which fixes this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cxf:cxf-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.5.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cxf:cxf-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.6.0"
}, {
"fixed" : "3.6.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cxf:cxf-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cxf:cxf-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48795"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/cxf/pull/2258"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/cxf/commit/1c1d687f8e295f433a3592a3bc0b0a63c432bfde"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/cxf"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/vo5qv02mvv5plmb6z2xf1ktjmrpv3jmn"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2025/07/15/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-16T14:27:18Z",
"nvd_published_at" : "2025-07-15T15:15:24Z"
}
}