Denial of Service Vulnerability in libxstream-java: Stack Overflow Risk

libxstream-java Updated 02 Oct 2025

Summary

08/11/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-47072: XStream is a simple library to serialize objects to XML and back again. Affects libxstream-java versions < 1.4.15-3+deb11u3. Fixed in 1.4.15-3+deb11u3. 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

libxstream-java is a Java library that facilitates the serialization of objects to XML and vice versa. It is widely used in applications that require data interchange in XML format. The library's functionality includes converting Java objects into XML and reconstructing them back into objects. However, it has been found to be vulnerable to a specific issue when configured to use the BinaryStreamDriver, which can lead to severe application instability.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2024-47072 allows a remote attacker to exploit the BinaryStreamDriver configuration in libxstream-java. By manipulating the input stream, an attacker can trigger a stack overflow error, resulting in a denial of service. This vulnerability is particularly concerning as it can cause applications to terminate unexpectedly, impacting availability and reliability. The issue has been addressed in version 1.4.21 of the library, which now raises an InputManipulationException instead of allowing the stack overflow to occur.

How To Fix

Minimum fixed version

1.4.15-3+deb11u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libxstream-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately possible, users can implement a workaround by catching the StackOverflowError in the client code that calls XStream when configured with the BinaryStreamDriver. This can be done using the following code snippet:

try {

    // Code that uses XStream
} catch (StackOverflowError e) {
    // Handle the error gracefully
    System.err.println("Stack overflow detected: " + e.getMessage());
}

Conclusion

The vulnerability in libxstream-java poses a significant risk of denial of service due to stack overflow errors when using the BinaryStreamDriver. Users are strongly advised to upgrade to the latest patched versions to ensure application stability and security. Implementing the suggested workaround can provide temporary relief until an upgrade is feasible.

See every vulnerability recorded for libxstream-java →

Share this vulnerability

FAQ

libxstream-java is a Java library used for serializing and deserializing Java objects to and from XML.

The vulnerability allows remote attackers to exploit the BinaryStreamDriver configuration, leading to a stack overflow and denial of service.

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

You can catch the StackOverflowError in your client code as a temporary workaround until you can upgrade.

Related vulnerabilities

Recent vulnerabilities recorded for libxstream-java.

How To Fix

Minimum fixed version

1.4.15-3+deb11u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libxstream-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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