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.
Advisories
Source ID Title
EUVD EUVD EUVD-2022-7201 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.
Github GHSA Github GHSA GHSA-32vj-v39g-jh23 spring-security-oauth2-client vulnerable to Privilege Escalation
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 08 May 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2025-05-08T18:47:35.924Z

Reserved: 2022-05-25T00:00:00.000Z

Link: CVE-2022-31690

cve-icon Vulnrichment

Updated: 2024-08-03T07:26:01.073Z

cve-icon NVD

Status : Modified

Published: 2022-10-31T20:15:12.727

Modified: 2025-05-08T19:15:52.213

Link: CVE-2022-31690

cve-icon Redhat

Severity : Important

Publid Date: 2022-10-31T00:00:00Z

Links: CVE-2022-31690 - Bugzilla

cve-icon OpenCVE Enrichment

No data.