CVE-2025-48795
Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.cxf » cxf-core | < 3.5.11>= 3.6.0, < 3.6.6>= 4.0.0, < 4.0.7>= 4.1.0, < 4.1.1 | 3.5.11, 3.6.6, 4.0.7, 4.1.1 |
Blast radius
60% of the dependent artifacts (4,400) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 78,711 |
| 2 hops | 117,591 |
| 3 hops | 125,300 |
| 4 hops | 63,205 |
| 5 hops | 35,295 |
| 6 hops | 29,579 |
Most used dependents
- org.apache.kafka » kafka1,450 usages
- org.apache.cxf » cxf-rt-frontend-jaxws1,379 usages
- org.apache.cxf » cxf-rt-transports-http1,281 usages
- org.apache.cxf » cxf-rt-frontend-jaxrs1,257 usages
- org.apache.cxf » cxf-codegen-plugin811 usages
- io.fabric8 » fabric8-maven-plugin676 usages
- org.apache.camel.kafkaconnector » camel-kafka-connector616 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.cxf » cxf-rt-rs-client515 usages
- org.apache.cxf » cxf-rt-transports-http-jetty513 usages
- org.apache.tika » tika-parsers480 usages
- org.apache.cxf » cxf-rt-ws-security478 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.xwiki.platform » xwiki-platform-oldcore449 usages
- org.wildfly » wildfly-feature-pack372 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2025-48795 | nvd.nist.gov |
| Package | apache/cxf | github.com |
| Web | apache/cxf pull request #2258 | github.com |
| Web | apache/cxf commit 1c1d687 | github.com |
| Web | thread/vo5qv02mvv5plmb6z2xf1ktjmrpv3jmn | lists.apache.org |
| Web | lists/oss-security/2025/07/15/3 | openwall.com |
