Authorization bypass in Spring Security
Spring Security
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.security:spring-security-core Maven |
|
|
| org.springframework.security:spring-security-web |
Spring Security
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.security:spring-security-core Maven |
|
|
| org.springframework.security:spring-security-web |
|
|
In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can easily be misconfigured to be bypassed on some servlet containers. Applications using RegexRequestMatcher with `.` in the regular expression are possibly vulnerable to an authorization bypass.
From the CVE record · vmware
Spring Security’s RegexRequestMatcher can be misconfigured on some servlet containers. In applications that use `.` in a RegexRequestMatcher regular expression, an attacker may bypass authorization checks. The input does not specify whether authentication or user interaction is required.
Teams using Maven spring-security-core or spring-security-web in affected versions before 5.4.11, from 5.5.0 to before 5.5.7, or from 5.6.0 to before 5.6.4 should check their applications.