CVE-2022-41966

Public Exploit
XStream Denial of Service via stack overflow

Description

XStream serializes Java objects to XML and back again. Versions prior to 1.4.20 may allow a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service only via manipulation the processed input stream. The attack uses the hash code implementation for collections and maps to force recursive hash calculation causing a stack overflow. This issue is patched in version 1.4.20 which handles the stack overflow and raises an InputManipulationException instead. A potential workaround for users who only use HashMap or HashSet and whose XML refers these only as default map or set, is to change the default implementation of java.util.Map and java.util per the code example in the referenced advisory. However, this implies that your application does not care about the implementation of the map and all elements are comparable.

Categories

8.2
CVSS
Severity: High
CVSS 3.1 •
EPSS 4.88% Top 15%
Vendor Advisory github.io
Affected: x-stream xstream
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-41966?
CVE-2022-41966 has been scored as a high severity vulnerability.
How to fix CVE-2022-41966?
To fix CVE-2022-41966, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-41966 being actively exploited in the wild?
It is possible that CVE-2022-41966 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~5% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-41966?
CVE-2022-41966 affects x-stream xstream.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.