Log4j Vulnerability Impact

Log4j CVE-2021-44228 Vulnerability Impact

Recently, the mainstream logging component log4j2 exposed a security vulnerability CVE-2021-44228.

Below is a summary of the impact of vulnerability CVE-2021-44228 on the Apache Dubbo framework and user response guidelines.

Dubbo Impact Range

This vulnerability does not affect the security use of the Dubbo framework.

Dubbo itself does not strongly depend on the log4j2 framework, nor does it bring log4j2 into the business project through dependencies. Therefore, users using Dubbo versions 2.7.x, 3.0.x, etc., do not need to forcibly upgrade the Dubbo version.

Below is the dependency analysis of various Dubbo components on log4j2, involving dubbo-common, dubbo-spring-boot-starter, dubbo-spring-boot-actuator:

  • dubbo-common includes an optional dependency on log4j-core. Please check whether the project itself has enabled log4j dependencies. If enabled, upgrade accordingly.
  1. [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ dubbo-common ---
  2. [INFO] org.apache.dubbo:dubbo-common:jar:2.7.14-SNAPSHOT
  3. [INFO] +- org.apache.logging.log4j:log4j-api:jar:2.11.1:provided
  4. [INFO] \- org.apache.logging.log4j:log4j-core:jar:2.11.1:provided
  • dubbo-spring-boot-starter passes the log4j-api dependency through the spring-boot component. The log4j-api itself has no security issues. Pay attention to the compatibility with log4j-api when upgrading the log4j-core component.
  1. [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ dubbo-spring-boot-starter ---
  2. [INFO] org.apache.dubbo:dubbo-spring-boot-starter:jar:2.7.14-SNAPSHOT
  3. [INFO] \- org.springframework.boot:spring-boot-starter:jar:2.3.1.RELEASE:compile (optional)
  4. [INFO] \- org.springframework.boot:spring-boot-starter-logging:jar:2.3.1.RELEASE:compile (optional)
  5. [INFO] \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile (optional)
  6. [INFO] \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile (optional)
  • dubbo-spring-boot-actuator passes the log4j-api dependency through the spring-boot component. The log4j-api itself has no security issues. Pay attention to the compatibility with log4j-api when upgrading the log4j-core component.
  1. [INFO] org.apache.dubbo:dubbo-spring-boot-actuator:jar:2.7.14-SNAPSHOT
  2. [INFO] \- org.springframework.boot:spring-boot-starter-web:jar:2.3.1.RELEASE:compile (optional)
  3. [INFO] \- org.springframework.boot:spring-boot-starter:jar:2.3.1.RELEASE:compile
  4. [INFO] \- org.springframework.boot:spring-boot-starter-logging:jar:2.3.1.RELEASE:compile
  5. [INFO] \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
  6. [INFO] \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile

Feedback

Was this page helpful?

Yes No

Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)