GitHub Advisory Database
GHSA-x637-x8p3-5p22
Improper Authentication in Spring Authorization Server
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.springframework.security:spring-security-oauth2-authorization-server | All versions before 1.1.6 (fixed in 1.1.6) |
| Maven | org.springframework.security:spring-security-oauth2-authorization-server | From 1.2.0 before 1.2.3 (fixed in 1.2.3) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-22258
- https://github.com/spring-projects/spring-authorization-server/commit/a7035d22bd2de6c24e7125623d38fb83d8f659a9
- https://spring.io/security/cve-2024-22258
- github.com/spring-projects/spring-authorization-server