Skip to main content
Public proof of conceptFix available

CVE-2022-41966

A public proof of concept exists; no exploitation attested.

  • Published2022-12-28
  • Fixed in1.4.20
  • WeaknessCWE-120 · CWE-121 · CWE-502

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-12-2800:15CVE publishedNVD

Versions per branch

NVD · OSV
Xstream
BranchAffectedFixed in
1.4< 1.4.201.4.20

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • x-stream xstream
    Affected
    • = < 1.4.20no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-12-27

Distribution builds and vendor advisories

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:xstreamTuxCare:Mavenfrom 1.4.17 · fixed in 1.4.17-tuxcare.1
  • com.thoughtworks.xstream:xstreamRoot:Mavenall versions · fixed in 1.4.20-aikido.2
  • com.thoughtworks.xstream:xstreamRed Hat Lightwell:Mavenall versions · fixed in 1.4.18.rhlw-00006
  • hadoop-fips-3.3.6Chainguardall versions · no fixed version listedand 1 other package
  • io.root.com.thoughtworks.xstream:xstreamRoot:Mavenall versions · fixed in 1.4.20-root.io.1
  • io.root.com.thoughtworks.xstream:xstreamRoot:Mavenall versions · fixed in 1.4.20-root.io.2
  • jenkinsRed Hat:openshift:4.10::el8all versions · fixed in 0:2.401.1.1685677065-1.el8
  • jenkinsRed Hat:ocp_tools:4.11::el8all versions · fixed in 0:2.401.1.1686831596-3.el8

37 more package ranges on OSV.dev

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 · +12 more

  • 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

Fix

  1. Update Xstream to 1.4.20
  2. Vendor fix Red Hat Product Security RHSA-2024:1353 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2023:3625 · 2 productsFor OpenShift Container Platform 4.10 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.10/release_notes/ocp-4-1…
  4. Vendor fix Red Hat Product Security RHSA-2023:3663 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2023:1177 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).
  6. No fix planned, says the vendor Red Hat Product Security CVE-2022-41966 · 7 productsOut of support scope

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-11
  • CNACVSS 3.18.2known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • CNAweakness (CWE)CWE-120, CWE-121, CWE-502known since 2026-10-23
  • NVDweakness (CWE)CWE-674read 2026-10-23
  • FIRST EPSSEPSS score9.3 %2026-12-04
  • PoC-in-GitHubproof of concept1known since 2026-11-01
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2022-12-29

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-12-28
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-j563-grx4-pjpv

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?

A proof-of-concept exploit exists for CVE-2022-41966, but active exploitation has not been confirmed at this time.

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

CVE-2022-41966 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running xstream? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record