Open Redirect and SSRF Vulnerability in libspring-java

libspring-java Updated 02 Oct 2025

Summary

16/03/2024
N/A
No i
Unrated
Not published

CVE-2024-22259: Applications that use UriComponentsBuilder in Spring Framework to parse an externally provided URL (e.g. Affects libspring-java versions < df041ba032cceb9ca5c96214fe238b91c3f94f63. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libspring-java is a package in the Debian ecosystem that provides the Spring Framework for Java applications. The Spring Framework is a popular open-source framework for building enterprise-level Java applications. It offers a wide range of features and functionalities to simplify the development process. However, applications using UriComponentsBuilder in libspring-java to parse externally provided URLs and perform validation checks on the host of the parsed URL may be vulnerable to an open redirect or SSRF attack.

Vulnerability Detail

The vulnerability (CVE-2024-22259) arises when applications use UriComponentsBuilder in libspring-java to parse an externally provided URL and perform validation checks on the host of the parsed URL. If the URL passes the validation checks, it can be used in a way that enables an open redirect attack or an SSRF attack. An open redirect attack occurs when an attacker tricks a user into clicking on a maliciously crafted link that redirects them to a different website. An SSRF attack, on the other hand, involves an attacker exploiting the application to make requests to internal resources or external systems that the application has access to.

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 can implement additional validation checks on the parsed URL to mitigate the risk of open redirect and SSRF attacks. This can include validating the scheme, port, and other components of the URL to ensure that it is safe to use. However, it is important to note that workarounds may not provide complete protection and updating to a patched version of libspring-java is still recommended.

Conclusion

The open redirect and SSRF vulnerability in libspring-java can pose a significant risk to applications that use UriComponentsBuilder for parsing and validating externally provided URLs. It is crucial to update the libspring-java package to a patched version and review the application's usage of UriComponentsBuilder to prevent potential attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

libspring-java is a package in the Debian ecosystem that provides the Spring Framework for Java applications. It is widely used for developing enterprise-level Java applications.

An open redirect attack occurs when an attacker tricks a user into clicking on a maliciously crafted link that redirects them to a different website. This can be used to deceive users or exploit vulnerabilities in the target website.

SSRF stands for Server-Side Request Forgery. It involves an attacker exploiting an application to make requests to internal resources or external systems that the application has access to. This can be used to bypass security measures or gather sensitive information.

To fix this vulnerability, it is recommended to update the libspring-java package to a version that includes the necessary security patches. Additionally, review the application's usage of UriComponentsBuilder and ensure proper validation checks are in place.

As a temporary workaround, developers can implement additional validation checks on the parsed URL to mitigate the risk of open redirect and SSRF attacks. However, it is important to note that workarounds may not provide complete protection.

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