CVE-2025-48795: Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged
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.
Published Jul 15, 2025 · Updated Nov 5, 2025
Affected packages
org.apache.cxf:cxf-core
- Ecosystem
- Maven
- Affected
- < 3.5.11
- Fixed in
- 3.5.11
- Check
mvn dependency:tree -Dincludes=org.apache.cxf:cxf-core
org.apache.cxf:cxf-core
- Ecosystem
- Maven
- Affected
- >= 3.6.0, < 3.6.6
- Fixed in
- 3.6.6
- Check
mvn dependency:tree -Dincludes=org.apache.cxf:cxf-core
org.apache.cxf:cxf-core
- Ecosystem
- Maven
- Affected
- >= 4.1.0, < 4.1.1
- Fixed in
- 4.1.1
- Check
mvn dependency:tree -Dincludes=org.apache.cxf:cxf-core
org.apache.cxf:cxf-core
- Ecosystem
- Maven
- Affected
- >= 4.0.0, < 4.0.7
- Fixed in
- 4.0.7
- Check
mvn dependency:tree -Dincludes=org.apache.cxf:cxf-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to pavelarnost.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-49875
Apache CXF has Improper Restriction of XML External Entity Reference
critical9.8Jun 12, 2026CVE-2026-50645
Apache cxf-core: No restriction on attachment headers per message
high7.5Jun 12, 2026CVE-2025-23184
Apache CXF: Denial of Service vulnerability with temporary files
high7.5Jan 21, 2025
