站长

Tomcat爆出安全漏洞!Spring Cloud/Boot框架多个版本受影响

作者:admin 2021-09-18 我要评论

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

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

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
Tomcat爆出安全漏洞!Spring Cloud/Boot框架多个版本受影响

翻译

  • 漏洞名称: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 升级方案

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

直接升级Spring Boot版本。

手动升级Tomcat版本。

升级 Spring Cloud Edgware / Spring Boot 1.5.x

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

  1. <properties> 
  2.     <tomcat-embed.version>8.5.56</tomcat-embed.version> 
  3. </properties> 
  4.  
  5. <dependencyManagement> 
  6.     <dependencies> 
  7.         <dependency> 
  8.             <groupId>org.apache.tomcat.embed</groupId> 
  9.             <artifactId>tomcat-embed-core</artifactId> 
  10.             <version>${tomcat-embed.version}</version> 
  11.         </dependency> 
  12.         <dependency> 
  13.             <groupId>org.apache.tomcat.embed</groupId> 
  14.             <artifactId>tomcat-embed-el</artifactId> 
  15.             <version>${tomcat-embed.version}</version> 
  16.         </dependency> 
  17.         <dependency> 
  18.             <groupId>org.apache.tomcat.embed</groupId> 
  19.             <artifactId>tomcat-embed-websocket</artifactId> 
  20.             <version>${tomcat-embed.version}</version> 
  21.         </dependency> 
  22.         <dependency> 
  23.             <groupId>org.apache.tomcat</groupId> 
  24.             <artifactId>tomcat-annotations-api</artifactId> 
  25.             <version>${tomcat-embed.version}</version> 
  26.         </dependency> 
  27.     </dependencies> 
  28. </dependencyManagement> 

升级Spring Cloud Finchley / Spring Boot 2.0.x

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

  1. <properties> 
  2.     <tomcat-embed.version>8.5.56</tomcat-embed.version> 
  3. </properties> 
  4.  
  5. <dependencyManagement> 
  6.     <dependencies> 
  7.         <dependency> 
  8.             <groupId>org.apache.tomcat.embed</groupId> 
  9.             <artifactId>tomcat-embed-core</artifactId> 
  10.             <version>${tomcat-embed.version}</version> 
  11.         </dependency> 
  12.         <dependency> 
  13.             <groupId>org.apache.tomcat.embed</groupId> 
  14.             <artifactId>tomcat-embed-el</artifactId> 
  15.             <version>${tomcat-embed.version}</version> 
  16.         </dependency> 
  17.         <dependency> 
  18.             <groupId>org.apache.tomcat.embed</groupId> 
  19.             <artifactId>tomcat-embed-websocket</artifactId> 
  20.             <version>${tomcat-embed.version}</version> 
  21.         </dependency> 
  22.     </dependencies> 
  23. </dependencyManagement> 

升级Spring Cloud Greenwich / Spring Boot 2.1.x

1. 升级Spring Boot

  1. <parent> 
  2.     <groupId>org.springframework.boot</groupId> 
  3.     <artifactId>spring-boot-starter-parent</artifactId> 
  4.     <version>2.1.15.RELEASE</version> 
  5. </parent> 

2. 升级Tomcat

  1. <properties> 
  2.     <tomcat-embed.version>9.0.36</tomcat-embed.version> 
  3. </properties> 
  4.  
  5. <dependencyManagement> 
  6.     <dependencies> 
  7.         <dependency> 
  8.             <groupId>org.apache.tomcat.embed</groupId> 
  9.             <artifactId>tomcat-embed-core</artifactId> 
  10.             <version>${tomcat-embed.version}</version> 
  11.         </dependency> 
  12.         <dependency> 
  13.             <groupId>org.apache.tomcat.embed</groupId> 
  14.             <artifactId>tomcat-embed-el</artifactId> 
  15.             <version>${tomcat-embed.version}</version> 
  16.         </dependency> 
  17.         <dependency> 
  18.             <groupId>org.apache.tomcat.embed</groupId> 
  19.             <artifactId>tomcat-embed-websocket</artifactId> 
  20.             <version>${tomcat-embed.version}</version> 
  21.         </dependency> 
  22.     </dependencies> 
  23. </dependencyManagement> 

升级Spring Cloud Hoxton / Spring Boot 2.2.x

1. 升级Spring Boot

  1. <parent> 
  2.     <groupId>org.springframework.boot</groupId> 
  3.     <artifactId>spring-boot-starter-parent</artifactId> 
  4.     <version>2.2.8.RELEASE</version> 
  5. </parent> 

2. 升级Tomcat

  1. <properties> 
  2.     <tomcat-embed.version>9.0.36</tomcat-embed.version> 
  3. </properties> 
  4.  
  5. <dependencyManagement> 
  6.     <dependencies> 
  7.         <dependency> 
  8.             <groupId>org.apache.tomcat.embed</groupId> 
  9.             <artifactId>tomcat-embed-core</artifactId> 
  10.             <version>${tomcat-embed.version}</version> 
  11.         </dependency> 
  12.         <dependency> 
  13.             <groupId>org.apache.tomcat.embed</groupId> 
  14.             <artifactId>tomcat-embed-el</artifactId> 
  15.             <version>${tomcat-embed.version}</version> 
  16.         </dependency> 
  17.         <dependency> 
  18.             <groupId>org.apache.tomcat.embed</groupId> 
  19.             <artifactId>tomcat-embed-websocket</artifactId> 
  20.             <version>${tomcat-embed.version}</version> 
  21.         </dependency> 
  22.     </dependencies> 
  23. </dependencyManagement> 

升级Spring Boot 2.3.x

1. 升级Spring Boot

  1. <parent> 
  2.     <groupId>org.springframework.boot</groupId> 
  3.     <artifactId>spring-boot-starter-parent</artifactId> 
  4.     <version>2.3.1.RELEASE</version> 
  5. </parent> 

2. 升级Tomcat

  1. <properties> 
  2.     <tomcat-embed.version>9.0.36</tomcat-embed.version> 
  3. </properties> 
  4.  
  5. <dependencyManagement> 
  6.     <dependencies> 
  7.         <dependency> 
  8.             <groupId>org.apache.tomcat.embed</groupId> 
  9.             <artifactId>tomcat-embed-core</artifactId> 
  10.             <version>${tomcat-embed.version}</version> 
  11.         </dependency> 
  12.         <dependency> 
  13.             <groupId>org.apache.tomcat.embed</groupId> 
  14.             <artifactId>tomcat-embed-websocket</artifactId> 
  15.             <version>${tomcat-embed.version}</version> 
  16.         </dependency>    </dependencies></dependencyManagement> 

本文转载自网络,原文链接:https://www.toutiao.com/a6847291871652217358/

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • Tomcat爆出安全漏洞!Spring Cloud/Boo

    Tomcat爆出安全漏洞!Spring Cloud/Boo

  • “新基建”视野下网络安全新趋势

    “新基建”视野下网络安全新趋势

  • 想成为网安人才的后浪?绿盟科技安全服

    想成为网安人才的后浪?绿盟科技安全服

  • 拥有230万粉丝的网红被指控进行网络诈

    拥有230万粉丝的网红被指控进行网络诈

腾讯云代理商
海外云服务器