chickenlj opened a new issue #9380: URL: https://github.com/apache/dubbo/issues/9380
最近,主流日志组件 [log4j2](https://logging.apache.org/log4j/2.x/) 爆出[安全漏洞 CVE-2021-44228](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228)。 以下是漏洞 CVE-2021-44228 对 Apache Dubbo 框架的影响总结及用户应对指南。 ## Dubbo 影响范围 **该漏洞对 Dubbo 框架使用安全并无影响。** Dubbo 本身不强依赖 log4j2 框架,也不会通过依赖传递将 log4j2 带到业务工程中去,因此,正在使用 Dubbo 2.7.x、3.0.x 等版本的用户均无需强制升级 Dubbo 版本。 以下是 Dubbo 各组件对 log4j2 的依赖分析,涉及 `dubbo-common`、`dubbo-spring-boot-starter`、`dubbo-spring-boot-actuator`: * dubbo-common 包含对 `log4j-core` 的可选依赖,请检查项目是否自身启用了 log4j 依赖,如启用则对应升级即可。 ```xml [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ dubbo-common --- [INFO] org.apache.dubbo:dubbo-common:jar:2.7.14-SNAPSHOT [INFO] +- org.apache.logging.log4j:log4j-api:jar:2.11.1:provided [INFO] \- org.apache.logging.log4j:log4j-core:jar:2.11.1:provided ``` * dubbo-spring-boot-starter 通过 spring-boot 组件传递依赖了 log4j-api 依赖,本身并无安全问题,升级 log4j-core 组件时注意兼容性 ```xml [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ dubbo-spring-boot-starter --- [INFO] org.apache.dubbo:dubbo-spring-boot-starter:jar:2.7.14-SNAPSHOT [INFO] \- org.springframework.boot:spring-boot-starter:jar:2.3.1.RELEASE:compile (optional) [INFO] \- org.springframework.boot:spring-boot-starter-logging:jar:2.3.1.RELEASE:compile (optional) [INFO] \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile (optional) [INFO] \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile (optional) ``` * dubbo-spring-boot-actuator 通过 spring-boot 组件传递依赖了 log4j-api 依赖,本身并无安全问题,升级 log4j-core 组件时注意兼容性 ```xml [INFO] org.apache.dubbo:dubbo-spring-boot-actuator:jar:2.7.14-SNAPSHOT [INFO] \- org.springframework.boot:spring-boot-starter-web:jar:2.3.1.RELEASE:compile (optional) [INFO] \- org.springframework.boot:spring-boot-starter:jar:2.3.1.RELEASE:compile [INFO] \- org.springframework.boot:spring-boot-starter-logging:jar:2.3.1.RELEASE:compile [INFO] \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile [INFO] \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile ``` ## 后续动作 Dubbo 仍将在接下来的 2.7.x、3.0.x 最新版本中升级 log4j-core 可选(optional)依赖到最新安全版本,请持续关注社区动态并按需升级。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
