CVE-2025-48913 Apache CXF: Untrusted JMS configuration can lead to RCE

Critical 9.8 Published Updated

Attackers with JMS configuration access can achieve remote code execution via RMI or LDAP URLs in Apache CXF.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-48913?

CVE-2025-48913 is a critical code injection vulnerability in Apache Cxf, published on 8 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2025-48913?

6 open source packages ship an affected version, including org.apache.cxf:cxf-rt-transports-jms. It affects 1 product.

PackageAffectedFixed in
org.apache.cxf:cxf-rt-transports-jms MavenAll versions3.6.8
org.apache.cxf:cxf-rt-transports-jms MavenAll versions3.6.8
org.apache.cxf:cxf-rt-transports-jms MavenFrom 4.0.04.0.9
org.apache.cxf:cxf-rt-transports-jms MavenFrom 4.0.04.0.9
org.apache.cxf:cxf-rt-transports-jms MavenFrom 4.1.04.1.3
org.apache.cxf:cxf-rt-transports-jms MavenFrom 4.1.04.1.3

Products include Apache Cxf.

How do I fix CVE-2025-48913?

Upgrade org.apache.cxf:cxf-rt-transports-jms to a fixed version for your release line: 3.6.8, 4.0.9 or 4.1.3.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-48913 being exploited?

There is no known exploitation of CVE-2025-48913 in the wild and no public exploit code.

All Apache Cxf vulnerabilities

Sources

Also known as CLSA-2025-1759795578, CLSA-2025-1766448496, GHSA-g4px-6qhm-hqjm.

Is CVE-2025-48913 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free