Every CVE Search/ Get API key

CVE-2022-31690

spring-security-oauth2-client vulnerable to Privilege Escalation

8.1 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.25%Up 0.4 points since Nov 1, 2022
90%50%10%1%

What each source reports

NVD Score used 8.1

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.

Record
CVE-2022-31690
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
CVE List 8.1

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.

Record
CVE-2022-31690
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
EUVDEUVD-2022-7201 8.1

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.

Record
EUVD-2022-7201
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-32vj-v39g-jh23 8.1

spring-security-oauth2-client vulnerable to Privilege Escalation

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.

Record
GHSA-32vj-v39g-jh23
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-269
Updated
2026-11-02
OSV 8.1

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.

Record
CVE-2022-31690
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-32vj-v39g-jh23 8.1

spring-security-oauth2-client vulnerable to Privilege Escalation

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.

Record
GHSA-32vj-v39g-jh23
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-269
Updated
2026-11-02
OSVRHSA-2023:1655 9.8

Red Hat Security Advisory: OpenShift Container Platform 4.10.56 security update

Record
RHSA-2023:1655
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2022-31690 8.1

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.

Record
UBUNTU-CVE-2022-31690
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.security:spring-security-oauth2-client
Maven
5.7.0 up to 5.7.5
5.7.5
org.springframework.security:spring-security-oauth2-client
Maven
before 5.6.9
5.6.9
org.springframework.security:spring-security-oauth2-client
Maven
5.7.0 up to 5.7.5, plus listed versions
5.7.15.7.25.7.35.7.4
5.7.5
org.springframework.security:spring-security-oauth2-client
Maven
before 5.6.9, plus listed versions
5.0.0.RELEASE5.0.1.RELEASE5.0.10.RELEASE5.0.11.RELEASE5.0.12.RELEASE
Show 45 moreShow less
5.0.13.RELEASE5.0.14.RELEASE5.0.15.RELEASE5.0.16.RELEASE5.0.17.RELEASE5.0.18.RELEASE5.0.19.RELEASE5.0.2.RELEASE5.0.3.RELEASE5.0.4.RELEASE5.0.5.RELEASE5.0.6.RELEASE5.0.7.RELEASE5.0.8.RELEASE5.0.9.RELEASE5.1.0.RELEASE5.1.1.RELEASE5.1.10.RELEASE5.1.11.RELEASE5.1.12.RELEASE5.1.13.RELEASE5.1.2.RELEASE5.1.3.RELEASE5.1.4.RELEASE5.1.5.RELEASE5.1.6.RELEASE5.1.7.RELEASE5.1.8.RELEASE5.1.9.RELEASE5.2.0.RELEASE5.2.1.RELEASE5.2.10.RELEASE5.2.11.RELEASE5.2.12.RELEASE5.2.13.RELEASE5.2.14.RELEASE5.2.15.RELEASE5.2.2.RELEASE5.2.3.RELEASE5.2.4.RELEASE5.2.5.RELEASE5.2.6.RELEASE5.2.7.RELEASE5.2.8.RELEASE5.2.9.RELEASE
5.6.9
openshift
Red Hat:openshift:4.10::el7
before 0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el7
0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el7
openshift-hyperkube
Red Hat:openshift:4.10::el7
before 0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el7
0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el7
openshift
Red Hat:openshift:4.10::el8
before 0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el8
0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el8
openshift-hyperkube
Red Hat:openshift:4.10::el8
before 0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el8
0:4.10.0-202303221742.p0.g16bcd69.assembly.stream.el8
jenkins
Red Hat:openshift:4.10::el8
before 0:2.387.1.1680701869-1.el8
0:2.387.1.1680701869-1.el8
jenkins-2-plugins
Red Hat:openshift:4.10::el8
before 0:4.10.1680703106-1.el8
0:4.10.1680703106-1.el8
Show 13 moreShow less
Affected packages
PackageAffectedFixed
haproxy
Red Hat:openshift:4.10::el8
before 0:2.2.19-4.el8
0:2.2.19-4.el8
haproxy-debugsource
Red Hat:openshift:4.10::el8
before 0:2.2.19-4.el8
0:2.2.19-4.el8
haproxy22
Red Hat:openshift:4.10::el8
before 0:2.2.19-4.el8
0:2.2.19-4.el8
haproxy22-debuginfo
Red Hat:openshift:4.10::el8
before 0:2.2.19-4.el8
0:2.2.19-4.el8
libspring-java
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
3.0.6.RELEASE-73.0.6.RELEASE-83.0.6.RELEASE-93.0.6.RELEASE-103.0.6.RELEASE-11
Show 4 moreShow less
3.0.6.RELEASE-123.0.6.RELEASE-133.0.6.RELEASE-13ubuntu0.1~esm13.0.6.RELEASE-13ubuntu0.1~esm2
None known
libspring-java
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
3.2.13-33.2.13-43.2.13-53.2.13-5ubuntu0.1~esm1
None known
libspring-java
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
4.3.11-14.3.12-14.3.13-24.3.14-14.3.22-1~18.044.3.22-1~18.04.1~esm1
None known
libspring-java
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
4.3.22-44.3.22-4ubuntu0.1~esm1
None known
libspring-java
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
4.3.30-14.3.30-1ubuntu0.1~esm1
None known
libspring-java
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
4.3.30-24.3.30-2ubuntu0.24.04.1~esm1
None known
libspring-java
Ubuntu:25.10
All versions, plus listed versions
4.3.30-2ubuntu14.3.30-3ubuntu1
None known
libspring-java
Ubuntu:26.10
All versions, plus listed versions
4.3.30-3ubuntu1
None known
libspring-java
Ubuntu:26.04:LTS
All versions, plus listed versions
4.3.30-3ubuntu1
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-31690 is a high vulnerability (CVSS 8.1) in Spring Security, published October 31, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.25%, the 69th percentile. Fixed in org.springframework.security:spring-security-oauth2-client 5.7.5.

References

Show 54 moreShow less
This page doesn't list everything

Left out here: 44 versions. The JSON record has them.

MoveEnter Open