MODERATE

CVE-2011-2894

Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.springframework » spring-core
>= 3.0.0, < 3.0.6
3.0.6
org.springframework.security » spring-security-core
>= 2.0.0, < 2.0.7>= 3.0.0, < 3.0.6
2.0.7, 3.0.6

Blast radius

2affected artifacts
37affected versions
5,851dependent artifacts (est.)
125,615dependent versions

53% of the dependent artifacts (3,111) still pull an affected version in their latest release.

DepthDependent versions
Direct
10,241
2 hops
40,714
3 hops
50,811
4 hops
15,820
5 hops
6,135
6 hops
1,894

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.