Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.springframework.security:spring-security-core | >= 3.0.0, < 3.0.6, >= 2.0.0, < 2.0.7 | 3.0.6, 2.0.7 |
| Java / Kotlin (Maven) | org.springframework:spring-core | >= 3.0.0, < 3.0.6 | 3.0.6 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2011-2894
- https://github.com/spring-projects/spring-framework/commit/070a723ef2c886770a063eb9a67f84f74e06edfb
- https://exchange.xforce.ibmcloud.com/vulnerabilities/69687
- https://github.com/spring-projects/spring-framework
- https://web.archive.org/web/20120307233721/http://www.springsource.com/security/cve-2011-2894
- http://osvdb.org/75263
- http://securityreason.com/securityalert/8405
- http://www.redhat.com/support/errata/RHSA-2011-1334.html
- http://www.securityfocus.com/archive/1/519593/100/0/threaded
- http://www.securityfocus.com/bid/49536
- http://www.springsource.com/security/cve-2011-2894
- Weakness (CWE)
CWE-502- Platform
- Java / Kotlin (Maven)
- Package
org.springframework.security:spring-security-core, org.springframework:spring-core- Disclosed
- 14.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-f866-m9mv-2xr3 - CC BY 4.0
Vulnerability history: org.springframework.security:spring-security-core
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 31
- First → latest
- 10.2018 04.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 4
- High 11
- Medium 15
- Low 1
Disclosures per year
- 2018: 3
- 2019: 2
- 2020: 4
- 2021: 1
- 2022: 10
- 2023: 1
- 2024: 4
- 2025: 3
- 2026: 3
-
Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.