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

libspring-java Updated 02 Oct 2025

Summary

23/02/2024
N/A
No i
Unrated
Not published

DEBIAN-CVE-2024-22243: 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 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

libspring-java is a widely used library in Java applications that provides functionalities for building and manipulating URI components. It is integral for applications that require URL parsing and validation. However, due to its handling of externally provided URLs, it is susceptible to security vulnerabilities, particularly when validation checks are improperly implemented.

Vulnerability Detail

The vulnerability identified as CVE-2024-22243 arises when applications using UriComponentsBuilder to parse externally provided URLs fail to adequately validate the host of the parsed URL. This oversight can lead to open redirect attacks, where an attacker can redirect users to malicious sites, or Server-Side Request Forgery (SSRF) attacks, where an attacker can manipulate the server to make requests to internal resources. The risk is particularly pronounced if the application relies on validation checks that do not sufficiently mitigate these threats.

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 host of the parsed URLs. This can be done by ensuring that only whitelisted domains are allowed, and any URLs that do not meet this criterion should be rejected. Example code snippet for validation:

if (!whitelistedDomains.contains(parsedUrl.getHost())) {
    throw new IllegalArgumentException("Invalid URL host");
}

Conclusion

CVE-2024-22243 presents a significant security risk for applications using libspring-java due to its handling of externally provided URLs. It is crucial to update the package to the latest version and implement proper validation checks to safeguard against potential attacks.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2024-22243 is a vulnerability in the libspring-java package that can lead to open redirect and SSRF attacks due to improper validation of externally provided URLs.

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

Open redirect attacks allow attackers to redirect users to malicious sites, while SSRF attacks enable attackers to make requests to internal resources from the server.

You can update libspring-java by running the command 'sudo apt-get update && sudo apt-get install libspring-java' in your terminal.

If an immediate update is not possible, implement stricter validation checks on the host of parsed URLs to mitigate the risk temporarily.

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