解决CVE-2022-22978 Spring Security RegexRequestMatcher 认证绕过漏洞

Spring 官方通报了一个 Spring Security 框架的认证绕过漏洞 CVE-2022-22978 :

因为 `RegexRequestMatcher` 正则表达式处理的特性,导致可能某些需要认证的 `Servlet` 被绕过。影响版本如下:

  •  5.5.x prior to 5.5.7
  •  5.6.x prior to 5.6.4
  •  Earlier unsupported versions

解决方案:

修改pom.xml,将版本号改为2.6.8

<parent>
    <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
     <version>2.6.8</version>
     <relativePath/>
</parent>

猜你喜欢

转载自blog.csdn.net/watson2017/article/details/127026716