VDB
Sign up
MEDIUM5.6

GHSA-36wv-v2qp-v4g4

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

Quick fix

GHSA-36wv-v2qp-v4g4 — org.apache.cxf:cxf-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>3.5.11</version> for org.apache.cxf:cxf-core

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.cxf:cxf-core
Introduced in: 0Fixed in: 3.5.11
Fix# pom.xml: bump <version>3.5.11</version> for org.apache.cxf:cxf-core
Maven/org.apache.cxf:cxf-core
Introduced in: 3.6.0Fixed in: 3.6.6
Fix# pom.xml: bump <version>3.6.6</version> for org.apache.cxf:cxf-core
Maven/org.apache.cxf:cxf-core
Introduced in: 4.0.0Fixed in: 4.0.7
Fix# pom.xml: bump <version>4.0.7</version> for org.apache.cxf:cxf-core
Maven/org.apache.cxf:cxf-core
Introduced in: 4.1.0Fixed in: 4.1.1
Fix# pom.xml: bump <version>4.1.1</version> for org.apache.cxf:cxf-core

References