CVE-2025-48913: Apache CXF Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-g4px-6qhm-hqjm
CWE-20
Published
Advisory Summary

CVE-2025-48913 is a MODERATE remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Apache CXF libraries in the Maven ecosystem. The issue involves untrusted jms configuration can lead to rce. Remediation is available by upgrading affected packages to version 3.6.8, 4.0.9, 4.1.3.

CVE-2025-48913 at a Glance

CVE Identifier CVE-2025-48913
GHSA Identifier GHSA-g4px-6qhm-hqjm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Apache CXF
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-48913

To remediate this vulnerability, upgrade all affected Apache CXF 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-rt-transports-jms fixed: 3.6.8
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-transports-jms</artifactId>
    <version>3.6.8</version>
</dependency>
org.apache.cxf:cxf-rt-transports-jms fixed: 4.0.9
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-transports-jms</artifactId>
    <version>4.0.9</version>
</dependency>
org.apache.cxf:cxf-rt-transports-jms fixed: 4.1.3
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-transports-jms</artifactId>
    <version>4.1.3</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-48913, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.8), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache CXF, 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

If untrusted users are allowed to configure JMS for Apache CXF, previously they could use RMI or LDAP URLs, potentially leading to code execution capabilities. This interface is now restricted to reject those protocols, removing this possibility. Users are recommended to upgrade to versions 3.6.8, 4.0.9 or 4.1.3, which fix this issue.

CVE-2025-48913 Affected Apache CXF Versions

3 component(s)
Fixed Versions:
3.6.84.0.94.1.3
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.cxf:cxf-rt-transports-jms
Maven
< 3.6.8
3.6.8
org.apache.cxf:cxf-rt-transports-jms
Maven
≥ 4.0.0
< 4.0.9
4.0.9
org.apache.cxf:cxf-rt-transports-jms
Maven
≥ 4.1.0
< 4.1.3
4.1.3

References

Frequently Asked Questions

What is CVE-2025-48913?
CVE-2025-48913 is a security vulnerability in Apache CXF involving Untrusted JMS configuration can lead to RCE under CWE-20: Improper Input Validation.
Which Apache CXF versions are affected?
Affected versions include releases prior to 3.6.8, 4.0.9, 4.1.3 across affected packages: org.apache.cxf:cxf-rt-transports-jms.
What version fixes CVE-2025-48913?
Upgrading to 3.6.8, 4.0.9, 4.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cxf-rt-transports-jms affected?
Yes, org.apache.cxf:cxf-rt-transports-jms is affected in releases prior to 3.6.8, 4.0.9, 4.1.3. Upgrade your dependency to 3.6.8, 4.0.9, 4.1.3 or later.
What CWE is associated with CVE-2025-48913?
CVE-2025-48913 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2025-48913?
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-g4px-6qhm-hqjm",
  "modified" : "2026-01-23T15:14:24Z",
  "published" : "2025-08-08T12:32:17Z",
  "aliases" : [ "CVE-2025-48913" ],
  "summary" : "Apache CXF: Untrusted JMS configuration can lead to RCE",
  "details" : "If untrusted users are allowed to configure JMS for Apache CXF, previously they could use RMI or LDAP URLs, potentially leading to code execution capabilities.  This interface is now restricted to reject those protocols, removing this possibility.\n\nUsers are recommended to upgrade to versions 3.6.8, 4.0.9 or 4.1.3, which fix this issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cxf:cxf-rt-transports-jms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cxf:cxf-rt-transports-jms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cxf:cxf-rt-transports-jms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mbhatt1/disclosures/security/advisories/GHSA-hv69-h8rg-7jg2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48913"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/cxf/commit/24e50ffeca3132570c2f297c5c7dbd05a1bb1bfa"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/cxf"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/f1nv488ztc0js4g5ml2v88mzkzslyh83"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/08/07/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-08T16:44:10Z",
    "nvd_published_at" : "2025-08-08T10:15:25Z"
  }
}