PT-2022-6926 · Xstream+5 · Xstream+5

Lai Han

·

Published

2022-12-21

·

Updated

2025-09-29

·

CVE-2022-41966

CVSS v3.1

8.2

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Name of the Vulnerable Software and Affected Versions XStream versions prior to 1.4.20
Description The issue allows a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service via manipulation of the processed input stream. This is achieved by exploiting the hash code implementation for collections and maps, forcing recursive hash calculation and causing a stack overflow.
Recommendations For versions prior to 1.4.20, update to version 1.4.20 to patch the issue, which handles the stack overflow and raises an InputManipulationException instead. As a temporary workaround for users who only use HashMap or HashSet and whose XML refers to these only as default map or set, consider changing the default implementation of java.util.Map and java.util per the code example in the referenced advisory, but ensure your application does not care about the implementation of the map and all elements are comparable.

Exploit

Fix

DoS

Uncontrolled Recursion

Deserialization of Untrusted Data

Stack Overflow

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
BDU:2023-05627
CVE-2022-41966
DLA-3267-1
DSA-5315-1
GHSA-J563-GRX4-PJPV
OESA-2023-1929
OESA-2023-1937
OPENSUSE-SU-2024:12796-1
RHSA-2023:3625
RHSA-2023:3663
SUSE-SU-2023:1673-1
SUSE-SU-2023_1673-1
USN-5946-1

Affected Products

Astra Linux
Jira
Linuxmint
Suse
Ubuntu
Xstream