CVE-2025-48795 Apache CXF: Denial of Service and sensitive data exposure in logs
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.cxf:cxf-core Maven | All versions | 3.5.11 |
org.apache.cxf:cxf-core Maven | All versions | 3.5.11 |
org.apache.cxf:cxf-core Maven | From 3.6.0 | 3.6.6 |
org.apache.cxf:cxf-core Maven | From 3.6.0 | 3.6.6 |
org.apache.cxf:cxf-core Maven | From 4.0.0 | 4.0.7 |
org.apache.cxf:cxf-core Maven | From 4.0.0 | 4.0.7 |
2 more packages
org.apache.cxf:cxf-core Maven | From 4.1.0 | 4.1.1 |
org.apache.cxf:cxf-core Maven | From 4.1.0 | 4.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.
Other vulnerabilities in Apache Cxf
- CVE-2012-2379 XML Signature/Encryption Not Validated in Apache CXF
- CVE-2026-66909 Apache CXF: Unsafe deserialization of inbound JMS ObjectMessage
- CVE-2026-68079 Apache CXF: DefaultEncryptingCodeDataProvider allows unlimited authorization code replay
- CVE-2026-50628 Apache CXF: OAuth2: Inverted IP Binding Check Defeats Security Control
- CVE-2025-48913 Apache CXF: Untrusted JMS configuration can lead to RCE
Sources
Also known as CLSA-2026-1768262918, GHSA-36wv-v2qp-v4g4, MINI-2mmg-72mg-4g8h, MINI-2q9r-crq8-pqpq.