Privilege Escalation Vulnerability in libspring-java Package

libspring-java Updated 02 Oct 2025

Summary

31/10/2022
N/A
No i
High
8.1

UBUNTU-CVE-2022-31690: 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. Affects libspring-java versions 3.0.6.RELEASE-10 – 3.0.6.RELEASE-9. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The libspring-java package is a core component of the Spring Framework, which is widely used for building Java applications. It provides comprehensive infrastructure support for developing Java applications, including features for dependency injection, transaction management, and web application development. This package is critical for developers leveraging the Spring ecosystem, and its security is paramount to prevent unauthorized access and privilege escalation.

Vulnerability Detail

The vulnerability identified as CVE-2022-31690 affects Spring Security versions prior to 5.7.5 and 5.6.9, as well as older unsupported versions. It allows a malicious user to modify requests to the Authorization Server, potentially leading to privilege escalation. This occurs when the Authorization Server responds with an OAuth2 Access Token Response that contains an empty scope list, which can be exploited during subsequent requests to obtain access tokens. The ramifications of this vulnerability can be severe, as it may allow unauthorized users to gain elevated privileges within the application.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary measure, users can restrict access to the Authorization Server and implement additional validation checks on incoming requests to mitigate the risk of privilege escalation until the package is updated.

Conclusion

The CVE-2022-31690 vulnerability poses a significant risk to applications using the libspring-java package. It is crucial for developers to update their packages to the latest versions to protect against potential privilege escalation attacks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2022-31690 is a vulnerability in the Spring Security framework that allows for privilege escalation under certain conditions.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access and privilege escalation, allowing attackers to perform actions they should not be permitted to.

Yes, there are patched versions of the libspring-java package available. Users should upgrade to the latest versions to mitigate the risk.

The CVSS score for CVE-2022-31690 is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for libspring-java.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback