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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.security:spring-security-oauth2-client | 5.7.5 | GHSA-32vj-v39g-jh23 |
| Maven | org.springframework.security:spring-security-oauth2-client | 5.6.9 | GHSA-32vj-v39g-jh23 |
| Ubuntu:25.10 | libspring-java | no fix listed | UBUNTU-CVE-2022-31690 |
| Ubuntu:26.04:LTS | libspring-java | no fix listed | UBUNTU-CVE-2022-31690 |
| Ubuntu:26.10 | libspring-java | no fix listed | UBUNTU-CVE-2022-31690 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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) |