cve.bz

CVE-2022-41966 xstream xstream: Uncontrolled Recursion

7.5 highExploit referenceEPSS 9.3%Fix available

High (7.5) in xstream xstream. EPSS 9.3% estimated probability of exploitation activity in the next 30 days. Fixed in com.thoughtworks.xstream:xstream 1.4.20.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
9.3% (unchanged from 9.3% a week ago; 9.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-04-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-674 Uncontrolled Recursion
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
CWE-121 Stack-based Buffer Overflow
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-41966 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-41966?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-41966?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-41966 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xstream:xstreambefore 1.4.20

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j563-grx4-pjpvMavencom.thoughtworks.xstream:xstream<1.4.201.4.20

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libxstream-java1.4.11.1-1+deb10u4DLA-3267-1
Debian11libxstream-java1.4.15-3+deb11u2DSA-5315-1
Debian12, 13, 14libxstream-java1.4.20-1DEBIAN-CVE-2022-41966
Ubuntu18.04:LTSlibxstream-java1.4.11.1-1+deb10u4build0.18.04.1UBUNTU-CVE-2022-41966 USN-5946-1
Ubuntu20.04:LTSlibxstream-java1.4.11.1-1ubuntu0.3UBUNTU-CVE-2022-41966 USN-5946-1
Ubuntu22.04:LTSlibxstream-java1.4.18-2ubuntu0.1UBUNTU-CVE-2022-41966 USN-5946-1
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morelibxstream-javano fix listedUBUNTU-CVE-2022-41966
UbuntuPro:14.04:LTSlibxstream-java1.4.7-1ubuntu0.1+esm1UBUNTU-CVE-2022-41966 USN-5946-1
UbuntuPro:16.04:LTSlibxstream-java1.4.8-1ubuntu0.1+esm1UBUNTU-CVE-2022-41966 USN-5946-1
Red Hatocp_tools:4.11::el8jenkins0:2.401.1.1686831596-3.el8RHSA-2023:3663
Red Hatocp_tools:4.11::el8jenkins-2-plugins0:4.11.1686831822-1.el8RHSA-2023:3663
Red Hatopenshift:4.10::el8jenkins0:2.401.1.1685677065-1.el8RHSA-2023:3625
Red Hatopenshift:4.10::el8jenkins-2-plugins0:4.10.1685679861-1.el8RHSA-2023:3625
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 morexstream1.4.20-150200.3.25.1SUSE-SU-2023:1673-1
openSUSELeap 15.4xstream1.4.20-150200.3.25.1SUSE-SU-2023:1673-1
openSUSETumbleweedxstream1.4.20-1.1openSUSE-SU-2024:12796-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Fuse 7 ships an affected version of XStream. No endpoint in any flavor of Fuse is accepting by default an unverified input stream passed directly to XStream unmarshaller. Documentation always recommend all the endpoints (TCP/UDP/HTTP(S)/other listeners) to have at least one layer of authentication/authorization and Fuse in general itself in particular has a lot of mechanisms to protect the endpoints.

Red Hat Single Sign-On contains XStream as a transitive dependency from Infinispan and the same is not affected as NO_REFERENCE is in use.

ProductPackageStateAdvisory
Migration Toolkit for Runtimes 1 on RHEL 8mtr/mtr-web-container-rhel8:1.0-22Fixed 2023-03-16RHSA-2023:1286
MTA-6.1-RHEL-8mta/mta-windup-addon-rhel8:6.1.0-11Fixed 2023-04-27RHSA-2023:2041
OpenShift Developer Tools and Services for OCP 4.11jenkins-0:2.401.1.1686831596-3.el8Fixed 2023-06-19RHSA-2023:3663
Red Hat build of Quarkus 2.7.7Fixed 2023-03-08RHSA-2023:1006
Red Hat Fuse 7.12xstreamFixed 2023-06-29RHSA-2023:3954
Red Hat OpenShift Container Platform 4.10jenkins-0:2.401.1.1685677065-1.el8Fixed 2023-06-23RHSA-2023:3625
RHINT Camel-Q 2.7-1Fixed 2023-03-09RHSA-2023:1177
RHINT Camel-Springboot 3.20.1xstreamFixed 2023-05-03RHSA-2023:2100
RHPAM 7.13.5 asyncxstreamFixed 2024-03-18RHSA-2024:1353
A-MQ Clients 2xstreamNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
Red Hat AMQ Broker 7xstreamNot affected
Red Hat build of Apicurio Registry 2xstreamAffected
Red Hat build of Debezium 1xstreamNot affected
Red Hat build of QuarkusxstreamAffected
Red Hat Data Grid 8xstreamAffected
Red Hat Decision Manager 7xstreamAffected
Red Hat Enterprise Linux 7xstreamNot affected
Red Hat Integration Camel K 1xstreamAffected
Red Hat Integration Camel Quarkus 1xstreamAffected
12 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-41966.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High
  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON