Vulnerability · Published Mar 20, 2024 · Assigned by vmware
CVE-2024-22258CVE-2024-22258: PKCE Downgrade in Spring Authorization Server
Medium 6.1
In plain English
A medium-severity security flaw in Spring from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.security:spring-security-oauth2-authorization-server | 1.1.6 | GHSA-x637-x8p3-5p22 |
| Maven | org.springframework.security:spring-security-oauth2-authorization-server | 1.2.3 | GHSA-x637-x8p3-5p22 |
| Ubuntu:22.04:LTS | spring | no fix listed | UBUNTU-CVE-2024-22258 |
| Ubuntu:24.04:LTS | spring | no fix listed | UBUNTU-CVE-2024-22258 |
| Ubuntu:25.10 | spring | no fix listed | UBUNTU-CVE-2024-22258 |
| Ubuntu:26.04:LTS | spring | no fix listed | UBUNTU-CVE-2024-22258 |
| Ubuntu:26.10 | spring | no fix listed | UBUNTU-CVE-2024-22258 |
Affected products (as reported)
Weakness: CWE-470 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N