ADVISORIES

GitHub Advisory Database

GHSA-hh32-7344-cg2f

Authorization bypass in Spring Security

Critical CVE-2022-22978

Details

In Spring Security versions 5.5.6 and 5.5.7 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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework.security:spring-security-core
From 5.5.0 before 5.5.7 (fixed in 5.5.7)
Mavenorg.springframework.security:spring-security-core
From 5.6.0 before 5.6.4 (fixed in 5.6.4)
Mavenorg.springframework.security:spring-security-core
All versions before 5.4.11 (fixed in 5.4.11)
Mavenorg.springframework.security:spring-security-web
From 5.5.0 before 5.5.7 (fixed in 5.5.7)
Mavenorg.springframework.security:spring-security-web
From 5.6.0 before 5.6.4 (fixed in 5.6.4)
Mavenorg.springframework.security:spring-security-web
All versions before 5.4.11 (fixed in 5.4.11)

References