CVE-2022-41966
CVSS v3
7.5
HIGH
EPSS Score
9.0 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for xstream.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- com.thoughtworks.xstream:xstreamMavenall versions · fixed in 1.4.20
Vendor advisories
xstream: Denial of Service by injecting recursive collections or maps based on element's hash values raising a stack overflow
xstream as a component of Red Hat build of Apicurio Registry 2 · xstream as a component of Red Hat build of Quarkus · xstream as a component of Red Hat Data Grid 8
Red Hat Security Advisory: Red Hat Process Automation Manager 7.13.5 security update
Red Hat Security Advisory: Red Hat Fuse 7.12 release and security update
Red Hat Security Advisory: OpenShift Container Platform 4.10.62 security update
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
Red Hat Security Advisory: Red Hat Integration Camel for Spring Boot 3.20.1 security update
4 more advisories
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.
Technical details
- Published
- 2022-12-28
Frequently asked questions
What is CVE-2022-41966?
Is CVE-2022-41966 actively exploited?
What is the CVSS score for CVE-2022-41966?
Running xstream? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.