Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2022-22965 — Spring Framework中通过JDK 9+上的数据绑定实现的RCE漏洞(CVE-2022-22965,又名“Spring4Shell”) | Kitploit
工具/GitHubGitHub/guayoyocyber/cve-2022-22965
漏洞分析漏洞利用Web安全学习与教育实验室与实践
GitHubguayoyocyber/cve-2022-22965

CVE-2022-22965

Spring Framework中通过JDK 9+上的数据绑定实现的RCE漏洞(CVE-2022-22965,又名“Spring4Shell”)

查看仓库
6364年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2022-22965 又称 "Spring4Shell"

通过 JDK 9+ 上的 Data Binding 实现 Spring Framework RCE 漏洞

目的是尽可能集中目前关于该漏洞的公开信息,并能够知道在这种情况下应采取什么行动。

我的应用程序是否容易受到攻击?

需要满足以下条件(AND):

  • JDK 9 +
  • Apache Tomcat 作为 Servlet 容器
  • 应用程序打包为 WAR
  • 依赖 spring-webmvc 或 spring-webflux

我的应用程序是作为 Spring Boot 可执行 jar 构建的,它容易受到攻击吗?

目前,该漏洞无法通过此方式利用。但请注意,这个漏洞更为通用,因此可能存在其他利用方式。

受影响的产品

Spring Framework

  • 5.3.0 至 5.3.17
  • 5.2.0 至 5.2.19

更早或不再支持的版本也受影响。

缓解措施

Spring Framework

  • 5.3.18+
  • 5.2.20+

其他缓解替代方案

如果无法修补漏洞,Spring 发布了一些变通方案。

Apache Tomcat 已发布了 3 个新版本,提供适当的保护:10.0.20、9.0.62 和 8.5.78,建议将其作为 Spring Framework 升级之外的附加保护层。

其他更新

Spring Boot 2.6.6 和 2.5.12 已发布,它们依赖于 Spring Framework 5.3.18。

检测

可以使用工具 https://github.com/hillu/local-spring-vuln-scanner (镜像) 来检测易受 Spring4Shell 攻击的实例。 一个可能的执行示例如下:

./local-spring-vuln-scanner --verbose --log </path/to/file.log> </path/to/app1> </path/to/appN>

我们为 Wazuh 开发了一个检测规则,您可以在本仓库的 "detection" 目录中找到它,该规则基于一系列攻击指标(IOA)能够检测到攻击尝试。

其他 CVE 和/或误解

  • 有关于一个提交的猜测,认为该提交是为了弃用 SerializationUtils.deserialize(...) 方法而做的确认。但该类并不暴露给外部输入,且该弃用与此漏洞无关。

  • 与 Spring Cloud Function 的 CVE 存在混淆:该 CVE 恰好在此漏洞报告之前发布,即 CVE-2022-22963。同样与此漏洞无关。

实验室

TryHackMe 创建了一个 Spring4Shell 的交互式利用实验室

  • https://tryhackme.com/room/spring4shell

参考文献

  • https://tanzu.vmware.com/security/cve-2022-22965
  • https://app.howlermonkey.io/vulnerabilities/CVE-2022-22965
  • https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement
  • https://spring.io/blog/2022/04/01/spring-framework-rce-mitigation-alternative
  • https://www.lunasec.io/docs/blog/spring-rce-vulnerabilities
  • https://www.cyberkendra.com/2022/03/spring4shell-details-and-exploit-code.html
  • https://www.praetorian.com/blog/spring-core-jdk9-rce/
  • https://mp.weixin.qq.com/s/kgw-O4Hsd9r2vfme3Y2Ynw
  • http://blog.o0o.nu/2010/06/cve-2010-1622.html
  • https://www.microsoft.com/security/blog/2022/04/04/springshell-rce-vulnerability-guidance-for-protecting-against-and-detecting-cve-2022-22965/
  • https://unit42.paloaltonetworks.com/cve-2022-22965-springshell/
下载工具