CVE-2025-48795: Apache CXF: Denial of Service and sensitive data exposure in logs
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.cxf:cxf-coreto a version that resolves this vulnerability.Fixed in 4.0.7 - Upgrade
Upgrade
maven/org.apache.cxf:cxf-coreto a version that resolves this vulnerability.Fixed in 4.1.1 - Upgrade
Upgrade
maven/org.apache.cxf:cxf-coreto a version that resolves this vulnerability.Fixed in 3.6.6 - Upgrade
Upgrade
maven/org.apache.cxf:cxf-coreto a version that resolves this vulnerability.Fixed in 3.5.11 - Upgrade
Upgrade
Apache CXFto a version that resolves this vulnerability.Fixed in 3.5.11 - Upgrade
Upgrade
Apache CXFto a version that resolves this vulnerability.Fixed in 3.6.6 - Upgrade
Upgrade
Apache CXFto a version that resolves this vulnerability.Fixed in 4.0.7 - Upgrade
Upgrade
Apache CXFto a version that resolves this vulnerability.Fixed in 4.1.1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-48795?
CVE-2025-48795 is classified as a medium severity vulnerability.
How do I fix CVE-2025-48795?
To mitigate CVE-2025-48795, upgrade Apache CXF to version 3.5.11 or later, 3.6.6 or later, 4.0.7 or later, or 4.1.1 or later.
What is the impact of CVE-2025-48795?
CVE-2025-48795 can lead to a denial of service due to excessive memory consumption caused by large stream based messages being logged.
Which versions of Apache CXF are affected by CVE-2025-48795?
Apache CXF versions prior to 3.5.11, 3.6.6, 4.0.7, and 4.1.1 are affected by CVE-2025-48795.
Who can be affected by CVE-2025-48795?
Any organization using the affected versions of Apache CXF for processing large stream based messages may be vulnerable to CVE-2025-48795.