Skip to main content
HIGH

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.

Set up CVE WatchFree account · no credit card

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

  • CVE-2022-41966 Red Hat Product Security13 products fixed · 15 known affected

    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

  • RHSA-2024:1353 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Process Automation Manager 7.13.5 security update

  • RHSA-2023:3954 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Fuse 7.12 release and security update

  • RHSA-2023:3625 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.10.62 security update

  • RHSA-2023:3663 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: jenkins and jenkins-2-plugins security update

  • RHSA-2023:2100 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Integration Camel for Spring Boot 3.20.1 security update

4 more advisories

Full record on NVD

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?

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.

Is CVE-2022-41966 actively exploited?

Active exploitation of CVE-2022-41966 has not been confirmed. Its EPSS score was 9.0% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-41966?

CVE-2022-41966 has a CVSS v3 base score of 7.5 (HIGH severity).

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