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.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.5%top 55.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.security:spring-security-oauth2-authorization-server1.1.6GHSA-x637-x8p3-5p22
Mavenorg.springframework.security:spring-security-oauth2-authorization-server1.2.3GHSA-x637-x8p3-5p22
Ubuntu:22.04:LTSspringno fix listedUBUNTU-CVE-2024-22258
Ubuntu:24.04:LTSspringno fix listedUBUNTU-CVE-2024-22258
Ubuntu:25.10springno fix listedUBUNTU-CVE-2024-22258
Ubuntu:26.04:LTSspringno fix listedUBUNTU-CVE-2024-22258
Ubuntu:26.10springno fix listedUBUNTU-CVE-2024-22258

Affected products (as reported)

VendorProductVersions
Spring Spring 1.0.x – before 1.0.61.1.x – before 1.1.61.2.x – before 1.2.3

Weakness: CWE-470 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References