CVE-2022-31690
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.
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
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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 Critical
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-oauth2-clientMaven |
5.7.0 up to 5.7.5 | 5.7.5 |
org.springframework.security:spring-security-oauth2-clientMaven |
before 5.6.9 | 5.6.9 |
org.springframework.security:spring-security-oauth2-clientMaven |
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-clientMaven |
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 less5.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 |
openshiftRed 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-hyperkubeRed 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 |
openshiftRed 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-hyperkubeRed 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 |
jenkinsRed Hat:openshift:4.10::el8 |
before 0:2.387.1.1680701869-1.el8 | 0:2.387.1.1680701869-1.el8 |
jenkins-2-pluginsRed Hat:openshift:4.10::el8 |
before 0:4.10.1680703106-1.el8 | 0:4.10.1680703106-1.el8 |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
haproxyRed Hat:openshift:4.10::el8 |
before 0:2.2.19-4.el8 | 0:2.2.19-4.el8 |
haproxy-debugsourceRed Hat:openshift:4.10::el8 |
before 0:2.2.19-4.el8 | 0:2.2.19-4.el8 |
haproxy22Red Hat:openshift:4.10::el8 |
before 0:2.2.19-4.el8 | 0:2.2.19-4.el8 |
haproxy22-debuginfoRed Hat:openshift:4.10::el8 |
before 0:2.2.19-4.el8 | 0:2.2.19-4.el8 |
libspring-javaUbuntu: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 less3.0.6.RELEASE-123.0.6.RELEASE-133.0.6.RELEASE-13ubuntu0.1~esm13.0.6.RELEASE-13ubuntu0.1~esm2 |
None known |
libspring-javaUbuntu: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-javaUbuntu: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-javaUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 4.3.22-44.3.22-4ubuntu0.1~esm1 |
None known |
libspring-javaUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 4.3.30-14.3.30-1ubuntu0.1~esm1 |
None known |
libspring-javaUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 4.3.30-24.3.30-2ubuntu0.24.04.1~esm1 |
None known |
libspring-javaUbuntu:25.10 |
All versions, plus listed versions 4.3.30-2ubuntu14.3.30-3ubuntu1 |
None known |
libspring-javaUbuntu:26.10 |
All versions, plus listed versions 4.3.30-3ubuntu1 |
None known |
libspring-javaUbuntu:26.04:LTS |
All versions, plus listed versions 4.3.30-3ubuntu1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE 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
tanzu.vmware.com/security/cve-2022-31690
security.netapp.com/advisory/ntap-20221215-0010
nvd.nist.gov/vuln/detail/CVE-2022-31690
github.com/spring-projects/spring-security-samples/blob/4638e1e428ee2ddab234199eb3b67b9c94dfa08b/servlet/spring-boot/java/oauth2/webclient/src/main/java/example/SecurityConfiguration.java
github.com/advisories/GHSA-32vj-v39g-jh23
github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31690.json
Show 54 moreShow less
access.redhat.com/errata/RHSA-2023:1655
access.redhat.com/security/updates/classification
docs.openshift.com/container-platform/4.10/release_notes/ocp-4-10-release-notes.html
bugzilla.redhat.com/show_bug.cgi?id=2127804
bugzilla.redhat.com/show_bug.cgi?id=2135435
bugzilla.redhat.com/show_bug.cgi?id=2162200
bugzilla.redhat.com/show_bug.cgi?id=2162206
bugzilla.redhat.com/show_bug.cgi?id=2164278
bugzilla.redhat.com/show_bug.cgi?id=2177626
bugzilla.redhat.com/show_bug.cgi?id=2177629
bugzilla.redhat.com/show_bug.cgi?id=2177632
bugzilla.redhat.com/show_bug.cgi?id=2177634
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1655.json
access.redhat.com/security/cve/CVE-2022-3172
cve.org/CVERecord?id=CVE-2022-3172
nvd.nist.gov/vuln/detail/CVE-2022-3172
github.com/kubernetes/kubernetes/issues/112513
access.redhat.com/security/cve/CVE-2022-31690
cve.org/CVERecord?id=CVE-2022-31690
spring.io/security/cve-2022-31690
access.redhat.com/security/cve/CVE-2022-31692
cve.org/CVERecord?id=CVE-2022-31692
nvd.nist.gov/vuln/detail/CVE-2022-31692
spring.io/security/cve-2022-31692
access.redhat.com/security/cve/CVE-2022-42889
cve.org/CVERecord?id=CVE-2022-42889
nvd.nist.gov/vuln/detail/CVE-2022-42889
blogs.apache.org/security/entry/cve-2022-42889
lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
seclists.org/oss-sec/2022/q4/22
access.redhat.com/security/cve/CVE-2023-24422
cve.org/CVERecord?id=CVE-2023-24422
nvd.nist.gov/vuln/detail/CVE-2023-24422
jenkins.io/security/advisory/2023-01-24
access.redhat.com/security/cve/CVE-2023-25725
bugzilla.redhat.com/show_bug.cgi?id=2169089
cve.org/CVERecord?id=CVE-2023-25725
nvd.nist.gov/vuln/detail/CVE-2023-25725
haproxy.com/blog/february-2023-header-parser-fixed
mail-archive.com/[email protected]/msg43229.html
access.redhat.com/security/cve/CVE-2023-27898
cve.org/CVERecord?id=CVE-2023-27898
nvd.nist.gov/vuln/detail/CVE-2023-27898
jenkins.io/security/advisory/2023-03-08
access.redhat.com/security/cve/CVE-2023-27899
cve.org/CVERecord?id=CVE-2023-27899
nvd.nist.gov/vuln/detail/CVE-2023-27899
access.redhat.com/security/cve/CVE-2023-27903
cve.org/CVERecord?id=CVE-2023-27903
nvd.nist.gov/vuln/detail/CVE-2023-27903
access.redhat.com/security/cve/CVE-2023-27904
cve.org/CVERecord?id=CVE-2023-27904
nvd.nist.gov/vuln/detail/CVE-2023-27904
ubuntu.com/security/CVE-2022-31690
Left out here: 44 versions. The JSON record has them.