CRITICAL 9.8

CVE-2022-22978

Authorization bypass in Spring Security

Description

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 Maven artifacts (2)

ArtifactAffected versionsFixed in
org.springframework.security » spring-security-core
< 5.4.11>= 5.5.0, < 5.5.7>= 5.6.0, < 5.6.4
5.4.11, 5.5.7, 5.6.4
org.springframework.security » spring-security-web
< 5.4.11>= 5.5.0, < 5.5.7>= 5.6.0, < 5.6.4
5.4.11, 5.5.7, 5.6.4

Blast radius

2affected artifacts
440affected versions
14,509dependent artifacts (est.)
1,697,082dependent versions

100% of the dependent artifacts (14,509) still pull an affected version in their latest release.

DepthDependent versions
Direct
178,302
2 hops
537,267
3 hops
578,037
4 hops
232,429
5 hops
127,468
6 hops
43,579

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.