CVE-2025-48795: Cxf core Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-36wv-v2qp-v4g4
CVSS 5.6
CWE-400
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-48795
GHSA Identifier GHSA-36wv-v2qp-v4g4
Severity MODERATE
CVSS v3.1 Base Score 5.6
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Cxf core
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

org.apache.cxf:cxf-core fixed: 3.5.11
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-core</artifactId>
    <version>3.5.11</version>
</dependency>
org.apache.cxf:cxf-core fixed: 3.6.6
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-core</artifactId>
    <version>3.6.6</version>
</dependency>
org.apache.cxf:cxf-core fixed: 4.0.7
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-core</artifactId>
    <version>4.0.7</version>
</dependency>
org.apache.cxf:cxf-core fixed: 4.1.1
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-core</artifactId>
    <version>4.1.1</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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. Users are recommended to upgrade to versions 3.5.11, 3.6.6, 4.0.7 or 4.1.1, which fixes this issue.

CVE-2025-48795 Affected Cxf core Versions

4 component(s)
Fixed Versions:
3.5.113.6.64.0.74.1.1
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?
CVE-2025-48795 is a security vulnerability in Cxf core involving Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged under CWE-400: Uncontrolled Resource Consumption.
Which Cxf core versions are affected?
Affected versions include releases prior to 3.5.11, 3.6.6, 4.0.7, 4.1.1 across affected packages: org.apache.cxf:cxf-core.
What version fixes CVE-2025-48795?
Upgrading to 3.5.11, 3.6.6, 4.0.7, 4.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cxf-core affected?
Yes, org.apache.cxf:cxf-core is affected in releases prior to 3.5.11, 3.6.6, 4.0.7, 4.1.1. Upgrade your dependency to 3.5.11, 3.6.6, 4.0.7, 4.1.1 or later.
What is the CVSS score of CVE-2025-48795?
CVE-2025-48795 has a CVSS v3.1 base score of 5.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-48795?
CVE-2025-48795 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for CVE-2025-48795?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.cxf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}