Vulnerability
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.
18 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALAS2-2023-2007
Amazon Linux 2 2017.12 - ALAS2-2023-2007: important priority package update for xstream
- CGA-455w-rf89-5pgx
- CGA-8q2x-h3x5-m956
- CGA-qr39-66cm-qpx2
- CGA-v6vc-jxv9-q54v
-
DEBIAN-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…
-
DLA-3267-1
libxstream-java - security update
-
DSA-5315-1
libxstream-java - security update
-
GHSA-j563-grx4-pjpv
XStream can cause Denial of Service via stack overflow
-
OESA-2023-1929
xstream security update
-
OESA-2023-1937
xstream security update
-
RHSA-2023:3625
Red Hat Security Advisory: OpenShift Container Platform 4.10.62 security update
-
RHSA-2023:3663
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
-
SUSE-SU-2023:1673-1
Security update for xstream
-
SUSEVEX-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…
-
UBUNTU-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…
-
USN-5946-1
libxstream-java vulnerabilities
-
openSUSE-SU-2024:12796-1
xstream-1.4.20-1.1 on GA media