# CVE-2022-31690: spring-security-oauth2-client vulnerable to Privilege Escalation

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Published: 2022-10-31T00:00:00.000Z
- Modified: 2026-06-17T04:46:05.043Z
- Also known as: GHSA-32vj-v39g-jh23
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Spring Security: Spring Security (5.7 to 5.7.4 and 5.6 to 5.6.8 as well as older, unsupported versions)
- org.springframework.security:spring-security-oauth2-client (Maven): from 5.7.0 before 5.7.5; before 5.6.9
- vmware spring_security: from 5.6.0 before 5.6.9; from 5.7.0 before 5.7.5
- netapp active_iq_unified_manager: no versions given

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://tanzu.vmware.com/security/cve-2022-31690> (mitigation, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221215-0010/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31690> (advisory)
- <https://github.com/spring-projects/spring-security-samples/blob/4638e1e428ee2ddab234199eb3b67b9c94dfa08b/servlet/spring-boot/java/oauth2/webclient/src/main/java/example/SecurityConfiguration.java#L48> (web)
- <https://security.netapp.com/advisory/ntap-20221215-0010> (web)

## Sources

- CVE List: [CVE-2022-31690](https://www.cve.org/CVERecord?id=CVE-2022-31690), CVE Terms of Use, modified 2025-05-08
- GitHub Advisory Database: [GHSA-32vj-v39g-jh23](https://github.com/advisories/GHSA-32vj-v39g-jh23), CC-BY-4.0, modified 2024-02-17
- NVD: [CVE-2022-31690](https://nvd.nist.gov/vuln/detail/CVE-2022-31690), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31690 · Whole record: https://cve.day/CVE-2022-31690.json · Rebuilt by cve.day 2026-11-25T22:58:16.087Z
