CVE-2022-41966
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.thoughtworks.xstream:xstreamMaven | < 1.4.20 | 1.4.20 |
Affected products
17- ghsa-coords16 versionspkg:maven/com.thoughtworks.xstream/xstreampkg:rpm/opensuse/xstream&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/xstream&distro=openSUSE%20Tumbleweedpkg:rpm/suse/xstream&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/xstream&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/xstream&distro=SUSE%20Manager%20Server%20Module%204.2pkg:rpm/suse/xstream&distro=SUSE%20Manager%20Server%20Module%204.3
< 1.4.20+ 15 more
- (no CPE)range: < 1.4.20
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-1.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
- (no CPE)range: < 1.4.20-150200.3.25.1
Patches
Vulnerability mechanics
References
5- x-stream.github.io/CVE-2022-41966.htmlnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-j563-grx4-pjpvghsaADVISORY
- github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpvnvdMitigationThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-41966ghsaADVISORY
- security.netapp.com/advisory/ntap-20230216-0005/nvdThird Party Advisory
News mentions
0No linked articles in our index yet.