VDB
Sign up
MEDIUM5.3

GHSA-v596-fwhq-8x48

Improper Input Validation in org.springframework.security:spring-security-core, org.springframework.security:spring-security-core , and org.springframework:spring-core

Quick fix

GHSA-v596-fwhq-8x48 — org.springframework.security:spring-security-core: upgrade to the fixed version with the command below.

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

Details

Spring Security (Spring Security 4.1.x before 4.1.5, 4.2.x before 4.2.4, and 5.0.x before 5.0.1; and Spring Framework 4.3.x before 4.3.14 and 5.0.x before 5.0.3) does not consider URL path parameters when processing security constraints. By adding a URL path parameter with special encodings, an attacker may be able to bypass a security constraint. The root cause of this issue is a lack of clarity regarding the handling of path parameters in the Servlet Specification. Some Servlet containers include path parameters in the value returned for getPathInfo() and some do not. Spring Security uses the value returned by getPathInfo() as part of the process of mapping requests to security constraints. In this particular attack, different character encodings used in path parameters allows secured Spring MVC static resource URLs to be bypassed.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework.security:spring-security-core
Introduced in: 4.2.0Fixed in: 4.2.4
Fix# pom.xml: bump <version>4.2.4</version> for org.springframework.security:spring-security-core
Maven/org.springframework.security:spring-security-core
Introduced in: 5.0.0Fixed in: 5.0.1
Fix# pom.xml: bump <version>5.0.1</version> for org.springframework.security:spring-security-core
Maven/org.springframework:spring-core
Introduced in: 4.3.0Fixed in: 4.3.14
Fix# pom.xml: bump <version>4.3.14</version> for org.springframework:spring-core
Maven/org.springframework:spring-core
Introduced in: 5.0.0Fixed in: 5.0.3
Fix# pom.xml: bump <version>5.0.3</version> for org.springframework:spring-core
Maven/org.springframework.security:spring-security-core
Introduced in: 4.1.0Fixed in: 4.1.5
Fix# pom.xml: bump <version>4.1.5</version> for org.springframework.security:spring-security-core

References