Skip to content
Fencer Vulns
high 8.1

CVE-2022-31690 json

spring-security-oauth2-client vulnerable to Privilege Escalation

published 2022-10-31 4 y ago modified 2026-06-17 4 mo ago also GHSA-32vj-v39g-jh23 , EUVD-2022-7201

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 69%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.springframework.security:spring-security-oauth2-client 5.6.9, 5.7.5
  • vmware spring_security 5.6.9, 5.7.5
  • haproxy openshift 4.10 2.2.19-4.el8
  • jenkins openshift 4.10 2.387.1.1680701869-1.el8
  • haproxy22 openshift 4.10 2.2.19-4.el8
  • openshift openshift 4.10 4.10.0-202303221742.p0.g16bcd69.assembly.stream.el7
  • openshift openshift 4.10 4.10.0-202303221742.p0.g16bcd69.assembly.stream.el8
  • jenkins-2-plugins openshift 4.10 4.10.1680703106-1.el8
  • openshift-hyperkube openshift 4.10 4.10.0-202303221742.p0.g16bcd69.assembly.stream.el7
  • openshift-hyperkube openshift 4.10 4.10.0-202303221742.p0.g16bcd69.assembly.stream.el8

red hat advisories RHSA-2023:1655

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-31690 updated cvss 8.1

spring-security-oauth2-client: Privilege Escalation in spring-security-oauth2-client

  • Red Hat Migration Toolkit for Runtimes org.keycloak-keycloak-parent, org.springframework.security-spring-security-crypto Red Hat OpenShift Developer Tools and Services jenkins
    affected: no fix available
  • Red Hat Integration Camel K 1 spring-security-oauth2-client Red Hat Integration Camel Quarkus 2 spring-security-oauth2-client
    affected: no fix available “Fix deferred”
  • Red Hat JBoss Fuse Service Works 6 spring-security-oauth2-client
    affected: no fix planned “Out of support scope”
  • Red Hat Migration Toolkit for Runtimes 1 on RHEL 8 mtr/mtr-web-container-rhel8 1.0-22
    fixed: vendor fix RHSA-2023:1286
  • Red Hat MTA 6.1 for RHEL 8 mta/mta-windup-addon-rhel8 6.1.0-11
    fixed: vendor fix RHSA-2023:2041
  • Red Hat OpenShift Container Platform 4.10 jenkins 2.387.1.1680701869-1.el8
    fixed: vendor fix RHSA-2023:1655
  • Red Hat A-MQ Clients 2 spring-security-oauth2-client Red Hat Migration Toolkit for Runtimes 1 on RHEL 8 mtr/mtr-rhel8-operator 1.0-13, mtr/mtr-operator-bundle 1.0-37, mtr/mtr-web-executor-container-rhel8 1.0-21 Red Hat MTA 6.1 for RHEL 8 mta/mta-ui-rhel8 6.1.0-13, mta/mta-hub-rhel8 6.1.0-10, mta/mta-rhel8-operator 6.1.0-11, mta/mta-operator-bundle 6.1.0-16, mta/mta-pathfinder-rhel8 6.1.0-7 Red Hat build of Apache Camel for Spring Boot 3 spring-security-oauth2-client Red Hat Data Grid 8 spring-security-oauth2-client Red Hat Decision Manager 7 spring-security-oauth2-client
    +9 more products
    Red Hat Fuse 7 spring-security-oauth2-client Red Hat JBoss Data Grid 7 spring-security-oauth2-client Red Hat JBoss Enterprise Application Platform 6 spring-security-oauth2-client Red Hat JBoss Enterprise Application Platform 7 spring-security-oauth2-client Red Hat JBoss Enterprise Application Platform Expansion Pack spring-security-oauth2-client Red Hat JBoss Fuse 6 spring-security-oauth2-client Red Hat OpenShift Container Platform 4.10 haproxy 2.2.19-4.el8, haproxy22 2.2.19-4.el8, perf 4.18.0-305.85.1.el8_4, kernel 4.18.0-305.85.1.el8_4, bpftool 4.18.0-305.85.1.el8_4, toolbox 0.0.9-1.rhaos4.10.el8, +46 more Red Hat Process Automation 7 spring-security-oauth2-client Red Hat Single Sign-On 7 spring-security-oauth2-client
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
18 mo ago

Exploit prediction

1.25% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.springframework.security:spring-security-oauth2-client
>=5.7.0, <5.7.5
<5.6.9
5.7.5
5.6.9

Affected products

  • n/a Spring Security

Classification

Weakness
  • CWE-269 Improper Privilege Management
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.