Open Redirect and SSRF Vulnerability in libspring-java: CVE-2024-22262

libspring-java Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2024-22262: Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. Affects libspring-java versions 4.3.30-1 – 4.3.30-3. 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

libspring-java is a Java library that provides support for building web applications using the Spring framework. It includes utilities for handling URLs, among other features. This package is widely used in various applications for its robust capabilities in managing web requests and responses. However, it is susceptible to vulnerabilities that can be exploited if proper validation checks are not implemented when parsing external URLs.

Vulnerability Detail

The vulnerability identified as CVE-2024-22262 arises when applications utilize UriComponentsBuilder to parse externally provided URLs, such as those received through query parameters. If these applications perform validation checks on the host of the parsed URL, they may inadvertently expose themselves to open redirect attacks or Server-Side Request Forgery (SSRF) attacks. This vulnerability is closely related to CVE-2024-22259 and CVE-2024-22243, which highlight similar issues with different input scenarios. The potential ramifications include unauthorized redirection of users or unauthorized access to internal resources, which could lead to data breaches or other security incidents.

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, you can implement stricter validation checks on the URLs being parsed. Ensure that any URLs processed by your application are from trusted sources and do not allow redirection to untrusted hosts. Additionally, consider sanitizing the input to remove any potentially harmful components.

Conclusion

CVE-2024-22262 is a significant vulnerability affecting the libspring-java package, which can lead to serious security risks if not addressed. It is crucial for developers to update their packages and implement proper validation checks to safeguard their applications against potential attacks.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2024-22262 is a vulnerability in the libspring-java package that can lead to open redirect and SSRF attacks if external URLs are not properly validated.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without requiring installation.

Open redirect attacks occur when an application redirects users to an untrusted URL, while SSRF attacks involve an attacker sending requests from the server to internal resources, potentially exposing sensitive data.

Yes, a patched version of the libspring-java package is available. You can update your package to the latest version to mitigate the vulnerability.

If immediate updates are not possible, implement stricter validation checks on URLs and sanitize inputs to minimize the risk of exploitation.

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