Vulnerability in libxstream-java - Stack Overflow Denial of Service

libxstream-java Updated 02 Oct 2025

Summary

11/01/2023
N/A
Yes i
Unrated
Not published

DSA-5315-1: libxstream-java - security update. Affects libxstream-java versions < 1.4.15-3+deb11u2. Fixed in 1.4.15-3+deb11u2. 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

libxstream-java is a library that allows for the serialization and deserialization of Java objects to XML and vice versa. It is commonly used in Java applications to facilitate data exchange and storage. However, versions prior to 1.4.15-3+deb11u2 are susceptible to a stack overflow vulnerability that can be exploited remotely. This vulnerability arises from a flaw in the hash code implementation for collections and maps, which can be manipulated to force recursive hash calculation, resulting in a stack overflow error. This can lead to a denial of service, causing the application to terminate unexpectedly.

Vulnerability Detail

The vulnerability in libxstream-java arises from a stack overflow error that can be triggered by a remote attacker through manipulation of the input stream. By exploiting the flawed hash code implementation, the attacker can force recursive hash calculation, overwhelming the stack and causing the application to crash. This denial of service attack can disrupt the normal functioning of the application and potentially impact its availability. The vulnerability has been assigned the identifier CVE-2022-41966.

How To Fix

Minimum fixed version

1.4.15-3+deb11u2

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

There is no known workaround for this vulnerability. It is essential to apply the provided fix by upgrading to the patched version of libxstream-java.

Conclusion

The vulnerability in libxstream-java can be exploited by a remote attacker to trigger a stack overflow error, resulting in a denial of service. To mitigate this vulnerability, it is crucial to upgrade to version 1.4.15-3+deb11u2 or later. No known workarounds are available, and it is recommended to apply the provided fix as soon as possible. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libxstream-java →

Share this vulnerability

FAQ

libxstream-java is a library used for serializing and deserializing Java objects to XML and XML to Java objects. It provides a convenient way to exchange data between Java applications and XML-based systems.

The vulnerability allows a remote attacker to trigger a stack overflow error, leading to a denial of service. This can cause the affected application to crash and become unavailable.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will provide real-time alerts for any open-source vulnerabilities, including this one.

No, there is no known workaround for this vulnerability. It is crucial to apply the provided fix by upgrading to the patched version of libxstream-java.

You can find more information about this vulnerability, including its security status and related details, on the Debian Security Tracker page for libxstream-java at https://security-tracker.debian.org/tracker/libxstream-java.

Related vulnerabilities

Recent vulnerabilities recorded for libxstream-java.

How To Fix

Minimum fixed version

1.4.15-3+deb11u2

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