CVE-2024-22258
Improper Authentication in Spring Authorization Server
Description
Spring Authorization Server versions 1.0.0 - 1.0.5, 1.1.0 - 1.1.5, 1.2.0 - 1.2.2 and older unsupported versions are susceptible to a PKCE Downgrade Attack for Confidential Clients.
Specifically, an application is vulnerable when a Confidential Client uses PKCE for the Authorization Code Grant.
An application is not vulnerable when a Public Client uses PKCE for the Authorization Code Grant.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-oauth2-authorization-server | < 1.1.6>= 1.2.0, < 1.2.3 | 1.1.6, 1.2.3 |
Blast radius
75% of the dependent artifacts (53) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,521 |
| 2 hops | 290 |
| 3 hops | 185 |
| 4 hops | 93 |
Most used dependents
- org.springframework.boot » spring-boot-starter-oauth2-authorization-server29 usages
- cn.herodotus.engine » oauth2-sdk-data-jpa3 usages
- com.labijie.application » framework-auth-starter3 usages
- cn.herodotus.engine » oauth2-sdk-authentication2 usages
- cn.herodotus.engine » oauth2-sdk-authorization2 usages
- com.hccake » ballcat-spring-security-oauth2-authorization-server2 usages
- com.lrenyi » template-web2 usages
- cn.koala » koala-authorization-server2 usages
- cn.com.tltim.pigx » pigx-common-security2 usages
- cn.herodotus.stirrup » oauth2-module-authentication2 usages
- io.github.ljf652201786 » action-common-auth-core2 usages
- cn.herodotus.engine » oauth2-sdk-management1 usages
- cn.herodotus.engine » oauth2-sdk-authorization-server1 usages
- top.binfast » common-security1 usages
- cn.herodotus.engine » oauth2-sdk-authentication-server1 usages
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.
References
| Advisory | NVD CVE-2024-22258 | nvd.nist.gov |
| Web | spring-projects/spring-authorization-server commit a7035d2 | github.com |
| Web | security/cve-2024-22258 | spring.io |
