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
| Vector | AV: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 👾
Related Identifiers
Affected Products
Astra Linux
Jira
Linuxmint
Suse
Ubuntu
Xstream