Vulnerability · Published Oct 31, 2022 · Assigned by vmware

CVE-2022-31690

High 8.1

In plain English

A high-severity security flaw in Spring Security. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)1.2%top 30.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Spring Security, versions 5.7 prior to 5.7.5, and 5.6 prior to 5.6.9, and older unsupported versions could be susceptible to a privilege escalation under certain conditions. A malicious user or attacker can modify a request initiated by the Client (via the browser) to the Authorization Server which can lead to a privilege escalation on the subsequent approval. This scenario can happen if the Authorization Server responds with an OAuth2 Access Token Response containing an empty scope list (per RFC 6749, Section 5.1) on the subsequent request to the token endpoint to obtain the access token.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.security:spring-security-oauth2-client5.7.5GHSA-32vj-v39g-jh23
Mavenorg.springframework.security:spring-security-oauth2-client5.6.9GHSA-32vj-v39g-jh23
Ubuntu:25.10libspring-javano fix listedUBUNTU-CVE-2022-31690
Ubuntu:26.04:LTSlibspring-javano fix listedUBUNTU-CVE-2022-31690
Ubuntu:26.10libspring-javano fix listedUBUNTU-CVE-2022-31690

Affected products (as reported)

VendorProductVersions
n/a Spring Security Spring Security (5.7 to 5.7.4 and 5.6 to 5.6.8 as well as older, unsupported versions)

References