NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-48795: Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged

mediumCVSS 3.1 5.6GHSA-36wv-v2qp-v4g4

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 entries