CVE-2024-22258CVE-2024-22258: PKCE Downgrade in Spring Authorization Server
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | spring | Fix pending | UBUNTU-CVE-2024-22258 | |
| Ubuntu 26.04 | spring | Under investigation | UBUNTU-CVE-2024-22258 | |
| Ubuntu 25.10 | spring | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-22258 | |
| Ubuntu 24.04 | spring | Under investigation | UBUNTU-CVE-2024-22258 | |
| Ubuntu 22.04 | spring | Under investigation | UBUNTU-CVE-2024-22258 | |
| Ubuntu 20.04 | spring | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-22258 | |
| Ubuntu 18.04 | spring | Fix pending | UBUNTU-CVE-2024-22258 | |
| Ubuntu 16.04 | spring | Fix pending | UBUNTU-CVE-2024-22258 | |
| Maven library | org.springframework.security:spring-security-oauth2-authorization-server | Fixed | 1.2.3 | GHSA-x637-x8p3-5p22 |
What the vendor says
As published in the CVE record by vmware, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Spring: affected: 1.0.x to before 1.0.6, 1.1.x to before 1.1.6, 1.2.x to before 1.2.3; fixed in
1.0.6,1.1.6,1.2.3
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.