Skip to content
OpenAdvisories
High · 8.1 CVE-2022-31690 EUVD-2022-7201GHSA-32vj-v39g-jh23

spring-security-oauth2-client vulnerable to Privilege Escalation

Published Oct 31, 2022 · Updated May 8, 2025 · Assigned by vmware

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 products

VendorProductAffectedFixed
— Spring Security Spring Security (5.7 to 5.7.4 and 5.6 to 5.6.8 as well as older, unsupported versions) —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 haproxy +1 2.2.19-4.el8 RHSA-2023:1655
Red Hat OpenShift 4 jenkins 2.387.1.1680701869-1.el8 RHSA-2023:1655
Red Hat OpenShift 4 jenkins-2-plugins 4.10.1680703106-1.el8 RHSA-2023:1655
Red Hat OpenShift 4 openshift +1 4.10.0-202303221742.p0.g16bcd69.assembly.stream.el7 RHSA-2023:1655

Affected packages

Advisories 4

References