gradle中bootspring打包到tomcat上_Tomcat爆出安全漏洞!Spring Cloud/Boot框架多个版本受影响

转载于:腾讯云中间件

https://mp.weixin.qq.com/s/svPkWRwHHHlFPNyaMIuiAw

01 事件背景

6月25日, Apache 官方安全团队通过邮件公开报告了一个高危漏洞,邮件中介绍了 HTTP/2 拒绝服务漏洞的细节及解决方案。如下图所示:

漏洞详情链接:

http://mail-archives.apache.org/mod_mbox/www-announce/202006.mbox/%3Cfd56bc1d-1219-605b-99c7-946bf7bd8ad4@apache.org%3E

291091881f88d995ed85b4d6138d9f58.png

翻译

  • 漏洞名称:Apache Tomcat HTTP/2 拒绝服务漏洞
  • 漏洞编号:CVE-2020-11996
  • 严重程度: 重要
  • 软件提供商: Apache 软件基金会
  • 受影响的版本:

Apache Tomcat 10.0.0-M1 ~ 10.0.0-M5

Apache Tomcat 9.0.0.M1 ~ 9.0.35

Apache Tomcat 8.5.0 ~ 8.5.55

  • 漏洞描述:一个特别制作的 HTTP/2 请求序列,在短短数秒内能导致 CPU 满负载率,如果有足够数量多的此类请求连接(HTTP/2)并发放在服务器上,服务器可能会失去响应。

如果条件允许,可以通过升级到Tomcat新版本来解决漏洞。下面为受影响版本对应的安全版本:

  • Apache Tomcat 10.0.0-M6+
  • Apache Tomcat 9.0.36+
  • Apache Tomcat 8.5.56+

02 Spring Cloud / Boot 框架影响

Apache Tomcat HTTP/2 拒绝服务漏洞也给Spring Cloud / Boot 框架带来了一定的影响。下面是所有受影响的版本列表,大家可以查看并对照下自己的代码,看看是否受到影响。

Spring Cloud Edgware / Spring Boot 1.5.x

Spring Cloud [Edgware.RELEASE - Edgware.SR6] 版本受到影响。

Spring Boot [1.5.0.RELEASE - 1.5.22.RELEASE] 版本受到影响。

Spring Cloud Finchley / Spring Boot 2.0.x

Spring Cloud [Finchley.RELEASE - Finchley.SR4] 版本受到影响。

Spring Boot [2.0.0.RELEASE - 2.0.9.RELEASE] 版本受到影响。

Spring Cloud Greenwich / Spring Boot 2.1.x

Spring Cloud [Greenwich.RELEASE - Greenwich.SR6] 版本受到影响。

Spring Boot [2.1.0.RELEASE - 2.1.14.RELEASE] 版本受到影响。

Spring Boot [2.1.15.RELEASE] 版本已修复。

Spring Cloud Hoxton / Spring Boot 2.2.x

Spring Cloud [Hoxton.RELEASE - Hoxton.SR6] 版本受到影响。

Spring Boot [2.2.0.RELEASE - 2.2.7.RELEASE] 版本受到影响。

Spring Boot [2.2.8.RELEASE] 版本已修复。

Spring Boot 2.3.x

Spring Boot [2.3.0.RELEASE] 版本受到影响。

Spring Boot [2.3.1.RELEASE] 版本已修复。

03 升级方案

为了避免上述漏洞,现有两种升级方案:

  1. 直接升级Spring Boot版本。
  2. 手动升级Tomcat版本。

升级 Spring Cloud Edgware / Spring Boot 1.5.x

Edgware无法通过升级Spring Boot版本解决问题。

8.5.56org.apache.tomcat.embed            tomcat-embed-core            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-el            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-websocket            ${tomcat-embed.version}org.apache.tomcat            tomcat-annotations-api            ${tomcat-embed.version}

升级Spring Cloud Finchley / Spring Boot 2.0.x

Finchley无法通过升级Spring Boot版本解决问题。

8.5.56org.apache.tomcat.embed            tomcat-embed-core            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-el            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-websocket            ${tomcat-embed.version}

升级Spring Cloud Greenwich / Spring Boot 2.1.x

1. 升级Spring Boot
org.springframework.boot    spring-boot-starter-parent    2.1.15.RELEASE
2. 升级Tomcat
9.0.36org.apache.tomcat.embed            tomcat-embed-core            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-el            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-websocket            ${tomcat-embed.version}

升级Spring Cloud Hoxton / Spring Boot 2.2.x

1. 升级Spring Boot
org.springframework.boot    spring-boot-starter-parent    2.2.8.RELEASE
2. 升级Tomcat
9.0.36org.apache.tomcat.embed            tomcat-embed-core            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-el            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-websocket            ${tomcat-embed.version}

升级Spring Boot 2.3.x

1. 升级Spring Boot
org.springframework.boot    spring-boot-starter-parent    2.3.1.RELEASE
2. 升级Tomcat
9.0.36org.apache.tomcat.embed            tomcat-embed-core            ${tomcat-embed.version}org.apache.tomcat.embed            tomcat-embed-websocket            ${tomcat-embed.version}
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值