Open Redirect and SSRF Vulnerability in libspring-java Package

libspring-java Updated 02 Oct 2025

Summary

16/04/2024
N/A
No i
High
8.1

UBUNTU-CVE-2024-22262: Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The libspring-java package is a core component of the Spring Framework, 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. However, certain versions of this package are vulnerable to a security flaw that can lead to open redirect and server-side request forgery (SSRF) attacks, potentially compromising application security.

Vulnerability Detail

The vulnerability arises from the use of UriComponentsBuilder to parse externally provided URLs, such as those received through query parameters. If validation checks on the host of the parsed URL are not adequately implemented, attackers may exploit this flaw to redirect users to malicious sites or perform SSRF attacks. This vulnerability is associated with CVE-2024-22262 and is linked to other CVEs, including CVE-2024-22259 and CVE-2024-22243, highlighting a broader issue within the Spring Framework's URL handling capabilities.

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 workaround, developers should implement strict validation checks on the host of any URLs parsed by UriComponentsBuilder. This can be done by ensuring that only trusted hosts are allowed and by rejecting any URLs that do not meet specific criteria. Additionally, consider using a whitelist of acceptable domains to mitigate the risk of open redirects and SSRF attacks.

Conclusion

The libspring-java package has a critical vulnerability that can lead to open redirect and SSRF attacks. It is crucial for developers to update to the latest patched version to ensure the security of their applications. Implementing strict validation checks can serve as a temporary measure until the update is applied.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.1, indicating a high severity level.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability can lead to open redirects, allowing attackers to redirect users to malicious sites, or SSRF attacks, which can compromise internal services.

Yes, updating to the latest patched version of libspring-java, such as 4.3.30-2ubuntu1, will mitigate this vulnerability.

If an immediate update is not possible, implement strict validation checks on URLs parsed by UriComponentsBuilder as a temporary workaround.

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