Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data
Published 14 May 2022 · Updated 3 Dec 2024
Is your project on an affected org.springframework:spring-core?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=3.0.0 <3.0.6
- Fixed in
- 3.0.6
mvn versions:use-dep-version -Dincludes=org.springframework:spring-core -DdepVersion=3.0.6 -DforceVersion=true- Affected
- >=3.0.0 <3.0.6
- Fixed in
- 3.0.6
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-core -DdepVersion=3.0.6 -DforceVersion=true- Affected
- >=2.0.0 <2.0.7
- Fixed in
- 2.0.7
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-core -DdepVersion=2.0.7 -DforceVersion=trueDetails
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.
Is GHSA-f866-m9mv-2xr3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework:spring-core, and gives you the command that fixes it.
More advisories for org.springframework:spring-core
- LowCVE-2026-41848Spring Framework Denial of Service via AntPathMatcher · 9 Jun 2026
- HighCVE-2025-41249Spring Framework annotation detection mechanism may result in improper authorization · 16 Sept 2025
- HighCVE-2024-22233Spring Framework server Web DoS Vulnerability · 22 Jan 2024
- MediumCVE-2021-22096Improper Output Neutralization for Logs in Spring Framework · 24 May 2022
- HighCVE-2011-2730Improper Neutralization of Directives in Dynamically Evaluated Code in Spring Framework · 17 May 2022
- MediumCVE-2014-3578Improper Limitation of a Pathname to a Restricted Directory in Spring Framework · 14 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2011-2894
- Linkgithub.com/spring-projects/spring-framework/commit/070a723ef2c886770a063eb9a67f84f74e06edfb
- Linkexchange.xforce.ibmcloud.com/vulnerabilities/69687
- Packagegithub.com/spring-projects/spring-framework
- Linkweb.archive.org/web/20120307233721/http://www.springsource.com/security/cve-2011-2894
- Linkosvdb.org/75263
- Linksecurityreason.com/securityalert/8405
- Linkwww.redhat.com/support/errata/RHSA-2011-1334.html
- Linkwww.securityfocus.com/archive/1/519593/100/0/threaded
- Linkwww.securityfocus.com/bid/49536
- Linkwww.springsource.com/security/cve-2011-2894
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.