VDB
Sign up
MEDIUM

GHSA-f866-m9mv-2xr3

Spring Framework and Spring Security vulnerable to Deserialization of Untrusted Data

Quick fix

GHSA-f866-m9mv-2xr3 — org.springframework:spring-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>3.0.6</version> for org.springframework:spring-core

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework:spring-core
Introduced in: 3.0.0Fixed in: 3.0.6
Fix# pom.xml: bump <version>3.0.6</version> for org.springframework:spring-core
Maven/org.springframework.security:spring-security-core
Introduced in: 3.0.0Fixed in: 3.0.6
Fix# pom.xml: bump <version>3.0.6</version> for org.springframework.security:spring-security-core
Maven/org.springframework.security:spring-security-core
Introduced in: 2.0.0Fixed in: 2.0.7
Fix# pom.xml: bump <version>2.0.7</version> for org.springframework.security:spring-security-core

References