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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2022-12-2800:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.4 | < 1.4.20 | 1.4.20 | NVD · OSV |
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 xstreamAffected
- = < 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
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
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
Fix
- Update Xstream to 1.4.20
- 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
- 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…
- 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
- 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).
- No fix planned, says the vendor Red Hat Product Security CVE-2022-41966 · 7 productsOut of support scope
Advisories and patches
- github.comMitigation
- x-stream.github.ioVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-04-11
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01111ddea/Xstream_cve-2022-41966
- 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
- CGA-455w-rf89-5pgxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8q2x-h3x5-m956same flawChainguard · CC-BY-NC-ND-4.0
- CGA-qr39-66cm-qpx2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-v6vc-jxv9-q54vsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2022-7656same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-j563-grx4-pjpvsame flawGitHub Advisory Database · CC-BY-4.0
- DLA-3267-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5315-1advisory covering several CVEsDebian · LicenseRef-unstated
- OESA-2023-1929advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1937advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12796-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:3625advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3663advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2023:1673-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5946-1advisory covering several CVEsUbuntu
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?
Is CVE-2022-41966 actively exploited?
What is the CVSS score for CVE-2022-41966?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-j563-grx4-pjpv
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0