All reports
Medium

Apache CXF is vulnerable to DoS attacks as entire files are read into memory and logged

Affected versions

Affected versions
>= 4.1.0, < 4.1.1
Fixed version
4.1.1
Affected versions
>= 4.0.0, < 4.0.7
Fixed version
4.0.7
Affected versions
< 3.5.11
Fixed version
3.5.11
Affected versions
>= 3.6.0, < 3.6.6
Fixed version
3.6.6
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-48795

Probability of exploitation in the next 30 days: 0.74%

FIRST EPSS · 2026-11-23

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.

Links

Credits

  • pavelarnost