CVE-2025-48795 Apache CXF: Denial of Service and sensitive data exposure in logs

Medium 5.6 Published Updated

An attacker can cause a denial of service via memory exhaustion and expose sensitive data in logs due to improper handling of temporary files 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-48795?

CVE-2025-48795 is a medium-severity denial of service vulnerability in Apache Cxf, published on 15 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-400

Which versions are affected by CVE-2025-48795?

8 open source packages ship an affected version, including org.apache.cxf:cxf-core. It affects 1 product.

PackageAffectedFixed in
org.apache.cxf:cxf-core MavenAll versions3.5.11
org.apache.cxf:cxf-core MavenAll versions3.5.11
org.apache.cxf:cxf-core MavenFrom 3.6.03.6.6
org.apache.cxf:cxf-core MavenFrom 3.6.03.6.6
org.apache.cxf:cxf-core MavenFrom 4.0.04.0.7
org.apache.cxf:cxf-core MavenFrom 4.0.04.0.7
2 more packages
org.apache.cxf:cxf-core MavenFrom 4.1.04.1.1
org.apache.cxf:cxf-core MavenFrom 4.1.04.1.1

Products include Apache Cxf.

How do I fix CVE-2025-48795?

Upgrade org.apache.cxf:cxf-core to a fixed version for your release line: 3.5.11, 3.6.6, 4.0.7 or 4.1.1.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-48795 being exploited?

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

All Apache Cxf vulnerabilities

Sources

Also known as CLSA-2026-1768262918, GHSA-36wv-v2qp-v4g4, MINI-2mmg-72mg-4g8h, MINI-2q9r-crq8-pqpq.

Is CVE-2025-48795 in your software?

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

Check your SBOMs for free