DoS Vulnerability in libspring-java: ETag Header Parsing Issue

libspring-java Updated 02 Oct 2025

Summary

27/09/2024
N/A
No i
Unrated
Not published

DEBIAN-CVE-2024-38809: Applications that parse ETags from "If-Match" or "If-None-Match" request headers are vulnerable to DoS attack. 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 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 Java framework that provides comprehensive support for developing Java applications. It is widely used for building web applications and services, offering features such as dependency injection, aspect-oriented programming, and transaction management. However, certain versions of libspring-java are vulnerable to a Denial of Service (DoS) attack due to improper handling of ETags in HTTP request headers.

Vulnerability Detail

The vulnerability arises from the way applications parse ETags from the 'If-Match' and 'If-None-Match' request headers. Attackers can exploit this flaw by sending specially crafted headers that can lead to resource exhaustion, causing the application to become unresponsive. This issue affects multiple versions of libspring-java across various Debian releases, making it critical for users to address it promptly.

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, users of affected versions can enforce a size limit on the 'If-Match' and 'If-None-Match' headers. This can be achieved by implementing a filter in the application code that checks the size of these headers before processing them. For example:

public class HeaderSizeFilter implements Filter {
    private static final int MAX_HEADER_SIZE = 1024; // Set a size limit

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        HttpServletRequest httpRequest = (HttpServletRequest) request;
        String ifMatch = httpRequest.getHeader("If-Match");
        String ifNoneMatch = httpRequest.getHeader("If-None-Match");

        if ((ifMatch != null && ifMatch.length() > MAX_HEADER_SIZE) || (ifNoneMatch != null && ifNoneMatch.length() > MAX_HEADER_SIZE)) {
            throw new ServletException("Header size limit exceeded");
        }

        chain.doFilter(request, response);
    }
}

Conclusion

In summary, the DoS vulnerability in libspring-java due to ETag header parsing poses a significant risk to applications using this library. Users are advised to upgrade to the patched version or implement a size limit on relevant headers as a workaround to mitigate potential attacks.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

The vulnerability is a Denial of Service (DoS) issue caused by improper parsing of ETags in HTTP request headers.

All versions of libspring-java across Debian releases 11, 12, 13, and 14 are affected by this vulnerability.

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

If an immediate upgrade is not possible, implement a filter to limit the size of the 'If-Match' and 'If-None-Match' headers as a temporary workaround.

Failure to address this vulnerability could lead to service disruptions, making your application unresponsive to legitimate requests.

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