Skip to content
Fencer Vulns
medium 6.1

CVE-2024-22258 json

CVE-2024-22258: PKCE Downgrade in Spring Authorization Server

published 2024-03-20 2 y ago modified 2026-06-17 4 mo ago also GHSA-x637-x8p3-5p22 , EUVD-2024-1035

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 44%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.springframework.security:spring-security-oauth2-authorization-server 1.1.6, 1.2.3
  • Spring Spring 1.0.6, 1.1.6, 1.2.3

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.53% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
maven org.springframework.security:spring-security-oauth2-authorization-server
<1.1.6
>=1.2.0, <1.2.3
1.1.6
1.2.3

Affected products

  • Spring Spring

Classification

Weakness
  • CWE-470 Use of Externally-Controlled Input to Select Classes or Code
  • CWE-287 Improper Authentication

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.