Skip to content
OpenAdvisories
Medium Public exploit CVE-2011-2894 EUVD-2022-3723GHSA-f866-m9mv-2xr3

Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data

Published Oct 4, 2011 · Updated Aug 6, 2024 · Assigned by redhat

Description

Spring Framework 3.0.0 through 3.0.5, Spring Security 3.0.0 through 3.0.5 and 2.0.0 through 2.0.6, and possibly other versions deserialize objects from untrusted sources, which allows remote attackers to bypass intended security restrictions and execute untrusted code by (1) serializing a java.lang.Proxy instance and using InvocationHandler, or (2) accessing internal AOP interfaces, as demonstrated using deserialization of a DefaultListableBeanFactory instance to execute arbitrary commands via the java.lang.Runtime class.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework:spring-core >= 3.0.0, < 3.0.6 3.0.6 GHSA-f866-m9mv-2xr3
Maven org.springframework.security:spring-security-core >= 3.0.0, < 3.0.6 3.0.6 GHSA-f866-m9mv-2xr3
Maven org.springframework.security:spring-security-core >= 2.0.0, < 2.0.7 2.0.7 GHSA-f866-m9mv-2xr3

References