CVE-2022-41966
CVE-2022-41966 is a high-severity vulnerability in Xstream with a CVSS 3.x base score of 8.2. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-674.
Key facts
- Severity: High (CVSS 3.x base score 8.2)
- EPSS exploit prediction: 9% (94th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-674
- Affected product: Xstream
- Published:
- Last modified:
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.
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.
- How severe is CVE-2022-41966?
- CVE-2022-41966 has a CVSS 3.x base score of 8.2, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability high.
- Is CVE-2022-41966 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 9% (94th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-41966?
- CVE-2022-41966 affects Xstream. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-41966?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-41966 published?
- CVE-2022-41966 was published on 2022-12-28 and last updated on 2026-06-17.
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpv
- https://x-stream.github.io/CVE-2022-41966.html
- https://security.netapp.com/advisory/ntap-20230216-0005/
Affected products (1)
- cpe:2.3:a:xstream:xstream:*:*:*:*:*:*:*:*
More vulnerabilities in Xstream
- CVE-2019-10173 — Critical (CVSS 9.8): It was found that xstream API version 1.4.10 before 1.4.11 introduced a regression for a previous deserialization flaw.…
- CVE-2013-7285 — Critical (CVSS 9.8): Xstream API versions up to 1.4.6 and version 1.4.10, if the security framework has not been initialized, may allow a…
- CVE-2021-39152 — High (CVSS 8.5): XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may…
- CVE-2021-39150 — High (CVSS 8.5): XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may…
- CVE-2021-39154 — High (CVSS 8.5): XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may…
- CVE-2021-39153 — High (CVSS 8.5): XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may…
Other CWE-674 (Uncontrolled Recursion) vulnerabilities
- CVE-2026-43185 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix signededness bug in…
- CVE-2023-51803 — Critical (CVSS 9.8): LinuxServer.io Heimdall before 2.5.7 does not prevent use of icons that have non-image data such as the "<?php ?>"…
- CVE-2021-41752 — Critical (CVSS 9.8): Stack overflow vulnerability in Jerryscript before commit e1ce7dd7271288be8c0c8136eea9107df73a8ce2 on Oct 20, 2021 due…
- CVE-2018-1000618 — Critical (CVSS 9.8): EOSIO/eos eos version after commit f1545dd0ae2b77580c2236fdb70ae7138d2c7168 contains a stack overflow vulnerability in…
- CVE-2025-10728 — Critical (CVSS 9.4): When the module renders a Svg file that contains a <pattern> element, it might end up rendering it recursively leading…
- CVE-2026-40324 — Critical (CVSS 9.1): Hot Chocolate is an open-source GraphQL server. Prior to versions 12.22.7, 13.9.16, 14.3.1, and 15.1.14, Hot…
Browse all CWE-674 (Uncontrolled Recursion) vulnerabilities →