medium5.6
CVE-2025-48795
Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.apache.cxf:cxf-core | < 3.5.11 | 3.5.11 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Apache | Cxf | Versions 3.5.10, 3.6.5, 4.0.6, 4.1.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://lists.apache.org/thread/vo5qv02mvv5plmb6z2xf1ktjmrpv3jmn
- http://www.openwall.com/lists/oss-security/2025/07/15/3
- https://github.com/advisories/GHSA-36wv-v2qp-v4g4
- https://nvd.nist.gov/vuln/detail/CVE-2025-48795
- https://github.com/apache/cxf/pull/2258
- https://github.com/apache/cxf/commit/1c1d687f8e295f433a3592a3bc0b0a63c432bfde